ghostty/ghostty-fonts.conf
2025-03-14 02:06:26 -07:00

41 lines
1.2 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Include the system defaults -->
<include ignore_missing="yes">/etc/fonts/fonts.conf</include>
<include ignore_missing="yes">/etc/fonts/conf.d</include>
<!-- Custom overrides for Ghostty -->
<!-- Force JetBrainsMono Nerd Font (and fallback to Noto Sans CJK JP) -->
<match>
<edit name="family" mode="prepend" binding="strong">
<string>JetBrainsMono Nerd Font</string>
</edit>
<edit name="family" mode="append">
<string>Noto Sans CJK JP</string>
</edit>
</match>
<!-- For Japanese text, prefer Noto Sans CJK JP -->
<match>
<test name="lang" compare="contains">
<string>ja</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Sans CJK JP</string>
</edit>
</match>
<!-- Monospace alias for Ghostty (so it uses the fixedwidth variant) -->
<alias>
<family>monospace</family>
<prefer>
<family>JetBrainsMono Nerd Font Mono</family>
<family>Noto Sans Mono CJK JP</family>
<family>DejaVu Sans Mono</family>
<family>Noto Sans Mono</family>
</prefer>
</alias>
</fontconfig>