Load system UI font
Open
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
- 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 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