Commit 5e04b93
philter
fix(runtime): Font weight layout measure fix (#10766) 0ae985862d
With certain fonts, the expected font features/variations aren't available until a frame after the text is measured, so for example, we measure glyphs using its default weight rather than the weight set in the style, which causes the rendered text not to fit within the measured area, thus incorrectly wrap to the next line. This fix updates variable fonts whenever TextStyle::font() is called IF the variable font hasn't previously been cached.
Specifically this issue was reproducible when using Solos to toggle between components which had text wrapped in layouts.1 parent b108060 commit 5e04b93
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments