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

load font extremely slowly on macos than in windows and linux. #209

Open
lencil opened this issue Jan 13, 2023 · 1 comment
Open

load font extremely slowly on macos than in windows and linux. #209

lencil opened this issue Jan 13, 2023 · 1 comment

Comments

@lencil
Copy link

lencil commented Jan 13, 2023

use example match_font, run it with following arguments in macos.
./match-font "PingFang SC"
"PingFang SC" is a macos default CJK font. This call will cost 3~5 seconds.
I discovered that if you put the font in user ~/Library/fonts, it runs fast. But loading fonts in system fonts path will cost more time.

@lencil
Copy link
Author

lencil commented Jan 13, 2023

on macos
the example of the crate "./list-fonts" will cost several minutes, really realy slow.

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

No branches or pull requests

1 participant