Font Attributes
Font attributes are:
direction(
V)
- Does the font draw from left to right or
right to left? This is just a hint.
Possible values are
left_to_right
or
right_to_left
.
min_char(
V)
- Character code of the lowest represented
character in this font.
max_char(
V)
- Character code of highest represented
character in this font.
min_charset(
V)
- The lowest represented character set in this
font. This is an integer between 0 and 255.
max_charset(
V)
- The highest represented character set in this
font. This is an integer between 0 and 255.
all_chars_exist(
V)
- Do all characters between the
min_char
and the max_char
in character sets between the
min_charset
and the max_charset
in this font
have nonzero size? Possible values are true
and false
.
default_char(
V)
- The character code of the character printed
for missing characters.
ascent(
V)
- The number of pixels in the font above the
base line. This is the nominal ascent for
the font; some characters may write above
this point.
descent(
V)
- The number of pixels in the font below at or
below the base line. This is the nominal
ascent for the font; some characters may
write below this point.
height(
V)
- The font's ascent + descent. This is the
nominal height for the font; some characters
may be taller.
property(
N, V)
- V is the value of the N
property of the font.
If N is unbound, backtrack through
all the properties of the font. If N is
bound, it should be an atom. V will be
bound to an integer. Consult a
good reference on X for information about
font properties.
max_lbearing(
V)
- The maximum number of pixels left of the
base point of any character in this font.
max_rbearing(
V)
- The maximum number of pixels at or to the
right of the base point of any character in
this font.
max_width(
V)
- The width of widest character in this font.
max_ascent(
V)
- The largest height above baseline of any
character in this font.
max_descent(
V)
- Largest height at or the below baseline of
any character in this font.
min_lbearing(
V)
- Minimum number of pixels to the left of the base
point of any character in this font.
min_rbearing(
V)
- Minimum number of pixels at or to the right
of the base point of any character in this
font.
min_width(
V)
- Width of narrowest character in this font.
min_ascent(
V)
- Smallest height above baseline of any
character in this font.
min_descent(
V)
- Smallest height at or below the baseline of
any character in this font.
char_lbearing(
C, V)
- V is the number of pixels left of the base
point for the character whose character code
is C.
char_rbearing(
C, V)
- V is the number of pixels right of the base
point of character C.
char_width(
C, V)
- V is width of character C.
char_ascent(
C, V)
- V is height above the baseline of character
C.
char_descent(
C, V)
- V is height at or below the baseline of
character C.
char_height(
C, V)
- V is the ascent plus the descent of
character C.
char_attribute_bits(
C, V)
- V is the attribute bits, represented
as an integer, of character C. The meaning
of the attributes is not defined by X.
Font attributes are read only, it is not possible to change them.