Skip to content

gpui: Further fix extraction of font runs from text runs (#43856) (cherry-pick to stable)#44197

Merged
zed-zippy[bot] merged 1 commit intov0.215.xfrom
cherry-pick-v0.215.x-d1d419b2
Dec 5, 2025
Merged

gpui: Further fix extraction of font runs from text runs (#43856) (cherry-pick to stable)#44197
zed-zippy[bot] merged 1 commit intov0.215.xfrom
cherry-pick-v0.215.x-d1d419b2

Conversation

@zed-zippy
Copy link
Contributor

@zed-zippy zed-zippy bot commented Dec 5, 2025

Cherry-pick of #43856 to stable


After #39928, if a font's weight changes between text runs without other
decoration changing, the earlier weight continues to be used for the
subsequent run(s).

PR #40840 fixes this in shape_text, but similar code exists also in
layout_text. The latter is used for text in the editor view itself, so
the issue continues to appear when using a highlighting theme with
varied font weights.

Fix the issue by applying the same fix in layout_text.

Closes #42297

Release Notes:

  • Fixed incorrect font weights in editor view when using a highlighting
    theme with varying font weights

After #39928, if a font's weight changes between text runs without other
decoration changing, the earlier weight continues to be used for the
subsequent run(s).

PR #40840 fixes this in shape_text, but similar code exists also in
layout_text. The latter is used for text in the editor view itself, so
the issue continues to appear when using a highlighting theme with
varied font weights.

Fix the issue by applying the same fix in layout_text.

Closes #42297

Release Notes:

- Fixed incorrect font weights in editor view when using a highlighting
theme with varying font weights
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 5, 2025
@zed-zippy zed-zippy bot merged commit 83d9aa3 into v0.215.x Dec 5, 2025
23 checks passed
@zed-zippy zed-zippy bot deleted the cherry-pick-v0.215.x-d1d419b2 branch December 5, 2025 08:10
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.

1 participant