Returns the number of defined glyph-names of the font.
$uni = $font->uniByGlyph $char
Returns the unicode by glyph-name.
$uni = $font->uniByEnc $char
Returns the unicode by the fonts encoding map.
$uni = $font->uniByMap $char
Returns the unicode by the fonts default map.
$char = $font->encByGlyph $glyph
Returns the character by the given glyph-name of the fonts encoding
map.
$char = $font->encByUni $uni
Returns the character by the given unicode of the fonts encoding map.
$char = $font->mapByGlyph $glyph
Returns the character by the given glyph-name of the fonts default
map.
$char = $font->mapByUni $uni
Returns the character by the given unicode of the fonts default map.
$name = $font->glyphByUni $unicode
Returns the glyphs name by the fonts unicode map. BEWARE:
non-standard glyph-names are mapped onto the ms-symbol area (0xF000).
$name = $font->glyphByEnc $char
Returns the glyphs name by the fonts encoding map.
$name = $font->glyphByMap $char
Returns the glyphs name by the fonts default map.
$width = $font->wxByGlyph $glyph
Returns the glyphs width.
$width = $font->wxByUni $uni
Returns the unicodes width.
$width = $font->wxByEnc $char
Returns the characters width based on the current encoding.
$width = $font->wxByMap $char
Returns the characters width based on the fonts default encoding.
$wd = $font->width $text
Returns the width of $text as if it were at size
1. BEWARE: works only correctly if a proper perl-string is used
either in native or utf8 format (check utf8-flag).
@widths = $font->width_array $text
Returns the widths of the words in $text as if
they were at size 1.