PHP - Manual: HaruFont::getUnicodeWidth
2024-12-22
(PECL haru >= 0.0.1)
HaruFont::getUnicodeWidth — Get the width of the character in the font
$character
) : intGet the width of the character in the font.
character
The code of the character.
Returns the width of the character in the font.
发生错误时抛出 HaruException 异常。
官方地址:https://www.php.net/manual/en/harufont.getunicodewidth.php