fastfetch-cli / fastfetch

An actively maintained, feature-rich and performance oriented, neofetch like system information tool.
MIT License
9.25k stars 378 forks source link

Loading config examples/2 causes boxes to be output to terminal rather than the icons shown in the repo screenshots #344

Closed Sanrax closed 1 year ago

Sanrax commented 1 year ago

General description of bug:

Icons shown in example 2 show up as boxes when run on my system, like a missing font. Am I supposed to install some font for this to work? I looked for a wiki, but there seems to be no documentation for this program other than the --help command. I want to base my output off of Example 2's design, but can't do that since the characters don't output correctly.

Here's what it looks like on my terminal

Often helpful questions:

Output of fastfetch --version:

fastfetch 1.7.5

Output of fastfetch --load-config devinfo:

                  -`                     arnas@arkiron
                 .o+`                    -------------
                `ooo/                    OS: Arch Linux x86_64
               `+oooo:                   Host: Inspiron 5593
              `+oooooo:                  Kernel: 5.15.80-1-lts
              -+oooooo+:                 Uptime: 58 mins
            `/:-:++oooo+:                Packages: 1158 (pacman)
           `/++++/+++++++:               Shell: bash 5.1.16
          `/++++++++++++++:              Resolution: 1920x1080 @ 60Hz
         `/+++ooooooooooooo/`            DE: KDE Plasma 5.26.4
        ./ooosssso++osssssso+`           WM: KWin (X11)
       .oossssso-````/ossssss+`          WM Theme: Breeze
      -osssssso.      :ssssssso.         Theme: Breeze (Dark) [QT], Breeze-Dark [GTK2], Breeze [GTK3]
     :osssssss/        osssso+++.        Icons: breeze-dark [QT], breeze-dark [GTK2/3/4]
    /ossssssss/        +ssssooo/-        Font: Noto Sans (10pt) [QT], Noto Sans (10pt) [GTK2/3/4]
  `/ossssso+/:-        -:/+osssso+-      Cursor: breeze (24px)
 `+sso+:-`                 `.-/+oso:     Terminal: konsole
`++:.                           `-/+/    Terminal Font: Couldn't find "DefaultProfile=%[^\n]" in ".config/konsolerc"
.`                                 `/    CPU: Intel Core i5-1035G1 (8) @ 3.6 GHz
                                         GPU: Intel Iris Plus Graphics G1 (Ice Lake)
                                         Memory: 2.32 GiB / 15.40 GiB (15%)
                                         Disk (/): 53.56 GiB / 97.87 GiB (54%)
                                         Battery: 100% [Full]
                                         Power Adapter: Unimplemented
                                         Locale: en_US.UTF-8

Output of fastfetch --load-config devinfo-verbose:

                  -`                     arnas@arkiron
                 .o+`                    -------------
                `ooo/                    OS: System: Linux; Name: Arch Linux; Pretty name: Arch Linux; ID: arch; ID like: ; Variant: ; Variant ID: ; Version: ; Version ID: ; Version codename: ; Build ID: rolling; Architecture: x86_64
               `+oooo:                   Host: Family: product_family: Inspiron; product_name: Inspiron 5593; product_version: ; product_sku: 097C; bios_date: 09/12/2022; bios_release: 1.24; bios_vendor: Dell Inc.; bios_version: 1.24.0; board_name: 0FHJFF; board_vendor: Dell Inc.; board_version: A00; chassis_type: 10; chassis_vendor: Dell Inc.; chassis_version: ; sys_vendor: Dell Inc.
              -+oooooo+:                 Kernel: Sysname: Linux; Release: 5.15.80-1-lts; Version: #1 SMP Sat, 26 Nov 2022 20:23:30 +0000
            `/:-:++oooo+:                Uptime: Days: 0; Hours: 0; Minutes: 56; Seconds: 3
           `/++++/+++++++:               Processes: Count: 727
          `/++++++++++++++:              Packages: All: 1158; pacman: 1158; pacman branch: ; dpkg: 0; rpm: 0; emerge: 0; xbps: 0; apk: 0; flatpak: 0; snap: 0; brew: 0
         `/+++ooooooooooooo/`            Shell: Process name: bash; Process path: /bin/bash; Process exe: bash; Process version: 5.1.16; User path: /bin/bash; User exe: bash; User version: 5.1.16
        ./ooosssso++osssssso+`           Resolution: Width: 1920; Height: 1080; Refresh rate: 60
       .oossssso-````/ossssss+`          DE: Process name: plasmashell; Pretty name: KDE Plasma; Version: 5.26.4
      -osssssso.      :ssssssso.         WM: Process name: KWin; Pretty name: KWin; Protocol: X11
     :osssssss/        osssso+++.        WM Theme: Name: Breeze
    /ossssssss/        +ssssooo/-        Theme: Plasma: Breeze; Plasma colors: BreezeDark; Plasma colors pretty: Dark; GTK2: Breeze-Dark; GTK3: Breeze; GTK4: ; GTK: Breeze-Dark [GTK2], Breeze [GTK3]
  `/ossssso+/:-        -:/+osssso+-      Icons: Plasma: breeze-dark; GTK2: breeze-dark; GTK3: breeze-dark; GTK4: breeze-dark; GTK: breeze-dark [GTK2/3/4]
 `+sso+:-`                 `.-/+oso:     Font: Font1: Noto Sans (10pt); Font2: Noto Sans (10pt); Font3: Noto Sans (10pt); Font4: Noto Sans (10pt)
`++:.                           `-/+/    Cursor: Theme: breeze; Size: 24
.`                                 `/    Terminal: Process: konsole; Path: /usr/bin/konsole; Exe: konsole
                                         Terminal Font: Couldn't find "DefaultProfile=%[^\n]" in ".config/konsolerc"
                                         CPU: Name: Intel Core i5-1035G1, Vendor: GenuineIntel, CoresPhysical: 4, CoresLogical: 8, CoresOnline: 8, FrequencyMin: 0.4, FrequencyMax: 3.6, Temperature: -nan
                                         GPU: Vendor: Intel; Name: Iris Plus Graphics G1 (Ice Lake); Driver: i915; Temperature: -nan; CoreCount: -1
                                         Memory: Used: 2.29 GiB; Total: 15.40 GiB; Percentage: 14
                                         Swap: 0 B / 8.00 GiB (0%)
                                         Disk (/): Used: 53.55 GiB; Total: 97.87 GiB; Files: 54; Percentage: 579151
                                         Battery: Manufactor: BYD; Model: DELL 1VX1H06; Technology: Li-poly; Capacity: 100; Status: Full
                                         Power Adapter: Unimplemented
                                         Media Player: Pretty: Spotify; Name: Spotify; Bus: spotify; Url: https://open.spotify.com/track/5ylg9QaKPd9DYD0p7E08XX
                                         Media: Pretty: Skulls in the Stars; Name: Skulls in the Stars;  Artist: NECRONOMIDOL; Album: Deathless
                                         Public IP: 
                                         Local IP (wlp2s0): 
                                         Date & Time: year: 2022; yearShort: 22; month: 12; monthPretty: 12; monthName: December; monthNameShort: Dec; weekNumber: 49; weekday: Saturday; weekdayShort: Sat; dayInYear: 81; dayInMonth: 3; dayInWeek: 6; hour: 11; hourPretty: 11; hour12: 11; hour12Pretty: 11; minute: 49; minutePretty: 49; second: 59; secondPretty: 59
                                         Locale: en_US.UTF-8
                                         Vulkan: ffvkCreateInstance() failed
                                         OpenGL: version: 4.6 (Compatibility Profile) Mesa 22.2.3; renderer: Mesa Intel(R) UHD Graphics (ICL GT1); vendor: Intel
                                         OpenCL: clGetPlatformIDs returned 0 platforms
                                         Users: arnas
                                         Weather:

Output of fastfetch --list-features:

libpci
vulkan
wayland
xcb-randr
xcb
xrandr
x11
gio
dconf
dbus
imagemagick7
chafa
zlib
xfconf
egl
glx
osmesa
opencl
LinusDierheimer commented 1 year ago

You are simply missing a font with support for those unicode icons. Try installing noto-fonts-emoji, if that doesn't help noto-fonts-extra

Sanrax commented 1 year ago

I installed both of those packages and did a reboot, but they still don't show up for some reason.

Navigating to https://github.com/LinusDierheimer/fastfetch/blob/dev/presets/examples/2 in a browser also comes up with the unknown character icons, both in Chromium and Firefox.

Packages for Noto fonts I have installed:

local/noto-fonts 20220810-1
    Google Noto TTF fonts
local/noto-fonts-cjk 20220126-1
    Google Noto CJK fonts
local/noto-fonts-emoji 20220920-1
    Google Noto emoji fonts
local/noto-fonts-extra 20220810-1
    Google Noto TTF fonts - additional variants
LinusDierheimer commented 1 year ago

Try setting your konsole font to DejaVu Sans Mono, that is what i am using.

Sanrax commented 1 year ago

.

Same thing with DejaVu Mono set

I do think the issue might still be missing fonts. I don't think Noto Emoji would provide the characters shown in example 2, looking at the Noto Emoji font in font viewer. Do you have other emoji-picture related fonts on your system?

LinusDierheimer commented 1 year ago
> yay -Q | rg -i font      
adobe-source-code-pro-fonts 2.038ro+1.058it+1.018var-1
cantarell-fonts 1:0.303.1-1
fontconfig 2:2.14.1-2
gnu-free-fonts 20120503-8
gsfonts 20200910-2
lib32-fontconfig 2:2.14.1-2
libfontenc 1.1.6-1
libxfont2 2.0.6-1
noto-fonts 20220810-1
noto-fonts-cjk 20220126-1
noto-fonts-emoji 20220920-1
noto-fonts-extra 20220810-1
texlive-fontsextra 2022.62977-1
xorg-fonts-encodings 1.0.6-1
Sanrax commented 1 year ago

Only real difference I see is texlive and gnu-free-fonts:

adobe-source-code-pro-fonts 2.038ro+1.058it+1.018var-1
cantarell-fonts 1:0.303.1-1
fontconfig 2:2.14.1-2
gsfonts 20200910-2
libfontenc 1.1.6-1
libxfont2 2.0.6-1
noto-fonts 20220810-1
noto-fonts-cjk 20220126-1
noto-fonts-emoji 20220920-1
noto-fonts-extra 20220810-1
xorg-font-util 1.3.3-1
xorg-fonts-100dpi 1.0.3-8
xorg-fonts-75dpi 1.0.3-8
xorg-fonts-alias-100dpi 1.0.4-1
xorg-fonts-alias-75dpi 1.0.4-1
xorg-fonts-encodings 1.0.6-1
xorg-mkfontscale 1.2.2-1
LinusDierheimer commented 1 year ago

Go to Konsole Settings --> Edit current profile --> Advanced --> Font encoding. Is it set to UTF-8? Wording is probably a bit different as i use german UI.

Sanrax commented 1 year ago

Yup, default character encoding is set to UTF-8.

Interestingly, even my phone renders the characters of example2 as missing characters.

Sanrax commented 1 year ago

I found this unicode: https://codepoints.net/U+1F4BB

And was able to copy it to my terminal and echo it, so clearly my unicode in the terminal does work fine. I wonder where you got some of these characters honestly. For example, I can't find the CPU Unicode character anywhere.

Sanrax commented 1 year ago

Ok well, I think I'm just going to use the Neofetch preset for now, and maybe try to replace the chars used in example2 with ones I can render on my system later, and try to get that config working.

Even if I can't, fastfetch is miles better than neofetch, and I don't have to wait to for the output to show up anymore. For that I am very thankful. I'll drop you a donation as thanks for this software.

LinusDierheimer commented 1 year ago

I wonder where you got some of these characters honestly

I copied them from here: https://github.com/Chick2D/neofetch-themes.

I'll drop you a donation

Thanks a lot!

Sanrax commented 1 year ago

Oh, thanks for the link. I'll check it out myself later, maybe I can get it to work.

Sanrax commented 1 year ago

I wonder where you got some of these characters honestly

I copied them from here: https://github.com/Chick2D/neofetch-themes.

I'll drop you a donation

Thanks a lot!

Yup, this is it!

It WAS the fonts, that repo tells you to install custom fonts to make the icons render. Some of them are not packages but copied in manually into your system, so that's why it might've not shown up in your yay output.