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

Create fallback font manager to solve performance drops #78

Merged
merged 1 commit into from
Apr 29, 2021
Merged

Create fallback font manager to solve performance drops #78

merged 1 commit into from
Apr 29, 2021

Conversation

HakkyuKim
Copy link

@HakkyuKim HakkyuKim commented Apr 29, 2021

Fixes performance drop issue mentioned in #69 (comment). I should have tested the change before it was merged, sorry about that. Now the engine searches fonts in two subdirecotries: /usr/share/font and /usr/share/fallback_fonts.

The following table compares the start time of the flutter sample counter app.

STIME
using fontconfig 844
searching /usr/share 4660
searching /usr/share/font and /usr/share/fallback_fonts 740

I had to make some changes to the third-party code to solve the performance issue. I admit its not ideal, so I will look for a better solution when I can.

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.

This change looks okay for now.

We may re-implement TizenEmbedderEngine to use flutter::Shell so that we can get a direct access to its engine_->GetFontCollection(). The current embedder API (embedder.h) doesn't provide a way to register arbitrary fonts.

@HakkyuKim HakkyuKim merged commit 6e859d7 into flutter-tizen:flutter-2.0.1-tizen Apr 29, 2021
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 <boram21.bae@samsung.com>
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 <boram21.bae@samsung.com>
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 <boram21.bae@samsung.com>
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 <boram21.bae@samsung.com>
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 <boram21.bae@samsung.com>
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 <boram21.bae@samsung.com>
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 <boram21.bae@samsung.com>
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 <boram21.bae@samsung.com>
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 <boram21.bae@samsung.com>
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
* 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 <boram21.bae@samsung.com>
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.

2 participants