Typst doesn't respect fontconfig `<rejectfont>` setting
Open
Nobody has claimed this yet.
bug
text
upstream
- Dominant language
- Rust
- Stars
- 56.1k
- Forks
- 1.7k
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 22
Description
Description
Currently, I only understand three languages. Till I learn the rest of the world languages, I disable the ones I don't need using fontconfig's:
<rejectfont><glob>/usr/share/fonts/TTF/*Thai*</glob></rejectfont>
> fc-list | rg 'Devanagari|Hebrew|JP|KR|Tamil|Thai' # no output
> typst fonts |rg 'Devanagari|Hebrew|JP|KR|Tamil|Thai'
Arial Hebrew
Arial Hebrew Desk Interface
Arial Hebrew Scholar
Corsiva Hebrew
Devanagari MT
Devanagari Sangam MN
IBM Plex Sans Devanagari
IBM Plex Sans Devanagari Medm
IBM Plex Sans Devanagari SmBld
IBM Plex Sans Devanagari Text
IBM Plex Sans Hebrew
IBM Plex Sans Hebrew Medm
IBM Plex Sans Hebrew SmBld
IBM Plex Sans Hebrew Text
IBM Plex Sans JP
IBM Plex Sans JP Medm
IBM Plex Sans JP Smbld
IBM Plex Sans JP Text
IBM Plex Sans KR
IBM Plex Sans KR Medm
IBM Plex Sans KR SmBld
IBM Plex Sans KR Text
IBM Plex Sans Thai
IBM Plex Sans Thai Looped
IBM Plex Sans Thai Looped Medm
IBM Plex Sans Thai Looped SmBld
IBM Plex Sans Thai Looped Text
IBM Plex Sans Thai Medm
IBM Plex Sans Thai SmBld
IBM Plex Sans Thai Text
ITF Devanagari
ITF Devanagari Marathi
Kohinoor Devanagari
Noto Rashi Hebrew
Noto Sans Devanagari
Noto Sans Devanagari UI
Noto Sans Hebrew
Noto Sans Tamil
Noto Sans Tamil Supplement
Noto Sans Tamil UI
Noto Sans Thai
Noto Sans Thai Looped
Noto Serif Devanagari
Noto Serif Hebrew
Noto Serif Tamil
Noto Serif Thai
Shree Devanagari 714
Tamil MN
Tamil Sangam MN
> typst -V
typst 0.11.1 (50115102)
Reproduction URL
No response
Operating system
Linux
Typst version
- I am using the latest version of Typst
Contributor guide
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 reproducing the Linux behavior with fontconfig's setting, comparing fc-list with typst fonts as shown in the issue. Trace Typst's font discovery entry point and determine where rejected fonts remain visible; done means typst fonts no longer lists fonts excluded by that setting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, rust
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100