fm
This module provides access to the IRIS Font Manager library. It is available only on Silicon Graphics machines. See also: 4Sight User's Guide, Section 1, Chapter 5: Using the IRIS Font Manager.
This is not yet a full interface to the IRIS Font Manager. Among the unsupported features are: matrix operations; cache operations; character operations (use string operations instead); some details of font info; individual glyph metrics; and printer matching.
It supports the following operations:
fminit()
.
It is normally not necessary to call this function, since it is called
automatically the first time the fm
module is imported.
fmfindfont(fontname)
.
fmenumerate()
.
setfont()
font
handle method below).
Calls fmprstr(string)
.
fmsetpath(string)
.
(XXX Does not work!?!)
Font handle objects support the following operations:
fmscalefont(fh, factor)
.
fmsetfont(fh)
.
fmgetfontname(fh)
.
fmgetcomment(fh)
.
fmgetfontinfo()
.
The returned tuple contains the following numbers:
(printermatched, fixed_width, xorig, yorig,
xsize, ysize, height, nglyphs).
fmgetstrwidth(fh, string)
.