f | |
| :mod:`fm` --- *Font Manager* interface |
| ====================================== |
| |
| .. module:: fm |
| :platform: IRIX |
| :synopsis: Font Manager interface for SGI workstations. |
n | :deprecated: |
| |
| .. deprecated:: 2.6 |
| The :mod:`fm` module has been deprecated for removal in Python 3.0. |
| |
| |
| |
| .. index:: |
| single: Font Manager, IRIS |
| single: IRIS Font Manager |
| |
| This module provides access to the IRIS *Font Manager* library. It is |
| available only on Silicon Graphics machines. See also: *4Sight User's Guide*, |
| |
| .. function:: fontpath() |
| |
| Returns the current font search path. |
| |
| Font handle objects support the following operations: |
| |
| |
n | .. function:: scalefont(factor) |
n | .. method:: font handle.scalefont(factor) |
| |
| Returns a handle for a scaled version of this font. Calls ``fmscalefont(fh, |
| factor)``. |
| |
| |
n | .. function:: setfont() |
n | .. method:: font handle.setfont() |
| |
| Makes this font the current font. Note: the effect is undone silently when the |
| font handle object is deleted. Calls ``fmsetfont(fh)``. |
| |
| |
n | .. function:: getfontname() |
n | .. method:: font handle.getfontname() |
| |
| Returns this font's name. Calls ``fmgetfontname(fh)``. |
| |
| |
n | .. function:: getcomment() |
n | .. method:: font handle.getcomment() |
| |
| Returns the comment string associated with this font. Raises an exception if |
| there is none. Calls ``fmgetcomment(fh)``. |
| |
| |
n | .. function:: getfontinfo() |
n | .. method:: font handle.getfontinfo() |
| |
| Returns a tuple giving some pertinent data about this font. This is an interface |
| to ``fmgetfontinfo()``. The returned tuple contains the following numbers: |
n | ``(``*printermatched*, *fixed_width*, *xorig*, *yorig*, *xsize*, *ysize*, |
n | ``(printermatched, fixed_width, xorig, yorig, xsize, ysize, height, nglyphs)``. |
| *height*, *nglyphs*``)``. |
| |
| |
t | .. function:: getstrwidth(string) |
t | .. method:: font handle.getstrwidth(string) |
| |
| Returns the width, in pixels, of *string* when drawn in this font. Calls |
| ``fmgetstrwidth(fh, string)``. |
| |