New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sarasa Term fonts do not work with kitty terminal emulator on Linux #192
Comments
Looks like related with FontConfig's "spacing" which requires all the advance widths in the font to be |
@be5invis Thanks for the prompt response ;-) Could you please explain in plain language what the problem is (e.g. a bug in the fonts) and potential workaround (a patch for the fonts) to people like me with limited knowledge of fonts? 😹 |
Yes (for pleasing FontConfig at least).
I plan to knock out these problematic glyphs in next release, you could test whether it worked. |
Thank you. I am more than happy (and keen) to test it out, will keep an eye on new release. |
Self-educated a bit more on fonts (bitmap, vector / outline and etc.) and For those who are curious, the cause, as @be5invis pointed out, some problematic glyphs in Sarasa Gothic v0.14.3 and earlier failed to please The outcome is that |
Resolve as fixed. Will land in next version ( |
I can confirm that kitty --debug-font-fallback
[304 18:28:04.391779] Preloaded font faces:
[304 18:28:04.391849] normal face: /home/terry/.fonts/sarasa-term-sc-regular.ttf:0
[304 18:28:04.391883] bold face: /home/terry/.fonts/sarasa-term-sc-regular.ttf:0
[304 18:28:04.391912] italic face: /home/terry/.fonts/sarasa-term-sc-regular.ttf:0
[304 18:28:04.391938] bi face: /home/terry/.fonts/sarasa-term-sc-regular.ttf:0
fc-list : family spacing outline scalable | awk '/spacing=100/ || /spacing=90/' | awk '/outline=True/ && /scalable=True/' | grep -i Sarasa
Sarasa Term SC:spacing=90:outline=True:scalable=True |
A bit of background can be found here kovidgoyal/kitty#3021
TL;DR
Iosevka has spacing values for its Term variants. Sarasa Gothic fonts (ttc and ttf) does not.
Problem
kitty on macOS somehow works fine with Sarasa Gothic (Term SC in my case).
kitty list-fonts
show the fonts correctly, so does font fallbackHowever, kitty on Linux does not work with the same font (TTC or specific TTF file).
kitty list-fonts
does not showfc-list
outputOS info
Workaround
Recommended by kitty FAQ
Tried to override (both add in
~/.config/fontconfig/fonts.conf
and a separate config file inconf.d
) and force cache rebuild viafc-cache -rv
but stillkitty list-fonts
does not show the fontI am no fongconfig expert so don't laugh if I did it wrong (font family string may be wrong...).
My ask: what is the easiest (at the
best
cost, scalable, others can easily adopt) way to get Sarasa Gothic working with kitty on Linux?The text was updated successfully, but these errors were encountered: