Package org.apache.fontbox.ttf
Class CmapSubtable.SubHeader
java.lang.Object
org.apache.fontbox.ttf.CmapSubtable.SubHeader
- Enclosing class:
- CmapSubtable
Class used to manage CMap - Format 2.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate final shortused to compute the GlyphIndex : P = glyphIndexArray.SubArray[pos] GlyphIndex = P + idDelta % 65536.private final intNumber of bytes to skip to reach the firstCode in the glyphIndexArray. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSubHeader(int firstCodeValue, int entryCountValue, short idDeltaValue, int idRangeOffsetValue) -
Method Summary
Modifier and TypeMethodDescriptionprivate intprivate intprivate shortprivate int
-
Field Details
-
firstCode
private final int firstCode -
entryCount
private final int entryCount -
idDelta
private final short idDeltaused to compute the GlyphIndex : P = glyphIndexArray.SubArray[pos] GlyphIndex = P + idDelta % 65536. -
idRangeOffset
private final int idRangeOffsetNumber of bytes to skip to reach the firstCode in the glyphIndexArray.
-
-
Constructor Details
-
SubHeader
private SubHeader(int firstCodeValue, int entryCountValue, short idDeltaValue, int idRangeOffsetValue)
-
-
Method Details
-
getFirstCode
private int getFirstCode()- Returns:
- the firstCode
-
getEntryCount
private int getEntryCount()- Returns:
- the entryCount
-
getIdDelta
private short getIdDelta()- Returns:
- the idDelta
-
getIdRangeOffset
private int getIdRangeOffset()- Returns:
- the idRangeOffset
-