Skip to content

fix(gpui): stop fallback text turning bold once a bold weight loads - #80

Merged
nolight132 merged 1 commit into
masterfrom
fix/cjk-font-weight
Nov 27, 2026
Merged

nolight132 merged 1 commit into
masterfrom
fix/cjk-font-weight

Conversation

@nolight132

Copy link
Copy Markdown
Member

Summary

  • build a static face's fallback chain at the weight that face draws at, so regular text keeps regular CJK and Hangul fallbacks after a bold weight of the same family loads

@github-actions github-actions Bot added text changes text shaping, layout or rasterising rendering changes the scene, shaders or a renderer labels Nov 27, 2026
@coderabbitai

coderabbitai Bot commented Nov 27, 2026

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Moves fallback chain construction into fallback_chain and caches chains per weight within each load_family call. Reused static faces now receive the chain built at the weight they draw at, not the weight that loaded the family last.

load_family now caches fallback chains by weight during each call. Reused and newly loaded faces receive a fallback chain selected for their instantiated weight.

Merge Risk: Minimal · up to d6700

The change builds fallback chains at the weight each face is drawn at, so regular CJK and Hangul fallback text stays regular after a bold weight loads. No merge-blocking risk was identified.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@nolight132
nolight132 merged commit e79fdfb into master Nov 27, 2026
1 check passed
@nolight132
nolight132 deleted the fix/cjk-font-weight branch November 27, 2026 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rendering changes the scene, shaders or a renderer text changes text shaping, layout or rasterising

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant