-
Notifications
You must be signed in to change notification settings - Fork 17
Check the presence of glyphs when selecting font #113
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
Check the presence of glyphs when selecting font #113
Conversation
Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]>
Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]>
Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]>
Signed-off-by: MuHong Byun <[email protected]>
Signed-off-by: MuHong Byun <[email protected]>
…, it is checked more. Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]>
Signed-off-by: MuHong Byun <[email protected]>
Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]>
d8a2cb2 to
1b2bbf0
Compare
bbrto21
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.
The workaround added to the sorting algorithm seems to be the best we can do right now as long as we should use SamsungOneUI font family
swift-kim
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.
Are you going to request this change for merge (maybe partially) in the upstream?
| std::vector<std::string> GetDefaultFontFamilies() { | ||
| #ifdef FLUTTER_USE_FONTCONFIG | ||
| return {"TizenDefaultFont"}; | ||
| #else |
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.
Do we need this change (caf01dd) if we're not to re-enable fontconfig?
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.
No, TizenDefaultFont is not an actual font. That's an alias in fontconfig
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.
Then you might revert the commit.
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.
I'm sorry but I don't get the point. Because..?
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.
The commit in this context is caf01dd.
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.
I'm still not sure if I understood your intentions...
This PR is base on fontconfig. And PR that uses font config again and revert unnecessary our modification will be prepared another PR (Perhaps @bbrto21 Am I right boram? 😄 ).
The reason for doing that is because it would be good to track the related fontconfig in the future.(Just my opinion)
I'm sorry for the lack of explanation of this.
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.
I think you need to re-enable fontconfig in azure-pipelines.
Reverting existing code and applying fontconfig seem to be a little different topic, so I would like to talk about it in another PR.
If this PR depends on fontconfig, why not re-enable the fontconfig option in azure-pipelines.yml? The change inside the #ifdef FLUTTER_USE_FONTCONFIG block doesn't affect anything without the option enabled, so I thought you could safely revert the change. I'm sorry but I still don't get your point.
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.
@swift-kim Well... You're right. I just wanted to collect the related re-enable font config contents in one PR.
There is no great reason...(To be honest, I didn't want to revert and clean-up the existing ones. And because it seems that @bbrto21 has already done that work, I was going to ask for him)
I didn't think much about it.. If it's too weird, I'll enable the font config right away.
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.
Okay, if there will be a follow-up PR, you may just briefly mention what changes will be made in that PR and how TizenDefaultFont is related to those changes.
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.
I've updated PR description!
@swift-kim I think I can do some of it ( yes, maybe.. I didn't really think about how far it would go.), but overall no. Most of the problems come from the unusual setting of product. |
Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Swift Kim <[email protected]>
Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]> Co-authored-by: Swift Kim <[email protected]>
* Check the presence of glyphs when selecting font Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]> * Change default font family name Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]> * Fix coding style Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]> * Cache the glyphs and fonts used when matching fonts Signed-off-by: MuHong Byun <[email protected]> * Apply review's comment Signed-off-by: MuHong Byun <[email protected]> * When matching fonts, if the existing character is a special character, it is checked more. Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]> * Apply review's comment Signed-off-by: MuHong Byun <[email protected]> * Fixed sorting to make emoji fonts go backwards Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]> * Apply review's comment Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Swift Kim <[email protected]> * Apply review's comment Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]> Co-authored-by: Swift Kim <[email protected]> Co-authored-by: Boram Bae <[email protected]> Co-authored-by: Swift Kim <[email protected]>
* Check the presence of glyphs when selecting font Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]> * Change default font family name Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]> * Fix coding style Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]> * Cache the glyphs and fonts used when matching fonts Signed-off-by: MuHong Byun <[email protected]> * Apply review's comment Signed-off-by: MuHong Byun <[email protected]> * When matching fonts, if the existing character is a special character, it is checked more. Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]> * Apply review's comment Signed-off-by: MuHong Byun <[email protected]> * Fixed sorting to make emoji fonts go backwards Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]> * Apply review's comment Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Swift Kim <[email protected]> * Apply review's comment Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]> Co-authored-by: Swift Kim <[email protected]> Co-authored-by: Boram Bae <[email protected]> Co-authored-by: Swift Kim <[email protected]>
* Check the presence of glyphs when selecting font Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]> * Change default font family name Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]> * Fix coding style Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]> * Cache the glyphs and fonts used when matching fonts Signed-off-by: MuHong Byun <[email protected]> * Apply review's comment Signed-off-by: MuHong Byun <[email protected]> * When matching fonts, if the existing character is a special character, it is checked more. Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]> * Apply review's comment Signed-off-by: MuHong Byun <[email protected]> * Fixed sorting to make emoji fonts go backwards Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]> * Apply review's comment Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Swift Kim <[email protected]> * Apply review's comment Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]> Co-authored-by: Swift Kim <[email protected]> Co-authored-by: Boram Bae <[email protected]> Co-authored-by: Swift Kim <[email protected]>
* Check the presence of glyphs when selecting font * Change default font family name * Fix coding style * Cache the glyphs and fonts used when matching fonts * When matching fonts, if the existing character is a special character, it is checked more. * Fixed sorting to make emoji fonts go backwards Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]> Co-authored-by: Swift Kim <[email protected]>
* Check the presence of glyphs when selecting font * Change default font family name * Fix coding style * Cache the glyphs and fonts used when matching fonts * When matching fonts, if the existing character is a special character, it is checked more. * Fixed sorting to make emoji fonts go backwards Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]> Co-authored-by: Swift Kim <[email protected]>
* Check the presence of glyphs when selecting font * Change default font family name * Fix coding style * Cache the glyphs and fonts used when matching fonts * When matching fonts, if the existing character is a special character, it is checked more. * Fixed sorting to make emoji fonts go backwards Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]> Co-authored-by: Swift Kim <[email protected]>
* Check the presence of glyphs when selecting font * Change default font family name * Fix coding style * Cache the glyphs and fonts used when matching fonts * When matching fonts, if the existing character is a special character, it is checked more. * Fixed sorting to make emoji fonts go backwards Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]> Co-authored-by: Swift Kim <[email protected]>
* Check the presence of glyphs when selecting font * Change default font family name * Fix coding style * Cache the glyphs and fonts used when matching fonts * When matching fonts, if the existing character is a special character, it is checked more. * Fixed sorting to make emoji fonts go backwards Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]> Co-authored-by: Swift Kim <[email protected]>
* Check the presence of glyphs when selecting font * Change default font family name * Fix coding style * Cache the glyphs and fonts used when matching fonts * When matching fonts, if the existing character is a special character, it is checked more. * Fixed sorting to make emoji fonts go backwards Signed-off-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]> Co-authored-by: Swift Kim <[email protected]>

PR due to default branch change
This PR is to solve the font issue by re-enable
font configand changing font selection logic(with workaround)PR that uses the font config as the default and reverts our modification will be prepared separately.
Also, it contains the following minor change.
TizenDefaultFont: The font config setting in the Tizen device has an alias calledTizenDefaultFont, and it is connected to the actual font in device. So if we decide to use the font config we can use it as a fallback font family.