public string loadTTFontFromFile(
string filename,
bool embedding = false)
Loads a TrueType font from an external file and register it to a document object
Parameters
filename | A path of a TrueType font file (.ttf) |
embedding | if this parameter is true, the glyph data of the font is embedded, otherwise only the matrix data is included in PDF file |
Returns
when loadTTFontFromFile() succeeds, it returns the name of a font. Otherwise, it returns null and error-handler is called
public string loadTTFontFromFile(
string filename,
uint index,
bool embedding)
Loads a TrueType font from an external file (at the selected index) and register it to a document object
Parameters
filename | A path of a TrueType font file (.ttf) |
embedding | if this parameter is true, the glyph data of the font is embedded, otherwise only the matrix data is included in PDF file |
index | the index of font to be loaded. |
Returns
when loadTTFontFromFile() succeeds, it returns the name of a font. Otherwise, it returns null and error-handler is called