Top Description Fields Constructors Methods
org.apache.fontbox.ttf.model

public Class MapBackedGsubData

extends Object
implements GsubData
Class Inheritance
All Implemented Interfaces
org.apache.fontbox.ttf.model.GsubData
Imports
java.util.List, .Map, .Set

A Map based simple implementation of the GsubData
Author
Palash Ray

Field Summary

Modifier and TypeField and Description
private final String
private final Map<String, Map<List<Integer>, Integer>>
private final Language

Constructor Summary

AccessConstructor and Description
public
MapBackedGsubData(Language language, String activeScriptName, Map<String, Map<List<Integer>, Integer>> glyphSubstitutionMap)

Method Summary

Modifier and TypeMethod and Description
public String
getActiveScriptName()

Implements org.apache.fontbox.ttf.model.GsubData.getActiveScriptName.

A Language can have more than one script that is supported.

public ScriptFeature
public Language
public Set<String>
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

activeScriptNameback to summary
private final String activeScriptName
glyphSubstitutionMapback to summary
private final Map<String, Map<List<Integer>, Integer>> glyphSubstitutionMap
languageback to summary
private final Language language

Constructor Detail

MapBackedGsubDataback to summary
public MapBackedGsubData(Language language, String activeScriptName, Map<String, Map<List<Integer>, Integer>> glyphSubstitutionMap)

Method Detail

getActiveScriptNameback to summary
public String getActiveScriptName()

Implements org.apache.fontbox.ttf.model.GsubData.getActiveScriptName.

Doc from org.apache.fontbox.ttf.model.GsubData.getActiveScriptName.

A Language can have more than one script that is supported. However, at any given point, only one of the many scripts are active.

Returns:String

The name of the script that is active.

Annotations
@Override
getFeatureback to summary
public ScriptFeature getFeature(String featureName)

Implements org.apache.fontbox.ttf.model.GsubData.getFeature.

Annotations
@Override
getLanguageback to summary
public Language getLanguage()

Implements org.apache.fontbox.ttf.model.GsubData.getLanguage.

Annotations
@Override
getSupportedFeaturesback to summary
public Set<String> getSupportedFeatures()

Implements org.apache.fontbox.ttf.model.GsubData.getSupportedFeatures.

Annotations
@Override
isFeatureSupportedback to summary
public boolean isFeatureSupported(String featureName)

Implements org.apache.fontbox.ttf.model.GsubData.isFeatureSupported.

Annotations
@Override