Doc.getFont

Gets a Font instance of the requested font

  1. Font getFont(string fontName)
  2. Font getFont(string fontName, string encodingName)
    class Doc
    Font
    getFont
    (
    string fontName
    ,)

Parameters

fontName string

A valid font name

encodingName string

A valid encoding name

Return Value

Type: Font

when getFont() succeeds, it returns the instance of a Font object. Otherwise, it returns null and error-handler is called

Meta