Skip to content

Commit 5e04b93

Browse files
author
philter
committed
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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.rive_head

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8ac7b608fdd15c53608cec3ac3eb4a52635dd6f9
1+
0ae985862d83742ed0883cb0228b6e06dbea1286

0 commit comments

Comments
 (0)