Skip to content

[BUG] Inadequate font detection in terminalfont for xterm #2101

@lindhobe

Description

@lindhobe

Read the FAQ first

  • I have checked the FAQ but the issue is not covered

Description

There are multiple ways to specify TrueType fonts for xterm in .Xresources. The attached patch covers some of the additional possibilities.

fastfetch-terminalfont-xterm.patch

Version used

fastfetch 2.56.1 (x86_64)

Bug prevalence

Always

Regression

No

Installation

Built from source

Package manager

n/a

Screenshots

Terminal Font: fixed (8.0pt) [incorrect]

Terminal Font: DejaVu Sans Mono (9pt) [correct]

Configuration

{
  "logo": null,
  "display": {
    "color": {
      "keys": "blue",
      "title": "blue"
    },
    "brightColor": false,
    "temp": {
      "color": {
        "yellow": "yellow",
        "red": "red"
      }
    },
    "percent": {
      "color": {
        "yellow": "yellow",
        "red": "red"
      }
    }
  },
  "modules": [
    "break",
    {
      "type": "custom",
      "format": "{#bright_red}=== Software ==="
    },
    "version",
    "os",
    "kernel",
    "initsystem",
    "packages",
    "wm",
    "shell",
    "terminal",
    "terminalfont",
    "locale",
    "wifi",
    "localip",
    "uptime",
    "break",
    {
      "type": "custom",
      "format": "{#bright_red}=== Memory and Storage ==="
    },
    "memory",
    "swap",
    "disk",
    "break",
    {
      "type": "custom",
      "format": "{#bright_red}=== Hardware ==="
    },
    {
      "type": "host",
      "format": "{vendor} {name} {version}"
    },
    {
      "type": "board",
      "format": "{vendor} {name} {version}"
    },
    "bios",
    {
      "type": "cpu",
      "temp": true,
      "format": "{name} ({cores-physical}C/{cores-logical}T) @ {freq-max} - {temperature}"
    },
    {
      "type": "gpu",
      "temp": true
    },
    "physicalmemory",
    "display",
    {
      "type": "physicaldisk",
      "temp": true
    },
    "sound",
    "break"
  ]
}

System information

Too large

Features built-in

threads
xrandr
gio
zlib
libelf
libzfs
linux/videodev2
linux/wireless

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions