PixelCraft::guessFontSize
Returns font size that fits into image width
Signature
protected function guessFontSize(int
$fontSize,
string
$text,
int
$padding )
Parameters
$fontSize
— int- font size that required to fit text
$text
— string- text data that required to fit
$padding
— int- text padding in px
Returns
- int