HaruFont::getUnicodeWidth

(PECL haru >= 0.0.1)

HaruFont::getUnicodeWidthGet the width of the character in the font

说明

HaruFont::getUnicodeWidth ( int $character ) : int

Get the width of the character in the font.

参数

character

The code of the character.

返回值

Returns the width of the character in the font.

错误/异常

发生错误时抛出 HaruException 异常。

相关文章
php ncurses 函数 read a character from keyboardphp ncurses 函数 draws a horizontal line in a window at current position using an attributed character and max. n characters longphp pdf 函数 terminate type 3 font definitionphp harufont get the vertical ascent of the fontphp harufont get the vertical descent of the fontphp harufont get the name of the fontphp harufont get the total width of the text number of characters number of words and number of spacesphp harufont get the width of the character in the fontphp harufont calculate the number of characters which can be included within the specified widthphp harupage get the current value of character spacingphp harupage get the width of the text using current fontsize character spacing and word spacingphp harupage calculate the byte length of characters which can be included on one line of the specified widthphp imagickdraw returns the font familyphp swffont returns the ascent of the font or 0 if not availablephp swffont calculates the width of the given string in this font at full heightphp swfshape draws the first character in the given string into the shape using the glyph definition from the given fontphp swftext writes the given text into this swftext object at the current pen position using the current font height spacing and colorphp swftext calculates the width of the given string in this text objects current font and sizephp swftextfield sets the text field width and heightphp ui draw text font descriptor style detection
关注编程学问公众号