Global fontconfig monospace font overrides explicit Ghostty font-family
Omarchy’s global fontconfig setup currently makes the selected system monospace font override an explicit font configured in Ghostty.
Expected behavior:
- Omarchy’s Style > Font should set the default monospace font for apps that use
monospace. - Apps with an explicit font configuration should still be able to override it.
Actual behavior:
~/.config/ghostty/configsets:
font-family = JetBrainsMono Nerd Font Mono
ghostty +show-configreports JetBrainsMono correctly.- But
ghostty +show-face --string='abc012Il1'resolves glyphs to the current Omarchy system monospace font, e.g. CaskaydiaCove.
Local diagnostic evidence:
Sort Pattern has 29 elts
family: "CaskaydiaCove Nerd Font Mono" "JetBrainsMono Nerd Font Mono"
First font Pattern
family: "CaskaydiaCove Nerd Font Mono" "CaskaydiaCove NFM"
file: "/usr/share/fonts/TTF/CaskaydiaCoveNerdFontMono-Regular.ttf"
This seems to happen because Omarchy’s ~/.config/fontconfig/fonts.conf uses a strong assignment for monospace, so fontconfig prepends the global Omarchy font ahead of Ghostty’s explicit font.
This is related to #519, but slightly different: #519 was closed after the font menu started updating fontconfig. The remaining issue is that the global font acts like an override instead of a default.
A good outcome would be:
fc-match monospacestill follows Omarchy’s selected global font.- Ghostty and other apps can still use their explicit per-app font configuration.
Yes I have seen this same thing. I have a font set in ghostty and JetBrains is overwritten by this.