write_font method

write_font

Writes data as base64 into HTML document itself

def write_font(self, generator, original_font, substituted_font, font_style, font_weight, font_data):
    ...
ParameterTypeDescription
generatorIHtmlGeneratorHTML generator
original_fontIFontDataFont to be serialized
substituted_fontIFontDataSubstituted font (if font substitution occured), None otherwise
font_stylestrFont style
font_weightstrFont weight
font_databytesFont data

See Also