类 MtxFontBuilder
java.lang.Object
com.google.typography.font.tools.conversion.eot.MtxFontBuilder
- 作者:
- Raph Levien
-
字段概要
字段修饰符和类型字段说明private static final int
private static final int
private MtxHeadBuilder
private static final int
private static final int
private Map<Integer,
ReadableFontData> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
addTable
(int tag, ReadableFontData data) Add a table to the font being built.void
addTableBytes
(int tag, byte[] data) Add a table to the font being built.byte[]
build()
Build the font, packing all tables into an OpenType (SFNT) structure.(专用程序包) static int
log2
(int x) private static void
putUlong
(byte[] buf, int offset, int val) private static void
putUshort
(byte[] buf, int offset, int val) (专用程序包) static int
searchRange
(int x)
-
字段详细资料
-
OPENTYPE_VERSION_1_0
private static final int OPENTYPE_VERSION_1_0- 另请参阅:
-
FONT_HEADER_BASE_SIZE
private static final int FONT_HEADER_BASE_SIZE- 另请参阅:
-
FONT_HEADER_PER_TABLE_SIZE
private static final int FONT_HEADER_PER_TABLE_SIZE- 另请参阅:
-
TABLE_ALIGN
private static final int TABLE_ALIGN- 另请参阅:
-
tables
-
headBuilder
-
-
构造器详细资料
-
MtxFontBuilder
public MtxFontBuilder()
-
-
方法详细资料
-
getHeadBuilder
-
addTable
Add a table to the font being built.- 参数:
tag
- 4-byte tag of the table, same format as sfntly.Tagdata
- 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.Tagdata
- 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)
-