ClementTsang / bottom

Yet another cross-platform graphical process/system monitor.
https://clementtsang.github.io/bottom
MIT License
9.66k stars 226 forks source link

Graph line characters are displaying as blocks of dots #337

Closed eliliam closed 3 years ago

eliliam commented 3 years ago

Question

When using the Kitty terminal, all of the graphs are made up of blocks with varying size dots, instead of a single dotted line as expected. I tested against the xfce4-terminal and it rendered properly there. I am using IBM Plex Mono as a font, with stock kitty configs. Any guidance would be greatly appreciated!

Here is how it looks in kitty: btm

Platform

Operating System: Arch Linux Terminal: Kitty Shell: zsh Bottom version: 0.5.3

ClementTsang commented 3 years ago

It comes down to how your font/terminal displays braille characters, AFAIK.

See https://github.com/kovidgoyal/kitty/issues/1623, this might be helpful.

eliliam commented 3 years ago

That was it! I was missing a braille font, so after installing ttf-ubraille from the AUR everything looks fantastic!

ClementTsang commented 3 years ago

Nice, good to hear it worked out!

sudoforge commented 1 year ago

Arch Linux + Alacritty here. Here to say that uninstalling gnu-free-fonts (and then logging out and back in) did the trick.

My system fonts can be seen below. I'm not sure why bottom would have been using something else and displaying the broken glyphs.

➜ for family in {,sans-}serif monospace Arial Helvetica Verdana "Times New Roman" "Courier New"; do
echo -n "$family: "
fc-match "$family"
done
serif: NotoSerif-Regular.ttf: "Noto Serif" "Regular"
sans-serif: NotoSans-Regular.ttf: "Noto Sans" "Regular"
monospace: FiraMono-Regular.otf: "Fira Mono" "Regular"
Arial: NotoSans-Regular.ttf: "Noto Sans" "Regular"
Helvetica: NotoSans-Regular.ttf: "Noto Sans" "Regular"
Verdana: NotoSans-Regular.ttf: "Noto Sans" "Regular"
Times New Roman: NotoSerif-Regular.ttf: "Noto Serif" "Regular"
Courier New: FiraMono-Regular.otf: "Fira Mono" "Regular"
jcaesar commented 1 year ago

Arch Linux + Urxvt here. Uninstalling gnu-free-fonts only brought me more boxes, and ttf-ubraille does not seem to contain all braille characters (Try e.g. echo -e \u2810 \u2840). I ended up looking for appropriate fonts with this script, and then tweaking my ~/.Xdefaults

URxvt*font:     xft:Source Code Pro Semibold:size=10,xft:DejaVu Sans
! Source Code Pro Semibold doesn't contain the braille characters, but looks nice, DejaVu from ttf-dejavu contains them. Try DejaVu only, if in doubt. Iosevka Nerd Font from ttf-iosevka-nerd may be an alternative.
heyakyra commented 1 year ago

I am confused. On the latest Fedora Silverblue, I installed dejavu-fonts-all google-droid-fonts-all and fontawesome5-fonts-all (didn't uninstall anything). When I tried to use each of their mono variants in my alacritty config file at ~/.config/alacritty/alacritty.yml, that worked!

So then I purged that file and tried setting those fonts in gnome-tweak-tool which also worked!

But then I set it back to Source Code Pro…and it still worked? Why would merely having a font installed make a difference, even when it isn't the one being used?