Click or drag to resize

FontCreateTrueTypeFont Method (PDFDoc, String)

Embed an external TrueType font in the document as a simple font.

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public static Font CreateTrueTypeFont(
	PDFDoc doc,
	string font_path
)

Parameters

doc
Type: pdftron.PDFPDFDoc
Document in which the external font should be embedded.
font_path
Type: SystemString
The path to the external font file.

Return Value

Type: Font
A newly created font.
Remarks
The glyphs in the Simple font are selected by single-byte Character codes. If you want to work with multi-byte Character codes (e.g. UTF16) you need to create a CID font.
See Also