Unicode in X Core Fonts

July 24, 2014 Linux No comments , ,

If you want to use an X core font specified by its X Logical Font Description, and you want to access some unicode symbols, make sure you specify the CHARSET_REGISTRY part as iso10646. For example:


Adding to X Core Fonts

July 23, 2014 Linux No comments , ,

The X Core Font System is a very old font system of the X Window Server (some of the man pages are 25 years old!). However, some things (most notably bar ain’t recursive) still use it.

The default installed fonts for the Core Font System aren’t very nice, and I wanted to use my own. Fortunately, it not only has support for TrueType fonts (wow), but it’s very easy add them:

  • Navigate to the directory containing the fonts (e.g. /usr/share/fonts/truetype/ubuntu-font-family/)
  • Run mkfontscale then mkfontdir (you may need to install something like xfonts-utils)
  • Add something like xset fp+ /usr/share/fonts/truetype/ubuntu-font-family/ to your ~/.xinitrc file