类 BitmapGlyphInfo

java.lang.Object
com.google.typography.font.sfntly.table.bitmap.BitmapGlyphInfo

public final class BitmapGlyphInfo extends Object
An immutable class holding bitmap glyph information.
作者:
Stuart Gill
  • 字段详细资料

    • glyphId

      private final int glyphId
    • relative

      private final boolean relative
    • blockOffset

      private final int blockOffset
    • startOffset

      private final int startOffset
    • length

      private final int length
    • format

      private final int format
    • StartOffsetComparator

      public static final Comparator<BitmapGlyphInfo> StartOffsetComparator
  • 构造器详细资料

    • BitmapGlyphInfo

      public BitmapGlyphInfo(int glyphId, int blockOffset, int startOffset, int length, int format)
      Constructor for a relative located glyph. The glyph's position in the EBDT table is a combination of it's block offset and it's own start offset.
      参数:
      glyphId - the glyph id
      blockOffset - the offset of the block to which the glyph belongs
      startOffset - the offset of the glyph within the block
      length - the byte length
      format - the glyph image format
    • BitmapGlyphInfo

      public BitmapGlyphInfo(int glyphId, int startOffset, int length, int format)
      Constructor for an absolute located glyph. The glyph's position in the EBDT table is only given by it's own start offset.
      参数:
      glyphId - the glyph id
      startOffset - the offset of the glyph within the block
      length - the byte length
      format - the glyph image format
  • 方法详细资料

    • glyphId

      public int glyphId()
    • relative

      public boolean relative()
    • blockOffset

      public int blockOffset()
    • offset

      public int offset()
    • startOffset

      public int startOffset()
    • length

      public int length()
    • format

      public int format()
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • equals

      public boolean equals(Object obj)
      覆盖:
      equals 在类中 Object