wezterm icon indicating copy to clipboard operation
wezterm copied to clipboard

CommitMono font is set to italic variant after fresh install

Open tranzystorekk opened this issue 1 year ago • 2 comments

What Operating System(s) are you seeing this problem on?

Windows

Which Wayland compositor or X11 Window manager(s) are you using?

No response

WezTerm version

20230712-072601-f4abf8fd

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

No, and I'll explain why below

Describe the bug

After manually installing the https://commitmono.com/ font (all 4 variants - regular, bold, italic, italic bold), the varaint that is displayed by default in wezterm is italic instead of regular.

The issue can be fixed by uninstalling the italic variants in Windows Font Settings manually, and then reinstalling them.

To Reproduce

  1. Configure wezterm to use the 'CommitMono' font
  2. Freshly install the font from the zip archive provided on the font webpage or repo
  3. Start wezterm and observe that the fonts are italicized

Configuration

config.font = wezterm.font_with_fallback { 'CommitMono' }
config.font_size = 14.0

Expected Behavior

The Regular variant gets picked by default.

Logs

No response

Anything else?

No response

tranzystorekk avatar Nov 20 '23 09:11 tranzystorekk

Please update to the latest release, and if the problem persists, run wezterm ls-fonts and share the output

wez avatar Feb 03 '24 23:02 wez

Primary font:
wezterm.font_with_fallback({
  -- <imported to RAM>, Gdi
  -- AKA: "CommitMono"
  {family="CommitMonoV143", style="Italic"},

  -- <built-in>, BuiltIn
  "JetBrains Mono",

  -- <built-in>, BuiltIn
  -- Assumed to have Emoji Presentation
  "Noto Color Emoji",

  -- <built-in>, BuiltIn
  "Symbols Nerd Font Mono",

})


When Intensity=Half Italic=true:
wezterm.font_with_fallback({
  -- <imported to RAM>, Gdi
  -- Will synthesize dim
  -- AKA: "CommitMono"
  {family="CommitMonoV143", style="Italic"},

  -- <built-in>, BuiltIn
  "JetBrains Mono",

  -- <built-in>, BuiltIn
  -- Assumed to have Emoji Presentation
  "Noto Color Emoji",

  -- <built-in>, BuiltIn
  "Symbols Nerd Font Mono",

})


When Intensity=Half Italic=false:
wezterm.font_with_fallback({
  -- <imported to RAM>, Gdi
  -- Will synthesize dim
  -- AKA: "CommitMono"
  {family="CommitMonoV143", style="Italic"},

  -- <built-in>, BuiltIn
  "JetBrains Mono",

  -- <built-in>, BuiltIn
  -- Assumed to have Emoji Presentation
  "Noto Color Emoji",

  -- <built-in>, BuiltIn
  "Symbols Nerd Font Mono",

})


When Intensity=Bold Italic=false:
wezterm.font_with_fallback({
  -- <imported to RAM>, Gdi
  -- Will synthesize bold
  -- AKA: "CommitMono"
  {family="CommitMonoV143", style="Italic"},

  -- <built-in>, BuiltIn
  "JetBrains Mono",

  -- <built-in>, BuiltIn
  -- Assumed to have Emoji Presentation
  "Noto Color Emoji",

  -- <built-in>, BuiltIn
  "Symbols Nerd Font Mono",

})


When Intensity=Bold Italic=true:
wezterm.font_with_fallback({
  -- <imported to RAM>, Gdi
  -- Will synthesize bold
  -- AKA: "CommitMono"
  {family="CommitMonoV143", style="Italic"},

  -- <built-in>, BuiltIn
  "JetBrains Mono",

  -- <built-in>, BuiltIn
  -- Assumed to have Emoji Presentation
  "Noto Color Emoji",

  -- <built-in>, BuiltIn
  "Symbols Nerd Font Mono",

})


When Intensity=Normal Italic=true:
wezterm.font_with_fallback({
  -- <imported to RAM>, Gdi
  -- AKA: "CommitMono"
  {family="CommitMonoV143", style="Italic"},

  -- <built-in>, BuiltIn
  "JetBrains Mono",

  -- <built-in>, BuiltIn
  -- Assumed to have Emoji Presentation
  "Noto Color Emoji",

  -- <built-in>, BuiltIn
  "Symbols Nerd Font Mono",

})

Title font:
wezterm.font_with_fallback({
  -- <built-in>, BuiltIn
  {family="Roboto", weight="Bold"},

  -- <imported to RAM>, Gdi
  -- AKA: "CommitMono"
  {family="CommitMonoV143", style="Italic"},

  -- <built-in>, BuiltIn
  "JetBrains Mono",

  -- <built-in>, BuiltIn
  -- Assumed to have Emoji Presentation
  "Noto Color Emoji",

  -- <built-in>, BuiltIn
  "Symbols Nerd Font Mono",

})

tranzystorekk avatar Feb 04 '24 19:02 tranzystorekk