public class GlyphSubstitutionTable extends TTFTable
|Modifier and Type||Field and Description|
|Modifier and Type||Method and Description|
Apply glyph substitutions to the supplied gid.
For a substitute-gid (obtained from
getCheckSum, getInitialized, getLength, getOffset, getTag
scriptTagswhich indicate the language of the gid, and by the
enabledFeatureswhich 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.
scriptTags- Script tags applicable to the gid (see
enabledFeatures- Whitelist of features to apply
public 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 GID
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.