public class GlyphSubstitutionTable extends TTFTable
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
TAG |
font, initialized| Modifier and Type | Method | Description |
|---|---|---|
int |
getSubstitution(int gid,
java.lang.String[] scriptTags,
java.util.List<java.lang.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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCheckSum, getInitialized, getLength, getOffset, getTagpublic static final java.lang.String TAG
public int getSubstitution(int gid,
java.lang.String[] scriptTags,
java.util.List<java.lang.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 © 2008–2018. All rights reserved.