PeachDrawing.Core

PeachDrawing.Core.RenderContext

RenderContext.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