Notice! This document is currently in Archived status.
The content of this document may be incorrect or outdated.

Print this article Edit this article

X font name fields.

Purdue Engineering Computer Network
Most X fonts have a name consisting of 14 fields in the form:
 -foundry-family-weight-slant-setwidth-style-pixelSize-pointSize-\
Xresolution-Yresolution-spacing-averageWidth-registry-encoding
The purpose of a name like this is to eliminate confusion among fonts. The 14 fields are as follows:

foundry
the name or identifier of the digital type foundry
that digitized and supplied the font data.


family
a string that identifies the basic typographic style
(e.g. "helvetica", "courier", etc.).


weight
a string that identifies the nominal blackness of the
font, according to the FOUNDRY's judgment (e.g. "medium",
"bold", etc.).


slant
a code string that indicates the overall posture of
the typeface design used in the font -- one of the
following:
R Roman upright design
I Italic italic design, slanted clockwise
O Oblique obliqued upright design, slanted clockwise


setwidth
a string that gives the nominal width per horizontal
unit of the font, according to the FOUNDRY's judgment
(e.g. "Normal", "Narrow", "Double Wide").


style
a string that identifies additional style information
not captured by other fields, but needed to uniquely
identify the font in the FOUNDRY's judgment (e.g.
"Serif", "Sans Serif").


pixelSize
an unsigned integer-string typographic metric in
device pixels which gives the body size of the font.


pointSize
an unsigned integer-string typographic metric in
device-independent units which gives the body size for
which the font was designed.


Xresolution
an unsigned integer-string in pixels/dots per inch
(dpi) which gives the horizontal resolution for which
the font was designed.


Yresolution
an unsigned integer-string in pixels/dots per inch
(dpi) which gives the vertical resolution for which
the font was designed.


spacing
a code-string that indicates the escapement class of
the font -- one of the following:
P Proportional proportional font
M Monospace a font whose logical character
widths are constant, but no
other restrictions apply
C CharCell a monospaced font in which the
glyphs can be modeled as boxes
of identical width and height
with no "ink" outside the box.


averageWidth
an unsigned integer-string value giving the unweighted
arithmetic mean width of all glyphs in the font,
measured in 1/10th pixels.


registry
a registered name that identifies the registration
authority (i.e. international standards body) that
owns the specified encoding.


encoding
a registered name that identifies the coded character
set as defined by the specified registry.

Last Modified: Dec 19, 2016 11:12 am US/Eastern
Created: Jun 21, 2007 12:37 pm GMT-4 by admin
JumpURL: