Packageorg.purepdf.factories
Classpublic final class FontFactory
InheritanceFontFactory Inheritance Object



Public Methods
 MethodDefined By
  
getFont(fontname:String, encoding:String = Cp1252, embedded:Boolean = false, size:Number = 14, style:int = -1, color:RGBColor = null):Font
[static] Constructs a Font object.
FontFactory
Method Detail
getFont()method
public static function getFont(fontname:String, encoding:String = Cp1252, embedded:Boolean = false, size:Number = 14, style:int = -1, color:RGBColor = null):Font

Constructs a Font object.

Parameters

fontname:String — the name of the font
 
encoding:String (default = Cp1252) — the encoding of the font
 
embedded:Boolean (default = false) — true if the font is to be embedded in the PDF
 
size:Number (default = 14)
 
style:int (default = -1)
 
color:RGBColor (default = null) — the RGBColor of this font.

Returns
Font