load font extremely slowly on macos than in windows and linux.
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 840
- Forks
- 137
- Avg merge
- 4h 56m
- Merged PRs (30d)
- 1
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the match_font example and reproduce the reported 3–5 second load for "PingFang SC" from the macOS system fonts path, comparing it with ~/Library/fonts. Trace the font-loading path to identify where the delay occurs; done means system-font loading is substantially faster without regressing the user-font case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, rust
- Domain
- desktop, performance
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100