WriteFont

EmbedAllFontsHtmlController.WriteFont method

Writes data as base64 into HTML document itself

public virtual void WriteFont(IHtmlGenerator generator, IFontData originalFont, 
    IFontData substitutedFont, string fontStyle, string fontWeight, byte[] fontData)
ParameterTypeDescription
generatorIHtmlGeneratorHTML generator
originalFontIFontDataFont to be serialized
substitutedFontIFontDataSubstituted font (if font substitution occured), null otherwise
fontStyleStringFont style
fontWeightStringFont weight
fontDataByte[]Font data

See Also