boolean |
addFont (Sgss_Font_Interface $font)
Adds a font to this manager |
Sgss_Font_Interface|null |
getFont (string $family, [string|null $subfamily = null], [int|string|null $style = null], [int|string|null $weight = null], [int|string|null $stretch = null])
Returns the font that matches the specified parameters |
boolean |
hasFont (Sgss_Font_Interface|string $family, [string|null $subfamily = null], [int|string|null $style = null], [int|string|null $weight = null], [int|string|null $stretch = null])
Determines this manager has the font that matches the specified parameters |
array |
listFont ([string|null $locale = null])
Returns the list of all fonts in this manager |
boolean |
removeFont (Sgss_Font_Interface|string $family, [string|null $subfamily = null], [int|string|null $style = null], [int|string|null $weight = null], [int|string|null $stretch = null])
Removes the font that matches the specified parameters |
Adds a font to this manager
Sgss_Font_Interface $font
Font to add
public boolean addFont (Sgss_Font_Interface $font)
Returns the font that matches the specified parameters
string $family
Family name
string|null $subfamily
Subfamily name
int|string|null $style
Style identifier or name
int|string|null $weight
Weight value or name
int|string|null $stretch
Stretch value or name
public Sgss_Font_Interface|null getFont (string $family, [string|null $subfamily = null], [int|string|null $style = null], [int|string|null $weight = null], [int|string|null $stretch = null])
Determines this manager has the font that matches the specified parameters
Sgss_Font_Interface|string $family
Font instance or family name
string|null $subfamily
Subfamily name
int|string|null $style
Style identifier or name
int|string|null $weight
Weight value or name
int|string|null $stretch
Stretch value or name
public boolean hasFont (Sgss_Font_Interface|string $family, [string|null $subfamily = null], [int|string|null $style = null], [int|string|null $weight = null], [int|string|null $stretch = null])
Returns the list of all fonts in this manager
string|null $locale
Locale of profile to be listed
public array listFont ([string|null $locale = null])
Removes the font that matches the specified parameters
Sgss_Font_Interface|string $family
Font instance or family name
string|null $subfamily
Subfamily name
int|string|null $style
Style identifier or name
int|string|null $weight
Weight value or name
int|string|null $stretch
Stretch value or name
public boolean removeFont (Sgss_Font_Interface|string $family, [string|null $subfamily = null], [int|string|null $style = null], [int|string|null $weight = null], [int|string|null $stretch = null])