PeachPDF

PeachPDF.PdfGenerator

PdfGenerator.AddFontFamilyMapping(string, string) Method

Adds a font mapping from fromFamily to toFamily iff the fromFamily is not found.
When the fromFamily font is used in rendered html and is not found in existing fonts (installed or added) it will be replaced by toFamily.

public void AddFontFamilyMapping(string fromFamily, string toFamily);

Parameters

fromFamily System.String

the font family to replace

toFamily System.String

the font family to replace with

Remarks

This fonts mapping can be used as a fallback in case the requested font is not installed in the client system.