FL.vfb.writer.FontToVfbWriter
- class FL.vfb.writer.FontToVfbWriter(font: Font)
Bases:
objectConvert the Font object to the low-level vfbLib.vfb.vfb.Vfb structure and write it to vfb_path
- __init__(font: Font) None
Instantiate a writer that can write the font into a VFB file.
- Parameters:
font (Font) – The source object of the data
Methods
__init__(font)Instantiate a writer that can write the font into a VFB file.
add_direct_entries(keys, ...], parent, enum)add_entry(eid[, data])compile()compile_encoding()compile_fl_version()compile_font_info()compile_global_properties()compile_glyphs()compile_header()compile_mm_font_info()compile_options()compile_ttinfo()write(vfb_path)Write the VFB to vfb_path.
write_json(vfb_json_path)Write the VFB as JSON to vfb_json_path.