Skip to content
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

Fix font breaking issues #69

Merged
merged 3 commits into from
Apr 23, 2021
Merged

Fix font breaking issues #69

merged 3 commits into from
Apr 23, 2021

Conversation

HakkyuKim
Copy link

@HakkyuKim HakkyuKim commented Apr 20, 2021

I'm still looking into other options, but this is the only working solution I have. With this change, the engine must be built without the --enable-fontconfig option.

With fontconfig, Rendering SamsungOneUI font for the English language works on TV devices but doesn't on watches. I'm still not sure why the behavior is different on watch devices. I could dig deeper but I think the current solution is enough to solve the issue.

Fixes flutter-tizen/flutter-tizen#72.

@HakkyuKim HakkyuKim marked this pull request as ready for review April 21, 2021 09:05
+ adjust azure pipeline
@HakkyuKim
Copy link
Author

I couldn't solve the issue using fontconfig, I will leave it as future work.

Copy link
Member

@swift-kim swift-kim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No meaningful difference in performance.

Application                              STIME     PSS     RSS
com.example.font_original                  483   37887   53086
com.example.font_pr                        489   37888   53087

(measured on rpi4-arm64 with a counter sample)

@bbrto21
Copy link

bbrto21 commented Apr 23, 2021

@HakkyuKim I am curious whether we can use this plugin without FontConfig or not. Can you check it?
https://pub.dev/packages/google_fonts

@bbrto21 bbrto21 merged commit 28dbd02 into flutter-tizen:flutter-2.0.1-tizen Apr 23, 2021
@swift-kim
Copy link
Member

swift-kim commented Apr 29, 2021

It seems I did something wrong in the measurement above. I measured the app startup time again on my Galaxy Watch (R800) and the result is as follows:

Application                              STIME     PSS     RSS
com.example.font_original                  818   25965   53849
com.example.font_pr                       4643   25426   53408

Apparently there is a serious performance problem triggered by this change.

p.s. This is the correct result on rpi4-arm64:

Application                              STIME     PSS     RSS
com.example.font_original                  494   37548   53090
com.example.font_pr                        989   37713   53239

swift-kim pushed a commit that referenced this pull request Jun 7, 2021
* Allow multiple default fonts for localizations

* Update fallback fonts from tv profile

* Add fonts in wearable and tv emulator

+ adjust azure pipeline
bbrto21 added a commit to bbrto21/engine that referenced this pull request Jun 11, 2021
bbrto21 added a commit to bbrto21/engine that referenced this pull request Jun 22, 2021
@bbrto21 bbrto21 mentioned this pull request Jun 22, 2021
bwikbs pushed a commit that referenced this pull request Jun 23, 2021
* Revert "Create fallback font manager to solve performance drops (#78)"

This reverts commit c761164.

* Revert "Fix font breaking issues (#69)"

This reverts commit 5552dd5.

* Add SamsungOneUI to DefaultFontFamilies

Signed-off-by: Boram Bae <[email protected]>
swift-kim pushed a commit that referenced this pull request Sep 27, 2021
* Allow multiple default fonts for localizations

* Update fallback fonts from tv profile

* Add fonts in wearable and tv emulator

+ adjust azure pipeline
swift-kim pushed a commit that referenced this pull request Sep 27, 2021
* Revert "Create fallback font manager to solve performance drops (#78)"

This reverts commit c761164.

* Revert "Fix font breaking issues (#69)"

This reverts commit 5552dd5.

* Add SamsungOneUI to DefaultFontFamilies

Signed-off-by: Boram Bae <[email protected]>
swift-kim pushed a commit that referenced this pull request Nov 14, 2021
* Allow multiple default fonts for localizations

* Update fallback fonts from tv profile

* Add fonts in wearable and tv emulator

+ adjust azure pipeline
swift-kim pushed a commit that referenced this pull request Nov 14, 2021
* Revert "Create fallback font manager to solve performance drops (#78)"

This reverts commit c761164.

* Revert "Fix font breaking issues (#69)"

This reverts commit 5552dd5.

* Add SamsungOneUI to DefaultFontFamilies

Signed-off-by: Boram Bae <[email protected]>
swift-kim pushed a commit that referenced this pull request Dec 9, 2021
* Allow multiple default fonts for localizations

* Update fallback fonts from tv profile

* Add fonts in wearable and tv emulator

+ adjust azure pipeline
swift-kim pushed a commit that referenced this pull request Dec 9, 2021
* Revert "Create fallback font manager to solve performance drops (#78)"

This reverts commit c761164.

* Revert "Fix font breaking issues (#69)"

This reverts commit 5552dd5.

* Add SamsungOneUI to DefaultFontFamilies

Signed-off-by: Boram Bae <[email protected]>
swift-kim pushed a commit that referenced this pull request Dec 17, 2021
* Allow multiple default fonts for localizations

* Update fallback fonts from tv profile

* Add fonts in wearable and tv emulator
swift-kim pushed a commit that referenced this pull request Dec 17, 2021
* Revert "Create fallback font manager to solve performance drops (#78)"

This reverts commit c761164.

* Revert "Fix font breaking issues (#69)"

This reverts commit 5552dd5.

* Add SamsungOneUI to DefaultFontFamilies

Signed-off-by: Boram Bae <[email protected]>
swift-kim pushed a commit that referenced this pull request Feb 7, 2022
* Allow multiple default fonts for localizations

* Update fallback fonts from tv profile

* Add fonts in wearable and tv emulator
swift-kim pushed a commit that referenced this pull request Feb 7, 2022
* Revert "Create fallback font manager to solve performance drops (#78)"

This reverts commit c761164.

* Revert "Fix font breaking issues (#69)"

This reverts commit 5552dd5.

* Add SamsungOneUI to DefaultFontFamilies

Signed-off-by: Boram Bae <[email protected]>
swift-kim pushed a commit that referenced this pull request Feb 11, 2022
* Allow multiple default fonts for localizations

* Update fallback fonts from tv profile

* Add fonts in wearable and tv emulator
swift-kim pushed a commit that referenced this pull request Feb 11, 2022
* Revert "Create fallback font manager to solve performance drops (#78)"

This reverts commit c761164.

* Revert "Fix font breaking issues (#69)"

This reverts commit 5552dd5.

* Add SamsungOneUI to DefaultFontFamilies

Signed-off-by: Boram Bae <[email protected]>
swift-kim pushed a commit that referenced this pull request May 12, 2022
* Allow multiple default fonts for localizations

* Update fallback fonts from tv profile

* Add fonts in wearable and tv emulator
swift-kim pushed a commit that referenced this pull request May 12, 2022
* Revert "Create fallback font manager to solve performance drops (#78)"

This reverts commit c761164.

* Revert "Fix font breaking issues (#69)"

This reverts commit 5552dd5.

* Add SamsungOneUI to DefaultFontFamilies

Signed-off-by: Boram Bae <[email protected]>
swift-kim pushed a commit that referenced this pull request Aug 5, 2022
* Allow multiple default fonts for localizations

* Update fallback fonts from tv profile

* Add fonts in wearable and tv emulator
swift-kim pushed a commit that referenced this pull request Aug 5, 2022
* Revert "Create fallback font manager to solve performance drops (#78)"

This reverts commit c761164.

* Revert "Fix font breaking issues (#69)"

This reverts commit 5552dd5.

* Add SamsungOneUI to DefaultFontFamilies

Signed-off-by: Boram Bae <[email protected]>
swift-kim pushed a commit that referenced this pull request Sep 1, 2022
swift-kim pushed a commit that referenced this pull request Sep 1, 2022
* Allow multiple default fonts for localizations

* Update fallback fonts from tv profile

* Add fonts in wearable and tv emulator
swift-kim pushed a commit that referenced this pull request Sep 1, 2022
* Revert "Create fallback font manager to solve performance drops (#78)"

This reverts commit c761164.

* Revert "Fix font breaking issues (#69)"

This reverts commit 5552dd5.

* Add SamsungOneUI to DefaultFontFamilies

Signed-off-by: Boram Bae <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Text not rendering on samsung galaxy active watch 2
4 participants