类 MtxFontBuilder

java.lang.Object
com.google.typography.font.tools.conversion.eot.MtxFontBuilder

public class MtxFontBuilder extends Object
作者:
Raph Levien
  • 字段详细资料

  • 构造器详细资料

    • MtxFontBuilder

      public MtxFontBuilder()
  • 方法详细资料

    • getHeadBuilder

      public MtxHeadBuilder getHeadBuilder()
    • addTable

      public void addTable(int tag, ReadableFontData data)
      Add a table to the font being built.
      参数:
      tag - 4-byte tag of the table, same format as sfntly.Tag
      data - ReadableFontData for table contents
    • addTableBytes

      public void addTableBytes(int tag, byte[] data)
      Add a table to the font being built.
      参数:
      tag - 4-byte tag of the table, same format as sfntly.Tag
      data - byte[] data for table contents
    • putUshort

      private static void putUshort(byte[] buf, int offset, int val)
    • putUlong

      private static void putUlong(byte[] buf, int offset, int val)
    • build

      public byte[] build()
      Build the font, packing all tables into an OpenType (SFNT) structure.
      返回:
      the binary font data
    • searchRange

      static int searchRange(int x)
    • log2

      static int log2(int x)