Class MapBackedGsubData

  • All Implemented Interfaces:
    GsubData

    public class MapBackedGsubData
    extends java.lang.Object
    implements GsubData
    A Map based simple implementation of the GsubData
    • Field Detail

      • language

        private final Language language
      • activeScriptName

        private final java.lang.String activeScriptName
      • glyphSubstitutionMap

        private final java.util.Map<java.lang.String,​java.util.Map<java.util.List<java.lang.Integer>,​java.lang.Integer>> glyphSubstitutionMap
    • Constructor Detail

      • MapBackedGsubData

        public MapBackedGsubData​(Language language,
                                 java.lang.String activeScriptName,
                                 java.util.Map<java.lang.String,​java.util.Map<java.util.List<java.lang.Integer>,​java.lang.Integer>> glyphSubstitutionMap)
    • Method Detail

      • getActiveScriptName

        public java.lang.String getActiveScriptName()
        Description copied from interface: GsubData
        A Language can have more than one script that is supported. However, at any given point, only one of the many scripts are active.
        Specified by:
        getActiveScriptName in interface GsubData
        Returns:
        The name of the script that is active.
      • isFeatureSupported

        public boolean isFeatureSupported​(java.lang.String featureName)
        Specified by:
        isFeatureSupported in interface GsubData
      • getSupportedFeatures

        public java.util.Set<java.lang.String> getSupportedFeatures()
        Specified by:
        getSupportedFeatures in interface GsubData