Package org.apache.fontbox.ttf.model
Class MapBackedScriptFeature
- java.lang.Object
-
- org.apache.fontbox.ttf.model.MapBackedScriptFeature
-
- All Implemented Interfaces:
ScriptFeature
public class MapBackedScriptFeature extends java.lang.Object implements ScriptFeature
AMapbased simple implementation of theScriptFeature
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.util.List<java.lang.Integer>,java.lang.Integer>featureMapprivate java.lang.Stringname
-
Constructor Summary
Constructors Constructor Description MapBackedScriptFeature(java.lang.String name, java.util.Map<java.util.List<java.lang.Integer>,java.lang.Integer> featureMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanReplaceGlyphs(java.util.List<java.lang.Integer> glyphIds)booleanequals(java.lang.Object obj)java.util.Set<java.util.List<java.lang.Integer>>getAllGlyphIdsForSubstitution()java.lang.StringgetName()java.lang.IntegergetReplacementForGlyphs(java.util.List<java.lang.Integer> glyphIds)inthashCode()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceScriptFeature
-
getAllGlyphIdsForSubstitution
public java.util.Set<java.util.List<java.lang.Integer>> getAllGlyphIdsForSubstitution()
- Specified by:
getAllGlyphIdsForSubstitutionin interfaceScriptFeature
-
canReplaceGlyphs
public boolean canReplaceGlyphs(java.util.List<java.lang.Integer> glyphIds)
- Specified by:
canReplaceGlyphsin interfaceScriptFeature
-
getReplacementForGlyphs
public java.lang.Integer getReplacementForGlyphs(java.util.List<java.lang.Integer> glyphIds)
- Specified by:
getReplacementForGlyphsin interfaceScriptFeature
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-