rest25/library/fm.rst => rest262/library/fm.rst
f1
2:mod:`fm` --- *Font Manager* interface
3======================================
4
5.. module:: fm
6   :platform: IRIX
7   :synopsis: Font Manager interface for SGI workstations.
n8+   :deprecated:
9+ 
10+.. deprecated:: 2.6
11+   The :mod:`fm` module has been deprecated for removal in Python 3.0.
12+ 
8
9
10.. index::
11   single: Font Manager, IRIS
12   single: IRIS Font Manager
13
14This module provides access to the IRIS *Font Manager* library.   It is
15available only on Silicon Graphics machines. See also: *4Sight User's Guide*,
54
55.. function:: fontpath()
56
57   Returns the current font search path.
58
59Font handle objects support the following operations:
60
61
n62-.. function:: scalefont(factor)
n67+.. method:: font handle.scalefont(factor)
63
64   Returns a handle for a scaled version of this font. Calls ``fmscalefont(fh,
65   factor)``.
66
67
n68-.. function:: setfont()
n73+.. method:: font handle.setfont()
69
70   Makes this font the current font. Note: the effect is undone silently when the
71   font handle object is deleted. Calls ``fmsetfont(fh)``.
72
73
n74-.. function:: getfontname()
n79+.. method:: font handle.getfontname()
75
76   Returns this font's name. Calls ``fmgetfontname(fh)``.
77
78
n79-.. function:: getcomment()
n84+.. method:: font handle.getcomment()
80
81   Returns the comment string associated with this font. Raises an exception if
82   there is none. Calls ``fmgetcomment(fh)``.
83
84
n85-.. function:: getfontinfo()
n90+.. method:: font handle.getfontinfo()
86
87   Returns a tuple giving some pertinent data about this font. This is an interface
88   to ``fmgetfontinfo()``. The returned tuple contains the following numbers:
n89-   ``(``*printermatched**fixed_width**xorig**yorig**xsize**ysize*,
n94+   ``(printermatched, fixed_width, xorig, yorig, xsize, ysize, height, nglyphs)``.
90-   *height*, *nglyphs*``)``.
91
92
t93-.. function:: getstrwidth(string)
t97+.. method:: font handle.getstrwidth(string)
94
95   Returns the width, in pixels, of *string* when drawn in this font. Calls
96   ``fmgetstrwidth(fh, string)``.
97
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op