StandardFonts

Overview

StandardFonts is a class in Aspose.PDF FOSS for Python.

Utility class for the PDF Standard 14 fonts.

This class provides 4 methods for working with StandardFonts objects in Python programs. Available methods include: ALL, get_default_encoding, get_glyph_width, is_standard_font. All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.

Methods

SignatureDescription
ALL()Return a list of all standard font names.
is_standard_font(font_name)Return True if font_name is one of the PDF Standard 14 fonts.
get_glyph_width(font_name, char_code)Return the width of a glyph for font_name and char_code.
get_default_encoding(font_name)Return the default encoding name for a standard font.

See Also