New in version 0.3.0.
Font is an object which takes the path of font file, size, color, and whether to use antialiasing. If you want to use font by its name rather than the file path, use TTFQuery package. The font path resolution by its name is a very complicated problem to achieve.
See also
TTFQuery builds on the FontTools-TTX package to allow the Python programmer to accomplish a number of tasks:
Font struct which is a subtype of tuple.
Parameters: |
|
---|
Changed in version 0.3.9: The size parameter becomes optional. Its default value is 0, which means autosized.
(bool) Whether to apply antialiasing (True) or not (False).
(wand.color.Color) The font color.
(basestring) The path of font file.
(numbers.Real) The font size in pixels.