Next: Translation object
Prev: Pixmap object
Up: Xt
Top: Top
3.9. Font object
The Font object attributes are read-only. The Font ID (fid) is
fairly useless. Everywhere a Font ID is required in the library, a
Font object must be given.
Font objects (font_objects) have the following methods and variables:
- all_chars_exist
- Field in XFontStruct structure.
- ascent
- Field in XFontStruct structure.
- default_char
- Field in XFontStruct structure.
- descent
- Field in XFontStruct structure.
- direction
- Field in XFontStruct structure.
- fid
- Field in XFontStruct structure.
- max_bounds
- Field in XFontStruct structure.
- max_byte1
- Field in XFontStruct structure.
- max_char_or_byte2
- Field in XFontStruct structure.
- min_bounds
- Field in XFontStruct structure.
- min_byte1
- Field in XFontStruct structure.
- min_char_or_byte2
- Field in XFontStruct structure.
- n_properties
- Field in XFontStruct structure.
- per_char
- Field in XFontStruct structure.
- properties
- Field in XFontStruct structure.
- TextExtents (string)
- Returns
(direction, font_ascent, font_descent, (lbearing, rbearing, width, ascent, descent, attributes))
.
This function corresponds with XTextExtents
.
- TextWidth (string)
- Returns
width
.
This function corresponds with XTextWidth
.
Next: Translation object
Prev: Pixmap object
Up: Xt
Top: Top