freetypy.SIZE_REQUEST_TYPE¶
-
class
freetypy.
SIZE_REQUEST_TYPE
¶ Modes for selecting the size of a bitmap
Face
.NOMINAL
: The nominal size. TheFace.units_per_em
is used to determine both scaling values.REAL_DIM
: The real dimension. The sum of the theascender
and (minus of) thedescender
are used to determine both scaling values.BBOX
: The font bounding box. The width and height of thebbox
are used to determine the horizontal and vertical scaling value, respectively.CELL
: Themax_advance_width
is used to determine the horizontal scaling value; the vertical scaling value is determined the same way asSIZE_REQUEST_TYPE.REAL_DIM
does. Finally, both scaling values are set to the smaller one. This type is useful if you want to specify the font size for, say, a window of a given dimension and 80x24 cells.SCALES
: Specify the scaling values directly.
The above descriptions only apply to scalable formats. For bitmap formats, the behaviour is up to the driver.
-
__init__
()¶ x.__init__(...) initializes x; see help(type(x)) for signature
Attributes
BBOX
CELL
NOMINAL
REAL_DIM
SCALES