PdfFontManagerSetStandardFontSubstitute Method

Sets the font that replaces a standard font when a document that uses the standard font without embedding it is written for a PDF standard that requires embedded fonts

Definition

Namespace: EvoPdf.Next
Assembly: EvoPdf.Next (in EvoPdf.Next.dll) Version: 15.1.0
C#
public static void SetStandardFontSubstitute(
	PdfStandardFont standardFont,
	PdfBaseFont substitute
)

Parameters

standardFont  PdfStandardFont
The standard font to replace
substitute  PdfBaseFont
An embedded TrueType font, or null to remove the font set before

Remarks

A bold or italic standard font without a font of its own is replaced by the font set for the regular font of its family, and a standard font without any font set is replaced by a default font. The fonts with the widths of a standard font, such as Arial, Times New Roman and Courier New, are replaced like that standard font. A font stays as it is when the document shows with it a character that the replacing font does not have

See Also