Skip to content

Ensure font features are applied to styled text#44219

Merged
dinocosta merged 1 commit intomainfrom
44209-font-features-fix
Dec 5, 2025
Merged

Ensure font features are applied to styled text#44219
dinocosta merged 1 commit intomainfrom
44209-font-features-fix

Conversation

@dinocosta
Copy link
Member

  • Replace gpui::styled::Styled.font_family() calls with
    gpui::styled::Styled.font() when laying out inline diagnostics and
    inline blame, to ensure that the font's features are also used, and
    not just the font feature.
  • Update both editor::hover_popover::hover_markdown_style and
    editor::hover_popover::diagnostics_markdown_style to ensure that
    both the UI and Buffer font features are used in both markdown and
    diagnostics popover.

Closes #44209

Release Notes:

  • Fixed font feature application for inline git blame, inline diagnostics, markdown popovers and diagnostics popovers

- Replace `gpui::styled::Styled.font_family()` calls with
  `gpui::styled::Styled.font()` when laying out inline diagnostics and
  inline blame, to ensure that the font's features are also used, and
  not just the font feature.
- Update both `editor::hover_popover::hover_markdown_style` and
  `editor::hover_popover::diagnostics_markdown_style` to ensure that
  both the UI and Buffer font features are used in both markdown and
  diagnostics popover.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 5, 2025
@dinocosta dinocosta self-assigned this Dec 5, 2025
@dinocosta dinocosta marked this pull request as ready for review December 5, 2025 14:28
@dinocosta
Copy link
Member Author

Here's some before and after screenshots ▼

Category Before After
Inline Git Blame inline_git_blame_before inline_git_blame_after
Inline Diagnostics inline_diagnostics_before inline_diagnostics_after
Diagnostics Popover diagnostics_popover_before diagnostics_popover_after

@maxdeviant maxdeviant changed the title fix: Ensure font features are applied to styled text Ensure font features are applied to styled text Dec 5, 2025
@dinocosta dinocosta merged commit 1d0aef6 into main Dec 5, 2025
25 checks passed
@dinocosta dinocosta deleted the 44209-font-features-fix branch December 5, 2025 15:24
CherryWorm pushed a commit to CherryWorm/zed that referenced this pull request Dec 16, 2025
- Replace `gpui::styled::Styled.font_family()` calls with
`gpui::styled::Styled.font()` when laying out inline diagnostics and
inline blame, to ensure that the font's features are also used, and
not just the font feature.
- Update both `editor::hover_popover::hover_markdown_style` and
`editor::hover_popover::diagnostics_markdown_style` to ensure that
both the UI and Buffer font features are used in both markdown and
diagnostics popover.

Closes zed-industries#44209 

Release Notes:

- Fixed font feature application for inline git blame, inline
diagnostics, markdown popovers and diagnostics popovers
someone13574 pushed a commit to someone13574/zed that referenced this pull request Dec 16, 2025
- Replace `gpui::styled::Styled.font_family()` calls with
`gpui::styled::Styled.font()` when laying out inline diagnostics and
inline blame, to ensure that the font's features are also used, and
not just the font feature.
- Update both `editor::hover_popover::hover_markdown_style` and
`editor::hover_popover::diagnostics_markdown_style` to ensure that
both the UI and Buffer font features are used in both markdown and
diagnostics popover.

Closes zed-industries#44209 

Release Notes:

- Fixed font feature application for inline git blame, inline
diagnostics, markdown popovers and diagnostics popovers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong Font Feature Application

1 participant