Skip to content
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

[Bug]: Ubuntu, setting Font Family leads to very stretched looking output #1680

Open
3 tasks
coffeefedora opened this issue Jan 3, 2025 · 1 comment
Open
3 tasks
Labels
bug Something isn't working triage Needs triage

Comments

@coffeefedora
Copy link

Current Behavior

Downloaded the appimage build of Wave:
Client Version 0.10.4 (202412210242)
Update Channel: latest

Running on Ubuntu 22.04.5 LTS (codename jammy)

when i change the font family to JetBrains Mono NF, the terminal displays characters with very wide spacing, and blurry.
This font is installed and working in my other terminals.

my ~/.config/waveterm/settings.json:

{
  "autoupdate:channel": "latest",
  "telemetry:enabled": false,
  "term:fontfamily": "JetBrains Mono NF"
}

image

Expected Behavior

pretty terminal output

Steps To Reproduce

install JetBrains Mono NF, update settings.json

{
  "autoupdate:channel": "latest",
  "telemetry:enabled": false,
  "term:fontfamily": "JetBrains Mono NF"
}

restart wave, type ls in term, cry!

Wave Version

0.10.4

Platform

Linux

OS Version/Distribution

Ubuntu 22.04.5 LTS

Architecture

x64

Anything else?

No response

Questionnaire

  • I'm interested in fixing this myself but don't know where to start
  • I would like to fix and I have a solution
  • I don't have time to fix this right now, but maybe later
@coffeefedora coffeefedora added bug Something isn't working triage Needs triage labels Jan 3, 2025
@sawka
Copy link
Member

sawka commented Jan 3, 2025

looking at the screenshot it doesn't look like JetBrains Mono (or NF version), it looks like a terrible monospace fallback font. Is JetBrains Mono NF installed on your system directly?

So I downloaded the JetBrains Mono NF from https://www.nerdfonts.com/font-downloads . and then looked at the font family with fc-query ~/Downloads/JetBrainsMono/JetBrainsMonoNerdFontMono-Regular.ttf | grep family and got

        family: "JetBrainsMono Nerd Font Mono"(s) "JetBrainsMono NFM"(s)
        familylang: "en"(s) "en"(s)

so I think if say you were using that font, you'd want to set term:fontfamily to "JetBrainsMono NFM"? My guess is that the font family name you're specifying in term:fontfamily isn't matching the TTF file exactly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Needs triage
Projects
None yet
Development

No branches or pull requests

2 participants