GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Font::FreeType::CharMap(3) User Contributed Perl Documentation Font::FreeType::CharMap(3)

Font::FreeType::CharMap - character map from font typefaces loaded from Font::FreeType

    use Font::FreeType;

    my $freetype = Font::FreeType->new;
    my $face = $freetype->face('Vera.ttf');
    my $charmap = $face->charmap;
    say $charmap->platform_id;
    say $charmap->encoding_id;
    say $charmap->encoding;

A charmap is used to translate character codes in a given encoding into glyph indexes for its parent's face. Some font formats may provide several charmaps per font.

The following encoding constants are exported by default by Font::FreeType. See freetype documenation <http://www.freetype.org/freetype2/docs/reference/ft2-base_interface.html#FT_Encoding>

Same as FT_ENCODING_SJIS. Deprecated.

Same as FT_ENCODING_GB2312. Deprecated.

Same as FT_ENCODING_BIG5. Deprecated.

Same as FT_ENCODING_WANSUNG. Deprecated.

Same as FT_ENCODING_JOHAB. Deprecated.

platform_id
An ID number describing the platform for the following encoding ID. This comes directly from the TrueType specification and should be emulated for other formats.

For details please refer to the TrueType or OpenType specification.

encoding_id
A platform specific encoding number. This also comes from the TrueType specification and should be emulated similarly.

For details please refer to the TrueType or OpenType specification.

encoding
An FreeType Encoding tag (constant) identifying the charmap.
2015-09-27 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.