Dompdf\Adapter\GD::get_text_width
Calculates text size, in points
Signature
public function get_text_width(string
$text,
string
$font,
float
$size,
[float
$word_spacing = 0.0,
[float
$char_spacing = 0.0]] )
Parameters
$text
— string- the text to be sized
$font
— string- the desired font
$size
— float- the desired font size
$word_spacing
— float- word spacing, if any
$char_spacing
— float- char spacing, if any
Returns
- float