Skip to content

Instantly share code, notes, and snippets.

@sergeykish
Last active June 1, 2020 17:46
Show Gist options
  • Save sergeykish/744300bbf3befa8bbe43759f44223e7f to your computer and use it in GitHub Desktop.
Save sergeykish/744300bbf3befa8bbe43759f44223e7f to your computer and use it in GitHub Desktop.
xserver without misc font
[xorg-server]
XMonad default theme font
Reported as present
$ # font was not present, not defined as xorg-server dependency
[ 64816.350] (WW) The directory "/usr/share/fonts/misc" does not exist.
[ 64816.350] Entry deleted from font path.
[ 64816.350] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[ 64816.350] Entry deleted from font path.
[ 64816.350] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[ 64816.350] Entry deleted from font path.
[ 64816.350] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[ 64816.350] Entry deleted from font path.
[ 64816.350] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[ 64816.350] Entry deleted from font path.
[ 64816.350] (==) FontPath set to:
/usr/share/fonts/TTF
$ sudo pacman -Rs xorg-fonts-misc
$ startx # xmonad with sample from wiki - layout broken, found fontName in default theme
$ xfontsel -pattern "-misc-fixed-*-*-*-*-12-*-*-*-*-*-*-*" # displays window with "1 name matches" and "Processing fonts..."
$ xlsfonts -fn "-misc-fixed-*-*-*-*-12-*-*-*-*-*-*-*"
-misc-fixed-medium-r-semicondensed--12-87-100-100-c-0-iso8859-1
$ grep semicondensed /usr/share/fonts/*/fonts.dir # not found
$ xlsfonts
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
-misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
6x13
cursor
fixed
$ xset q
Font Path:
/usr/share/fonts/TTF,built-ins
$ xset fp /usr/share/fonts/TTF/ # replace to remove built-ins
$ xlsfonts | grep semicondensed # not found
$ xfontsel -pattern "-misc-fixed-*-*-*-*-12-*-*-*-*-*-*-*" # how it should be
X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 45 (X_OpenFont)
Serial number of failed request: 10
Current serial number in output stream: 11
$ # install missing font
$ sudo pacman -S xorg-fonts-misc
$ xset +fp /usr/share/fonts/misc/
$ xfontsel -pattern "-misc-fixed-*-*-*-*-12-*-*-*-*-*-*-*" # 139 names match
$ xfontsel -pattern "-misc-fixed-medium-r-semicondensed--12-87-100-100-c-0-iso8859-1" # 1 name matches, preview displayed
$ xfontsel -pattern "-misc-fixed-medium-r-semicondensed--10-72-100-100-c-0-iso8859-1" # 1 name matches, preview displayed
$ xlsfonts -fn "-misc-fixed-medium-r-semicondensed--12-87-100-100-c-0-iso8859-1"
-misc-fixed-medium-r-semicondensed--12-87-100-100-c-0-iso8859-1
$ xlsfonts -fn "-misc-fixed-medium-r-semicondensed--10-72-100-100-c-0-iso8859-1"
-misc-fixed-medium-r-semicondensed--10-72-100-100-c-0-iso8859-1
$ # restart X
$ xfontsel -pattern "-misc-fixed-medium-r-semicondensed--12-87-100-100-c-0-iso8859-1" # 2 names match, preview displayed
$ xfontsel -pattern "-misc-fixed-medium-r-semicondensed--10-72-100-100-c-0-iso8859-1" # 2 names match, preview displayed
$ xlsfonts -fn "-misc-fixed-medium-r-semicondensed--12-87-100-100-c-0-iso8859-1" # two?
-misc-fixed-medium-r-semicondensed--12-87-100-100-c-0-iso8859-1
-misc-fixed-medium-r-semicondensed--12-87-100-100-c-0-iso8859-1
$ xlsfonts -fn "-misc-fixed-medium-r-semicondensed--10-72-100-100-c-0-iso8859-1" # two?
-misc-fixed-medium-r-semicondensed--10-72-100-100-c-0-iso8859-1
-misc-fixed-medium-r-semicondensed--10-72-100-100-c-0-iso8859-1
$ xlsfonts -fn "-misc-fixed-medium-r-semicondensed--10-72-100-100-c-0-iso8859-1"
-misc-fixed-medium-r-semicondensed--10-72-100-100-c-0-iso8859-1
-misc-fixed-medium-r-semicondensed--10-72-100-100-c-0-iso8859-1
$ xfontsel -pattern "-misc-fixed-medium-r-semicondensed--10-72-100-100-c-0-iso8859-1"
Warning: Missing charsets in String to FontSet conversion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment