Looking up fallback/generic versions of fonts (e.g. Times New Roman)
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 840
- Forks
- 137
- Avg merge
- 4h 56m
- Merged PRs (30d)
- 1
Description
At least on Linux looking up the font "Times New Roman" with select_family_by_name doesn't find the fallback font "Tinos".
On the other hand:
fc-match "Times New Roman"finds it- Firefox uses it
Fontconfig::finddoes too
Is that an intentional limitation? It seems like the method select_generic_font would be able to find it just fine, but isn't exposed.
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 in src/sources/fontconfig.rs at select_family_by_name and select_generic_font, as referenced in the issue. Compare their behavior with the reported fontconfig lookup for "Times New Roman"; done means the public lookup can resolve the fallback font consistently with the existing generic-font path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, rust
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100