JWM Fonts
Contents
Overview
JWM supports core X11 fonts and, if compiled with Xft support, Xft fonts. Fonts are set via the <Font> tag in the JWM configuration. This page describes how to specify font strings for the body of the <Font> tag.
Core X11 Fonts
Core X11 fonts are separated into the following sections:
- Foundry - The foundry that created the font.
- Family - The family (times, courier, etc.).
- Weight - The weight (bold, medium, etc.).
- Slant - The slant ("o" for oblique, "i" for italic, "r" for roman).
- Set width - The font's proportionate width.
- Additional style - Additional font style descriptions.
- Pixels - Pixel size of a font.
- Points - Point size of a font (in tenths of a point)
- Horizontal DPI - Resolution for which the font was designed.
- Vertical DPI - Resolution for which the font was designed.
- Spacing - Either m (monospace) or p (proportional).
- Average width - Average width of all characters in the font (in tenths of a pixel)
- Registry - The standards body owning the encoding.
- Encoding - The registered name of the encoding.
Fonts begin with "-" and have "-" between each section. "*" may be used as a wildcard to match zero or more characters and "?" may be used to match any single character. It is generally recommended that the following fields be specified to get the desired font: family, weight, slant, and point size.
To easily browse fonts, use the xfontsel program.
Xft Fonts
The format for an Xft font name is:
family-size:name=value...
Here family represents the font family ("times", "courier", etc.). size is the font size in points. Finally, additional font attributes may follow the ":". The following attributes are supported:
- family
- style
- slant
One of the following:- roman
- italic
- oblique
- weight
One of the following:- light
- medium
- demibold
- bold
- black
- size
- pixelsize
- encoding
- spacing
One of the following:- proportional
- mono
- charcell
- foundry
- core
- antialias
Either true or false to enable or disable font antialiasing. - xlfd
- file
- index
- rasterizer
- outline
- scalable
- rgba
- scale
- render
- minspace
- charwidth
- charheight
- matrix