Ardillo\FontDescriptor
On this page
Description
Ardillo base FontDescriptor class.
Properties
FontDescriptor::$app
Associated App instance
- type:
App
Methods
FontDescriptor::getFamily()
Returns the font’s family
FontDescriptor::setFamily(string $family)
Sets the font’s family
string $family
: The font’s family
FontDescriptor::getSize()
Returns the font’s size
FontDescriptor::setSize(float $size)
Sets the font’s size
float $size
: The font’s size
FontDescriptor::getWeight()
Returns the font’s weight
FontDescriptor::setWeight(int $weight)
Sets the font’s weight (use the FontWeight class integer constants)
int $weight
: The font’s weight
FontDescriptor::getItalic()
Returns the font’s italic flag
FontDescriptor::setItalic(int $italic)
Sets the font’s italic flag (use the FontItalic class integer constants)
int $italic
: The font’s italic flag
FontDescriptor::getStretch()
Returns the font’s stretch flag
FontDescriptor::setStretch(int $stretch)
Sets the font’s stretch flag (use the FontStretch class integer constants)
int $stretch
: The font’s stretch flag