3.1.3.6. PkFont

class PyDvi.Font.PkFont.PkFont(font_manager, font_id, name)[source]

Bases: PyDvi.Font.Font.Font

This class implements the packed font type in the font manager.

To create a packed font instance use:

font = PkFont(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. The packed font file is parsed using a PyDvi.PkFontParser.PkFontParser instance.

_find_font()[source]

Find the font file location in the system using Kpathsea and build if it is not already done.

_set_preambule_data(pk_id, comment, design_font_size, checksum, horizontal_dpi, vertical_dpi)[source]

Set the preambule data from the Packed Font Parser.

extension = 'pk'
font_type = 0
font_type_string = 'TeX Packed Font'
get_glyph(glyph_index, size=None, resolution=None)[source]
print_summary()[source]
register_glyph(glyph)[source]

Previous topic

3.1.3.5. FontMap

Next topic

3.1.3.7. PkFontParser

This Page