servo / servo/font-kit

Load system UI font

Open
#216 2 comments 1 reaction 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

In Webkit, I can use the system-ui family to grab, for example, the San Francisco font on mac.

Is there a way to do that with this library? It would be nice to match the font to the OS, when available.

I tried the following:

select_best_match(
    &[font_kit::family_name::FamilyName::Title(
        "system-ui".to_string(),
    )],
    &font_kit::properties::Properties::new(),
)

But no dice.

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 tracing select_best_match and the library's platform-specific font discovery paths; the issue names no files or tests. Determine how a system-ui request should resolve across supported operating systems, then verify that the selected font matches the OS when available.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.