servo / servo/font-kit

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

Open
#209 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.