-
Notifications
You must be signed in to change notification settings - Fork 6k
fix missing CJK and symbol glyphs, font precedence, fallback reset #24470
Conversation
23d34f3 to
84c18ff
Compare
harryterkelsen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with nits
| // TODO(yjbanov): instead of mutating the font tree during reset, it's | ||
| // better to construct an immutable tree of resolved fonts | ||
| // pointing back to the original NotoFont objects. Then | ||
| // resetting the tree would be a matter of reconstrucint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: reconstructing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
| await font.ensureResolved(); | ||
| } | ||
|
|
||
| final Set<int> unmatchedCodeUnits = Set<int>.from(coveredCodeUnits); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was confusing initially. maybe comment that it doesn't actually become "unmatchedCodeUnits" until it is passed as an input to findMInimumFontsForCodeUnits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
| } | ||
|
|
||
| if (rangesMap.isEmpty) { | ||
| html.window.console.warn('Parses Google Fonts CSS was empty: $css'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Parsed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
84c18ff to
271e4d0
Compare
* golden updates for flutter/engine#24470 * add internation text samples
0d6b0ce to
59cdd0d
Compare
harryterkelsen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
LUCI failure is a network flake. Submitting and will keep an eye on LUCI. |
…24557) * Update Dart to 2.12.0-259.15.beta * Propagate image decode errors to the future returned by Codec.getNextFrame (#24336) * fix infinite loop in findMinimumFontsForCodeunits (#24441) * Roll CanvasKit to 0.24. (#24498) * Update tests for new API * Update goldens and respond to comment * fix missing CJK and symbol glyphs, font precedence, fallback reset (#24470) * fix missing CJK and symbol glyphs * Cache known covered code units Co-authored-by: Harry Terkelsen <[email protected]> * Update licenses_golden Co-authored-by: Jason Simmons <[email protected]> Co-authored-by: Yegor <[email protected]> Co-authored-by: Harry Terkelsen <[email protected]> Co-authored-by: Harry Terkelsen <[email protected]>
…lutter#24470) * fix missing CJK and symbol glyphs * Cache known covered code units Co-authored-by: Harry Terkelsen <[email protected]>
…lutter#24470) * fix missing CJK and symbol glyphs * Cache known covered code units Co-authored-by: Harry Terkelsen <[email protected]>
Partially fixes flutter/flutter#73628. This still needs @hterkelsen's CanvasKit 0.23 PR to reland.