servo / servo/font-kit

Load fonts faster on Windows than on Mac OSX

Open
#175 0 comments 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

The reason probably is DirectWrite providing more performant API which in some case don't need to read file I suppose?

When it comes to Mac OSX, we just directly read from the font path.

Is there any similar API in CoreText?

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 by reading the referenced dwrote-rs font_file.rs implementation and comparing it with font-kit’s Mac OSX path that directly reads the font file. Investigate whether CoreText exposes a comparable loading API and determine how it could improve the Mac path. Done means the approach is documented or implemented with evidence of faster loading on Mac OSX.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.