public class GlyphSubstitutionTable extends TTFTable
| Modifier and Type | Field and Description |
|---|---|
static String |
TAG |
font, initialized| Modifier and Type | Method and Description |
|---|---|
int |
getSubstitution(int gid,
String[] scriptTags,
List<String> enabledFeatures)
Apply glyph substitutions to the supplied gid.
|
int |
getUnsubstitution(int sgid)
For a substitute-gid (obtained from
getSubstitution(int, String[], List)), retrieve
the original gid. |
getCheckSum, getInitialized, getLength, getOffset, getTagpublic static final String TAG
public int getSubstitution(int gid,
String[] scriptTags,
List<String> enabledFeatures)
scriptTags which indicate the language of the gid, and by the
enabledFeatures which acts as a whitelist.
To ensure that a single gid isn't mapped to multiple substitutions, subsequent invocations
with the same gid will return the same result as the first, regardless of script or enabled
features.gid - GIDscriptTags - Script tags applicable to the gid (see OpenTypeScript)enabledFeatures - Whitelist of features to applypublic int getUnsubstitution(int sgid)
getSubstitution(int, String[], List)), retrieve
the original gid.
Only gids previously substituted by this instance can be un-substituted. If you are trying to
unsubstitute before you substitute, something is wrong.sgid - Substitute GIDCopyright © 2002–2018 The Apache Software Foundation. All rights reserved.