-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change ParagraphBuilder to replace the parent style's font families with the child style's font families #10074
Conversation
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!
@@ -438,8 +438,7 @@ void ParagraphBuilder::pushStyle(tonic::Int32List& encoded, | |||
} | |||
|
|||
if (mask & tsFontFamilyMask) { | |||
style.font_families.insert(style.font_families.end(), fontFamilies.begin(), | |||
fontFamilies.end()); | |||
style.font_families = fontFamilies; |
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.
Can you add a note here stating that fallback to system is intended?
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
…ith the child style's font families Previously ParagraphBuilder was concatenating the child's fonts to the parent's font list, causing the parent's fonts to take precedence. Fixes flutter/flutter#35992
…milies with the child style's font families (flutter/engine#10074)
…milies with the child style's font families (flutter/engine#10074)
…milies with the child style's font families (flutter/engine#10074)
…milies with the child style's font families (flutter/engine#10074)
…milies with the child style's font families (flutter/engine#10074)
…milies with the child style's font families (flutter/engine#10074)
…milies with the child style's font families (flutter/engine#10074)
…milies with the child style's font families (flutter/engine#10074)
…milies with the child style's font families (flutter/engine#10074)
…milies with the child style's font families (flutter/engine#10074)
…milies with the child style's font families (flutter/engine#10074)
…milies with the child style's font families (flutter/engine#10074)
…milies with the child style's font families (flutter/engine#10074)
…milies with the child style's font families (flutter/engine#10074)
…milies with the child style's font families (flutter/engine#10074)
…milies with the child style's font families (flutter/engine#10074)
…milies with the child style's font families (flutter/engine#10074)
…milies with the child style's font families (flutter/engine#10074)
…milies with the child style's font families (flutter/engine#10074)
…milies with the child style's font families (flutter/engine#10074)
…milies with the child style's font families (flutter/engine#10074)
…milies with the child style's font families (flutter/engine#10074)
…milies with the child style's font families (flutter/engine#10074)
…milies with the child style's font families (flutter/engine#10074)
…milies with the child style's font families (flutter/engine#10074)
Previously ParagraphBuilder was concatenating the child's fonts to the
parent's font list, causing the parent's fonts to take precedence.
Fixes flutter/flutter#35992