Class CMapFormat4

java.lang.Object
com.sun.pdfview.font.ttf.CMap
com.sun.pdfview.font.ttf.CMapFormat4

public class CMapFormat4 extends CMap
  • Field Details

  • Constructor Details

    • CMapFormat4

      protected CMapFormat4(short language)
      Creates a new instance of CMapFormat0
  • Method Details

    • addSegment

      public void addSegment(short startCode, short endCode, char[] map)
      Add a segment with a map
    • addSegment

      public void addSegment(short startCode, short endCode, short idDelta)
      Add a segment with an idDelta
    • removeSegment

      public void removeSegment(short startCode, short endCode)
      Remove a segment
    • getLength

      public short getLength()
      Get the length of this table
      Specified by:
      getLength in class CMap
    • map

      public byte map(byte src)
      Cannot map from a byte
      Specified by:
      map in class CMap
    • map

      public char map(char src)
      Map from char
      Specified by:
      map in class CMap
    • reverseMap

      public char reverseMap(short glyphID)
      Get the src code which maps to the given glyphID
      Specified by:
      reverseMap in class CMap
    • setData

      public void setData(int length, ByteBuffer data)
      Get the data in this map as a ByteBuffer
      Specified by:
      setData in class CMap
    • getData

      public ByteBuffer getData()
      Get the data in the map as a byte buffer
      Specified by:
      getData in class CMap
    • getSegmentCount

      public short getSegmentCount()
      Get the segment count
    • getSearchRange

      public short getSearchRange()
      Get the search range
    • getEntrySelector

      public short getEntrySelector()
      Get the entry selector
    • getRangeShift

      public short getRangeShift()
      Get the rangeShift()
    • toString

      public String toString()
      Get a pretty string
      Overrides:
      toString in class CMap