PdfFontManager Class

Provides methods for loading, registering and creating PDF fonts

Definition

Namespace: HiQPdf.Next
Assembly: HiQPdf.Next (in HiQPdf.Next.dll) Version: 18.9.2
C#
public static class PdfFontManager
Inheritance
Object    PdfFontManager

Methods

CreateBaseFont Creates a base font from a font file with optional Unicode range restrictions. When ranges are specified, only the glyphs in those ranges are included in the ToUnicode CMap, reducing file size for fonts with large character sets (e.g. CJK). The result is cached per unique combination of path, subset and unicodeRanges
CreateCjkBaseFont Creates a standard CJK base font built into Adobe Reader. These fonts do not require embedding - they are available in Adobe Reader when the CJK font pack is installed. Use for form fields that need to remain editable in Adobe Reader with CJK text. Supported names: STSong-Light, STHeiti-Regular (Simplified Chinese), MSung-Light, MHei-Medium (Traditional Chinese), HeiseiMin-W3, HeiseiKakuGo-W5 (Japanese), HYSMyeongJo-Medium, HYGoThic-Medium (Korean)
CreateFont(PdfBaseFont, Single) Creates a font from an existing base font using the normal style and black as the font color
CreateFont(String, Single) Creates a font from a font file using the normal style and black as the font color
CreateFont(PdfBaseFont, Single, PdfColor) Creates a font from an existing base font using the normal style
CreateFont(PdfBaseFont, Single, PdfFontStyle) Creates a font from an existing base font using black as the font color
CreateFont(String, Single, PdfColor) Creates a font from a font file using the normal style
CreateFont(String, Single, PdfFontStyle) Creates a font from a font file using black as the font color
CreateFont(PdfBaseFont, Single, PdfFontStyle, PdfColor) Creates a font from an existing base font
CreateFont(String, Single, PdfFontStyle, PdfColor) Creates a font from a font file
CreateRegisteredFont(String, Single) Creates a font from a registered font name or alias using the normal style and black as the font color
CreateRegisteredFont(String, Single, PdfColor) Creates a font from a registered font name or alias using the normal style
CreateRegisteredFont(String, Single, PdfFontStyle) Creates a font from a registered font name or alias using black as the font color
CreateRegisteredFont(String, Single, PdfFontStyle, PdfColor) Creates a font from a registered font name or alias
CreateRegisteredFont(String, Single, PdfFontStyle, PdfColor, Boolean, IListInt32) Creates a font from a registered font name or alias
CreateStandardBaseFont Creates a standard built-in PDF base font
CreateStandardFont(PdfStandardFont, Single) Creates a standard built-in PDF font using the normal style and black as the font color
CreateStandardFont(PdfStandardFont, Single, PdfColor) Creates a standard built-in PDF font using the normal style
CreateStandardFont(PdfStandardFont, Single, PdfFontStyle) Creates a standard built-in PDF font using black as the font color
CreateStandardFont(PdfStandardFont, Single, PdfFontStyle, PdfColor) Creates a standard built-in PDF font
GetRegisteredBaseFont Loads a registered base font by name or alias
GetRegisteredFamilies Gets the names of all registered font families
GetRegisteredFonts Gets the names of all registered fonts
IsFontRegistered Determines whether a font name or alias is registered
RegisterFont(String) Registers a font file
RegisterFont(String, String) Registers a font file with an alias
RegisterFontDirectory Registers all supported font files from a directory
RegisterFonts Registers multiple font files with aliases
RegisterSystemFontDirectories Registers fonts from the default system font directories. Subsequent calls are ignored. Registration is performed only once per process lifetime

See Also