Class Encoding


  • public final class Encoding
    extends java.lang.Object
    Represents an encoding.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      com.adobe.fontengine.font.cff.CFFByteArray data
      The container for our bytes, if the encoding is not predefined.
      int offset
      The offset of our bytes in data if the encoding is not predefined.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int charCode2gid​(int charCode, com.adobe.fontengine.font.cff.Charset charset)
      Return the gid for a character code.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • data

        public final com.adobe.fontengine.font.cff.CFFByteArray data
        The container for our bytes, if the encoding is not predefined. If the encoding is predefined, than data is null.
      • offset

        public final int offset
        The offset of our bytes in data if the encoding is not predefined. If the encoding is predefined, than data is null and offset is 0 or 1. Note that the value 0 is ambiguous, as it can be either the isoAdobe predefined charset (if data is null) or an offset in data (if data is not null).