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: object

This 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 Font instance use:

font = Font(font_manager, font_id, name)

where font_manager is a PyDvi.FontManager.FontManager instance, 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.

_find_tfm()[source]

Find the TFM file location in the system using Kpathsea and load it.

basename()[source]

Return the basename.

extension = None
font_type = None
font_type_string = None
is_virtual
print_header()[source]
print_summary()[source]
PyDvi.Font.Font.font_types

Font Type Enumerate

alias of FontTypes

PyDvi.Font.Font.sort_font_class(*args)[source]

Sort a list of Font instance by font type enumerate.

Previous topic

3.1.3.2. Encoding

Next topic

3.1.3.4. FontManager

This Page