General Information about PEX Fonts


See PEX Fonts for a list of PEX Font functions and related topics.

The PEX font manipulation mechanisms are the same mechanism as those for X11 fonts. The PEX font resource is very similar to the font resource created and managed by X11. PEX fonts that are used with PEX stroke precision text contain more functionality than is currently found in X11 fonts. Specifically, stroke precision text requires text fonts that you can scale and rotate. Because of the added capabilities of PEX fonts, PEX has defined its own PEX font open, close and query requests. However, the PEXlib functions correlate to the Xlib font functions.

PEX uses the X11 font path in order to locate PEX font files.

The first, last and default glyph fields are indices to the first, last and default glyphs of the font. The default glyph specifies the glyph that is displayed when an undefined or non-existent glyph is used. If the default glyph specifies a non-existent glyph, then nothing is rendered for undefined or non-existent glyphs. If all glyphs exist is True, then all glyphs within the range of the first and last glyph have non-zero extents. The stroke font flag indicates whether the font supports stroke precision, which implies the font is able to be scaled and rotated. The stroke font also enables the application to build font groups that all have the same text precision.

A font is not guaranteed to have any properties defined. Whether a property value is a signed or unsigned, and in what units it is specified must be derived from prior knowledge of the property. Many fonts will have at least a CHARSET_REGISTRY (e.g., ISO8859) and a CHARSET_ENCODING (e.g., 1) property.

See also information provided in the X Logical Font Description (XLFD) Conventions defined by the X Consortium. PEX 5.2 implementations are required to have a XLFD font name for each available font. These implementations may also provide alternate names for some fonts, for backwards compatibility. Each implementation is required to support at least one font which supports the character set ISO 8859/1 (Latin1) and is of at least medium weight. The XLFD name for this font must match the following XLFD match pattern:

  -*-*-*-*-*-*-*-*-*-*-*-*-ISO8859-1