类 SubTable

java.lang.Object
com.google.typography.font.sfntly.table.FontDataTable
com.google.typography.font.sfntly.table.SubTable
直接已知子类:
BitmapGlyph, BitmapSizeTable, ChainSubGenericRule, CMap, DoubleRecordTable, EbscTable.BitmapScaleTable, Glyph, GlyphMetrics, HeaderTable, IndexSubTable, InnerArraysFmt3, LayoutCommonTable, LookupList, OTSubTable, VisibleSubTable

public abstract class SubTable extends FontDataTable
An abstract base class for subtables. Subtables are smaller tables nested within other tables and don't have an entry in the main font index. Examples of these are the CMap subtables within CMap table (cmap) or a glyph within the glyph table (glyf).
作者:
Stuart Gill
  • 字段详细资料

    • masterData

      private final ReadableFontData masterData
      The data for the whole table in which this subtable is contained.
    • padding

      private int padding
  • 构造器详细资料

    • SubTable

      protected SubTable(ReadableFontData data, ReadableFontData masterData)
      Constructor.
      参数:
      data - the data representing the subtable
      masterData - the data representing the full table containing this subtable
    • SubTable

      protected SubTable(ReadableFontData data)
      Constructor.
      参数:
      data - the data representing the subtable
    • SubTable

      protected SubTable(ReadableFontData data, int offset, int length)
      Constructor.
      参数:
      data - the data object that contains the subtable
      offset - the offset within the data where the subtable starts
      length - the length of the subtable data within the data object
  • 方法详细资料

    • masterReadData

      protected ReadableFontData masterReadData()
    • padding

      public int padding()
      Get the number of bytes of padding used in the table. The padding bytes are used to align the table length to a 4 byte boundary.
      返回:
      the number of padding bytes
    • setPadding

      protected void setPadding(int padding)
      Sets the amount of padding that is part of the data being used by this subtable.
      参数:
      padding -