TomenetGame / tomenet

TomeNET is an online multiplayer roguelike role-playing game
https://www.tomenet.eu/
Other
70 stars 12 forks source link

Poor man guide for fonts in Fedora… #15

Open Tokariew opened 3 years ago

Tokariew commented 3 years ago

To install pcf fonts on Fedora:

copy pcf fonts to one of symlinked directory in /etc/X11/fontpath.d, go into directory and run:

sudo mkfontdir
xset fp rehash

After that check if fonts are detected with:

xlsfonts | grep tg # example for Tangar fonts

Why?

Fedora use somewhat different font path, as seen below

➜ xset -q
Keyboard Control:
  auto repeat:  on    key click percent:  0    LED mask:  00000002
  XKB indicators:
    00: Caps Lock:   off    01: Num Lock:    on     02: Scroll Lock: off
    03: Compose:     off    04: Kana:        off    05: Sleep:       off
    06: Suspend:     off    07: Mute:        off    08: Misc:        off
    09: Mail:        off    10: Charging:    off    11: Shift Lock:  off
    12: Group 2:     off    13: Mouse Keys:  off
  auto repeat delay:  660    repeat rate:  25
  auto repeating keys:  00ffffffdffffbbf
                        fadfffefffedffff
                        9fffffffffffffff
                        fff7ffffffffffff
  bell percent:  50    bell pitch:  400    bell duration:  100
Pointer Control:
  acceleration:  2/1    threshold:  4
Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  600    cycle:  600
Colors:
  default colormap:  0x20    BlackPixel:  0x0    WhitePixel:  0xffffff
Font Path:
  catalogue:/etc/X11/fontpath.d,built-ins
DPMS (Energy Star):
  Standby: 600    Suspend: 600    Off: 600
  DPMS is Enabled
  Monitor is On
➜ ls -la /etc/X11/fontpath.d/
lrwxrwxrwx@ 32 root 29 Jul  2020  liberation-mono-fonts -> /usr/share/fonts/liberation-mono
lrwxrwxrwx@ 34 root 29 Jul  2020  liberation-narrow-fonts -> /usr/share/fonts/liberation-narrow
lrwxrwxrwx@ 32 root 29 Jul  2020  liberation-sans-fonts -> /usr/share/fonts/liberation-sans
lrwxrwxrwx@ 33 root 29 Jul  2020  liberation-serif-fonts -> /usr/share/fonts/liberation-serif
lrwxrwxrwx@ 30 root 22 Oct  2020  urw-fonts -> /usr/share/X11/fonts/urw-fonts
lrwxrwxrwx@ 27 root 30 Jul  2020  xorg-x11-fonts-100dpi:unscaled:pri=30 -> /usr/share/X11/fonts/100dpi
lrwxrwxrwx@ 25 root 30 Jul  2020  xorg-x11-fonts-misc:unscaled:pri=10 -> /usr/share/X11/fonts/misc

This is folder with symlinks. So to install pcf fonts we can select one of symlinked directories…

fc-cache don't refresh pcf fonts, use xset fp rehash