freetypy.SIZE_REQUEST_TYPE¶
-
class
freetypy.SIZE_REQUEST_TYPE¶ Modes for selecting the size of a bitmap font.
NOMINAL: The nominal size. TheFace.units_per_emis used to determine both scaling values.REAL_DIM: The real dimension. The sum of the theascenderand (minus of) thedescenderare used to determine both scaling values.BBOX: The font bounding box. The width and height of thebboxare used to determine the horizontal and vertical scaling value, respectively.CELL: Themax_advance_widthis used to determine the horizontal scaling value; the vertical scaling value is determined the same way asSIZE_REQUEST_TYPE.REAL_DIMdoes. 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.
Attributes
BBOXCELLNOMINALREAL_DIMSCALES