FontCreateType1Font Method (PDFDoc, String) |
Embed an external TrueType font in the document as a CID font.
By default the function selects "Identity-H" encoding that maps 2-byte
Character codes ranging from 0 to 65,535 to the same Unicode value.
Other predefined encodings are listed in Table 5.15 'Predefined CMap names'
in PDF Reference Manual.
Namespace:
pdftron.PDF
Assembly:
pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax public static Font CreateType1Font(
PDFDoc doc,
string font_path
)
Public Shared Function CreateType1Font (
doc As PDFDoc,
font_path As String
) As Font
public:
static Font^ CreateType1Font(
[InAttribute] PDFDoc^ doc,
[InAttribute] String^ font_path
)
pdftron.PDF.Font.CreateType1Font = function(doc, font_path);
Parameters
- doc
- Type: pdftron.PDFPDFDoc
The 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.
See Also