Package org.apache.fop.fonts
Class CMapSegment
java.lang.Object
org.apache.fop.fonts.CMapSegment
A segment in a cmap table of format 4. Unicode code points between
getUnicodeStart()
and getUnicodeEnd()
map to contiguous glyph indices
starting from getGlyphStartIndex()
.-
Constructor Summary
ConstructorDescriptionCMapSegment
(int unicodeStart, int unicodeEnd, int glyphStartIndex) Creates a new segment. -
Method Summary
-
Constructor Details
-
CMapSegment
public CMapSegment(int unicodeStart, int unicodeEnd, int glyphStartIndex) Creates a new segment.- Parameters:
unicodeStart
- Unicode start indexunicodeEnd
- Unicode end indexglyphStartIndex
- glyph start index
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
getUnicodeStart
public int getUnicodeStart()Returns the unicodeStart.- Returns:
- the Unicode start index
-
getUnicodeEnd
public int getUnicodeEnd()Returns the unicodeEnd.- Returns:
- the Unicode end index
-
getGlyphStartIndex
public int getGlyphStartIndex()Returns the glyphStartIndex.- Returns:
- the glyph start index
-
toString
-