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
)
Public Shared Function CreateTrueTypeFont (
doc As PDFDoc,
font_path As String
) As Font
public:
static Font^ CreateTrueTypeFont(
[InAttribute] PDFDoc^ doc,
[InAttribute] String^ font_path
)
pdftron.PDF.Font.CreateTrueTypeFont = function(doc, 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:
FontA 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