omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Global fontconfig monospace font overrides explicit Ghostty font-family

Open dandresrp opened this issue 6 months ago • 1 comments

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/config sets:
font-family = JetBrainsMono Nerd Font Mono
  • ghostty +show-config reports 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 monospace still follows Omarchy’s selected global font.
  • Ghostty and other apps can still use their explicit per-app font configuration.

dandresrp avatar May 08 '26 17:05 dandresrp

Yes I have seen this same thing. I have a font set in ghostty and JetBrains is overwritten by this.

aaronshahriari avatar May 09 '26 22:05 aaronshahriari