Doc.loadTTFontFromFile

Loads a TrueType font from an external file (at the selected index) and register it to a document object

  1. string loadTTFontFromFile(string filename, bool embedding)
  2. string loadTTFontFromFile(string filename, uint index, bool embedding)
    class Doc
    string
    loadTTFontFromFile
    (
    string filename
    ,
    uint index
    ,)

Parameters

filename string

A path of a TrueType font file (.ttf)

embedding bool

if this parameter is true, the glyph data of the font is embedded, otherwise only the matrix data is included in PDF file

index uint

the index of font to be loaded.

Return Value

Type: string

when loadTTFontFromFile() succeeds, it returns the name of a font. Otherwise, it returns null and error-handler is called

Meta