Font::TTF::GrFeat3pm
Graphite font features
Overview
Instance variables
- version
- features
-
An array of hashes of the following form
- feature
-
feature id number
- name
-
name index in name table
- exclusive
-
exclusive flag
- default
-
the default setting number
- settings
-
hash of setting number against name string index
Methods
$t->read
Reads the features from the TTF file into memory
$t->out($fh)
Writes the features to a TTF file
$t->minsize()
Returns the minimum size this table can be. If it is smaller than this, then the table must be bad and should be deleted or whatever.
$t->print($fh)
Prints a human-readable representation of the table
$t->tag_to_num ($feat_str)
Convert an alphanumeric feature id tag (string) to a number (32-bit). Tags are normally 4 chars. Graphite ignores space padding if it is present, so we do the same here.
$t->num_to_tag ($feat_num)
Convert a feature id number (32-bit) back to a tag (string). Trailing space or null padding is removed. Feature id numbers that do not represent alphanumeric tags are returned unchanged.
Licensing
Copyright (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.
Releases
10 releases since Debian 5.0 (Lenny); the text changed 6 times.