Home > PHP > Function > > HaruDoc::getFont()

HaruDoc::getFont()

HaruDoc::getFont - Get
HaruFontinstance

Syntax

object HaruDoc::getFont (string $fontname, string $encoding)

Arguments

  • fontname - The name of the font. See Builtin Fontsfor the list of builtin fonts. You can also use the name of a font loaded via HaruDoc::loadTTF, HaruDoc::loadTTC and HaruDoc::loadType1.
  • encoding - The encoding to use. See Builtin Encodingsfor the list of supported encodings.

Description

Get a HaruFontinstance.

Version

PHP PECL haru >= 0.0.1

Return value

Returns a HaruFontinstance with the specified fontname and encoding.