Font
class Font (View source)
Class with Font related methods.
Constants
| private CHAR_LISTS |
|
Methods
int
getStringWidth(string $text, string $font, int $fontSize)
Get width of string/text
Details
int
getStringWidth(string $text, string $font, int $fontSize)
Get width of string/text
The text element width is calculated depending on font name and font size.