Dompdf\FontMetrics::getTextWidth
Calculates text size, in points
Signature
public function getTextWidth(string
$text,
string
$font,
float
$size,
[float
$wordSpacing = 0.0,
[float
$charSpacing = 0.0]] )
Parameters
$text
— string- the text to be sized
$font
— string- the desired font
$size
— float- the desired font size
$wordSpacing
— float$charSpacing
— float
Returns
- float
Line | Task |
---|---|
263 | Make sure this cache is efficient before enabling it |