3.1.3.3. Font¶
This module provides a base class for font type managed by the font manager.
-
class
PyDvi.Font.Font.Font(font_manager, font_id, name)[source]¶ Bases:
objectThis class is a base class for font managed by the Font Manager.
Class attributes to be defined in subclass:
font_type- font type enumerate
font_type_string- description of the font type
extension- file extension
To create a
Fontinstance use:font = Font(font_manager, font_id, name)
where font_manager is a
PyDvi.FontManager.FontManagerinstance, font_id is the font id provided by the font manager and name is the font name, “cmr10” for example.-
_find_font(kpsewhich_options=None)[source]¶ Find the font file location in the system using Kpathsea.
-
extension= None¶
-
font_type= None¶
-
font_type_string= None¶
-
is_virtual¶
-
PyDvi.Font.Font.font_types¶ Font Type Enumerate
alias of
FontTypes