Check out my first novel, midnight's simulacra!

Fonts

From dankwiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Fonts can be installed by copying the appropriate .otf or .ttf file to ~/.fonts.

Working with font-config

  • Dereference a font alias with `fc-match`:
[schwarzgerat](0) $ fc-match sans-serif
DejaVuSans.ttf: "DejaVu Sans" "Book"
[schwarzgerat](0) $ 
  • What font is used for this character?
#!/bin/sh
set -e
CHAR="$1"
for i in sans serif mono ; do
  FC_DEBUG=4 pango-view --font=$i -q -t "$CHAR" 2>&1 | \
    grep -o 'family: "[^"]\+' | cut -c 10- | tail -n 1
done
  • Clear font cache/indexes: fc-cache -f -v

Some fonts worth checking out

Inconsolata

Consolas

Monaco

Hack