Font::TTF::Cmap - Online Linux Manual PageSection : 3pm
Updated : 2020-12-27
Source : perl v5.32.0
Note : User Contributed Perl Documentation

NAMEFont::TTF::Cmap − Character map table

DESCRIPTIONLooks after the character map. For ease of use, the actual cmap is held in a hash against codepoint. Thus for a given table: ​ $gid = $font−>{'cmap'}{'Tables'}[0]{'val'}{$code}; Note that $code should be a true value (0x1234) rather than a string representation.

INSTANCE VARIABLESThe instance variables listed here are not preceded by a space due to their emulating structural information in the font. Num Number of subtables in this table Tables An array of subtables ([0..Num−1]) Each subtable also has its own instance variables which are, again, not preceded by a space. Platform The platform number for this subtable Encoding The encoding number for this subtable Format Gives the stored format of this subtable Ver Gives the version (or language) information for this subtable val A hash keyed by the codepoint value (not a string) storing the glyph id The following cmap options are controlled by instance variables that start with a space: allowholes By default, when generating format 4 cmap subtables character codes that point to glyph zero (normally called .notdef) are not included in the subtable. In some cases including some of these character codes can result in a smaller format 4 subtable. To enable this behavior, set allowholes to non-zero.

METHODS

$t>readReads the cmap into memory. Format 4 subtables read the whole subtable and fill in the segmented array accordingly.

$t>ms_lookup($uni)Finds a Unicode table, giving preference to the MS one, and looks up the given Unicode codepoint in it to find the glyph id.

$t>find_msFinds the a Unicode table, giving preference to the Microsoft one, and sets the mstable instance variable to it if found. Returns the table it finds.

$t>ms_encReturns the encoding of the microsoft table (0 => symbol, etc.). Returns undef if there is no Microsoft cmap.

$t>out($fh)Writes out a cmap table to a filehandle. If it has not been read, then just copies from input file to output

$t>XML_element($context, $depth, $name, $val)Outputs the elements of the cmap in XML. We only need to process val here

$t>minsize()Returns the minimum size this table can be in bytes. If it is smaller than this, then the table must be bad and should be deleted or whatever.

$t>updateTidies the cmap table. Removes MS Fmt12 cmap if it is no longer needed. Removes from all cmaps any codepoint that map to GID=0. Note that such entries will be re-introduced as necessary depending on the cmap format.

@map = $t>reverse(%opt)Returns a reverse map of the Unicode cmap. I.e. given a glyph gives the Unicode value for it. Options are: tnum Table number to use rather than the default Unicode table array Returns each element of reverse as an array since a glyph may be mapped by more than one Unicode value. The arrays are unsorted. Otherwise store any one unicode value for a glyph.

is_unicode($index)Returns whether the table of a given index is known to be a unicode table (as specified in the specifications)

BUGS• Format 14 (Unicode Variation Sequences) cmaps are not supported.

AUTHORMartin Hosken <http://scripts.sil.org/FontUtils>.

LICENSINGCopyright (c) 1998−2016, SIL International (http://www.sil.org) This module is released under the terms of the Artistic License 2.0. For details, see the full text of the license in the file LICENSE.
0
Johanes Gumabo
Data Size   :   14,303 byte
man-Font::TTF::Cmap.3pmBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 168,683
Visitor ID   :     :  
Visitor IP   :   18.118.195.30   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|Font::TTF::Cmap.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|Font::TTF::Cmap.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|Font::TTF::Cmap.3pm|43|br══─}─══|'br══─}─══ )         (htmlprn|149|Font::TTF::Cmap.3pm|43|'br══─}─══ |'br══─}─══ )