fontinfo

Tools to get and set different kinds of font information.

See the UFO documentation.

clear_font_info(font)[source]

Clears all font information fields in the font.

clear_generic_dimension(font)[source]
clear_generic_identification(font)[source]
clear_generic_miscellaneous(font)[source]
clear_opentype_head(font)[source]
clear_opentype_hhea(font)[source]
clear_opentype_name(font)[source]
clear_opentype_os2(font)[source]
clear_opentype_vhea(font)[source]
clear_postscript_data(font)[source]
get_stems(font)[source]
print_font_info(font, options=None)[source]

Print several kinds of font information, using a special method for each section.

The data and related functions are organized according to the UFO 2 spec.

print_generic_dimension(font)[source]
print_generic_identification(font)[source]
print_generic_miscellaneous(font)[source]
print_opentype_head(font)[source]
print_opentype_hhea(font)[source]
print_opentype_name(font)[source]
print_opentype_os2(font)[source]
print_opentype_vhea(font)[source]
print_postscript_data(font)[source]
set_font_names(font, family_name, style_name)[source]

Set several font naming fields from family and style names.

set_names_from_path(font, prefix=None)[source]

Set the font naming fields using parts of the name of the font file.

set_stems(font, stems)[source]
set_vmetrics(font, xheight, capheight, ascender, descender, emsquare, gridsize=1)[source]

Previous topic

fileutils

Next topic

fontutils

This Page