Package org.apache.fop.fonts.truetype
Class OpenFont.UnicodeMapping
java.lang.Object
org.apache.fop.fonts.truetype.OpenFont.UnicodeMapping
- All Implemented Interfaces:
Comparable
- Enclosing class:
- OpenFont
Key-value helper class.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
Returns the glyphIndex.int
Returns the unicodeIndex.int
hashCode()
-
Field Details
-
unicodeIndex
private final int unicodeIndex -
glyphIndex
private final int glyphIndex
-
-
Constructor Details
-
UnicodeMapping
UnicodeMapping(OpenFont font, int glyphIndex, int unicodeIndex)
-
-
Method Details
-
getGlyphIndex
public int getGlyphIndex()Returns the glyphIndex.- Returns:
- the glyph index
-
getUnicodeIndex
public int getUnicodeIndex()Returns the unicodeIndex.- Returns:
- the Unicode index
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable
-