类 BitmapSizeTable.Builder

封闭类:
BitmapSizeTable

public static final class BitmapSizeTable.Builder extends SubTable.Builder<BitmapSizeTable>
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • createBuilder

      static BitmapSizeTable.Builder createBuilder(WritableFontData data, ReadableFontData masterData)
    • createBuilder

      static BitmapSizeTable.Builder createBuilder(ReadableFontData data, ReadableFontData masterData)
    • indexSubTableArrayOffset

      public int indexSubTableArrayOffset()
      Gets the subtable array offset as set in the original table as read from the font file. This value cannot be explicitly set and will be generated during table building.
      返回:
      the subtable array offset
    • setIndexSubTableArrayOffset

      void setIndexSubTableArrayOffset(int offset)
      Sets the subtable array offset. This is used only during the building process when the objects are being serialized.
      参数:
      offset - the offset to the index subtable array
    • indexTableSize

      public int indexTableSize()
      Gets the subtable array size as set in the original table as read from the font file. This value cannot be explicitly set and will be generated during table building.
      返回:
      the subtable array size
    • setIndexTableSize

      void setIndexTableSize(int size)
      Sets the subtable size. This is used only during the building process when the objects are being serialized.
      参数:
      size - the offset to the index subtable array
    • numberOfIndexSubTables

      public int numberOfIndexSubTables()
    • setNumberOfIndexSubTables

      private void setNumberOfIndexSubTables(int numberOfIndexSubTables)
    • colorRef

      public int colorRef()
    • hori

      public void hori()
    • vert

      public void vert()
    • startGlyphIndex

      public int startGlyphIndex()
    • endGlyphIndex

      public int endGlyphIndex()
    • ppemX

      public int ppemX()
    • ppemY

      public int ppemY()
    • bitDepth

      public int bitDepth()
    • flagsAsInt

      public int flagsAsInt()
    • indexSubTableBuilder

      public IndexSubTable.Builder<? extends IndexSubTable> indexSubTableBuilder(int index)
    • glyphInfo

      public BitmapGlyphInfo glyphInfo(int glyphId)
    • glyphOffset

      public int glyphOffset(int glyphId)
    • glyphLength

      public int glyphLength(int glyphId)
    • glyphFormat

      public int glyphFormat(int glyphId)
    • indexSubTableBuilders

      public List<IndexSubTable.Builder<? extends IndexSubTable>> indexSubTableBuilders()
    • iterator

    • revert

      protected void revert()
    • generateLocaMap

      public Map<Integer,BitmapGlyphInfo> generateLocaMap()
    • searchIndexSubTables

      private IndexSubTable.Builder<? extends IndexSubTable> searchIndexSubTables(int glyphId)
    • linearSearchIndexSubTables

      private IndexSubTable.Builder<? extends IndexSubTable> linearSearchIndexSubTables(int glyphId)
    • binarySearchIndexSubTables

      private IndexSubTable.Builder<? extends IndexSubTable> binarySearchIndexSubTables(int glyphId)
    • getIndexSubTableBuilders

      private List<IndexSubTable.Builder<? extends IndexSubTable>> getIndexSubTableBuilders()
    • initialize

      private void initialize(ReadableFontData data)
    • createIndexSubTableBuilder

      private IndexSubTable.Builder<? extends IndexSubTable> createIndexSubTableBuilder(int index)
    • subBuildTable

      protected BitmapSizeTable subBuildTable(ReadableFontData data)
      从类复制的说明: FontDataTable.Builder
      Build a table with the data provided.
      指定者:
      subBuildTable 在类中 FontDataTable.Builder<BitmapSizeTable>
      参数:
      data - the data to use to build the table
      返回:
      a table
    • subDataSet

      protected void subDataSet()
      从类复制的说明: FontDataTable.Builder
      Tell the subclass that the data has been changed and any structures must be discarded.
      指定者:
      subDataSet 在类中 FontDataTable.Builder<BitmapSizeTable>
    • subDataSizeToSerialize

      protected int subDataSizeToSerialize()
      从类复制的说明: FontDataTable.Builder
      Query if the subclass needs to serialize and how much data is required.
      指定者:
      subDataSizeToSerialize 在类中 FontDataTable.Builder<BitmapSizeTable>
      返回:
      positive bytes needed to serialize if a fixed size; and zero or negative bytes as an estimate if growable data is needed
    • subReadyToSerialize

      protected boolean subReadyToSerialize()
      指定者:
      subReadyToSerialize 在类中 FontDataTable.Builder<BitmapSizeTable>
      返回:
      true if the subclass is ready to serialize it's structure into data
    • subSerialize

      protected int subSerialize(WritableFontData newData)
      从类复制的说明: FontDataTable.Builder
      Serialize the table to the data provided.
      指定者:
      subSerialize 在类中 FontDataTable.Builder<BitmapSizeTable>
      参数:
      newData - the data object to serialize to
      返回:
      the number of bytes written