Class CmapSubtable.SubHeader

  • Enclosing class:
    CmapSubtable

    private static class CmapSubtable.SubHeader
    extends java.lang.Object
    Class used to manage CMap - Format 2.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int entryCount  
      private int firstCode  
      private short idDelta
      used to compute the GlyphIndex : P = glyphIndexArray.SubArray[pos] GlyphIndex = P + idDelta % 65536.
      private int idRangeOffset
      Number of bytes to skip to reach the firstCode in the glyphIndexArray.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private SubHeader​(int firstCodeValue, int entryCountValue, short idDeltaValue, int idRangeOffsetValue)  
    • Field Detail

      • firstCode

        private final int firstCode
      • entryCount

        private final int entryCount
      • idDelta

        private final short idDelta
        used to compute the GlyphIndex : P = glyphIndexArray.SubArray[pos] GlyphIndex = P + idDelta % 65536.
      • idRangeOffset

        private final int idRangeOffset
        Number of bytes to skip to reach the firstCode in the glyphIndexArray.
    • Constructor Detail

      • SubHeader

        private SubHeader​(int firstCodeValue,
                          int entryCountValue,
                          short idDeltaValue,
                          int idRangeOffsetValue)
    • Method Detail

      • 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