public interface OpenType
OpenType
接口代表 OpenType 和 TrueType 字体。这个接口可以获取快车来自字体的表格。一个特定的 Font
对象可以实现这个接口。
有关 TrueType 和 OpenType 字体的详细信息,请参阅 OpenType 规范。 (http://www.microsoft.com/typography/otspec/)。
-
字段摘要
字段修饰符和类型Field描述static final int
重音附着.static final int
轴变化。static final int
基线数据。static final int
位图数据。static final int
位图位置。static final int
基线表。static final int
紧凑字体格式(Type1 字体)。static final int
字符到字形映射。static final int
CVT变体。static final int
控制值表。static final int
电子签名。static final int
嵌入式位图数据。static final int
嵌入式位图位置。static final int
嵌入式位图缩放。static final int
字体描述符。static final int
特征名称。static final int
字体指标。static final int
字体程序。static final int
字体变化。static final int
网格拟合和扫描转换程序。static final int
字形定义。static final int
字形数据。static final int
Glyph 定位。static final int
字形替换。static final int
字形变化。static final int
水平设备指标。static final int
字体标题。static final int
水平指标标题。static final int
水平指标。static final int
理由。static final int
理由。static final int
字距。static final int
连字插入符。static final int
位置索引。static final int
线性阈值。static final int
最大配置文件。static final int
多个主字体指标。static final int
多个主补充数据。static final int
字形变态。static final int
命名表。static final int
光学边界。static final int
OS/2 和 Windows 特定指标。static final int
PCL 5 数据。static final int
后记信息。static final int
CVT预编程。static final int
字形属性。static final int
追踪。static final int
Adobe Type 1 字体数据。static final int
垂直设备指标。static final int
垂直指标标题。static final int
垂直指标。 -
方法总结
修饰符和类型方法描述byte[]
getFontTable
(int sfntTag) 将表作为指定标记的字节数组返回。byte[]
getFontTable
(int sfntTag, int offset, int count) 返回表的一个子集作为指定标记的字节数组。byte[]
getFontTable
(String strSfntTag) 将表作为指定标记的字节数组返回。byte[]
getFontTable
(String strSfntTag, int offset, int count) 返回表的一个子集作为指定标记的字节数组。int
getFontTableSize
(int sfntTag) 返回指定标记的表的大小。int
getFontTableSize
(String strSfntTag) 返回指定标记的表的大小。int
返回OpenType
字体的版本。 1.0 表示为 0x00010000。
-
字段详细信息
-
TAG_CMAP
static final int TAG_CMAP字符到字形映射。开放类型规范中的表标记“cmap”。- 参见:
-
TAG_HEAD
static final int TAG_HEAD字体标题。开放类型规范中的表标记“head”。- 参见:
-
TAG_NAME
static final int TAG_NAME命名表。开放类型规范中的表标记“名称”。- 参见:
-
TAG_GLYF
static final int TAG_GLYF字形数据。开放类型规范中的表标记“glyf”。- 参见:
-
TAG_MAXP
static final int TAG_MAXP最大配置文件。开放类型规范中的表标记“maxp”。- 参见:
-
TAG_PREP
static final int TAG_PREPCVT预编程。开放类型规范中的表标记“prep”。- 参见:
-
TAG_HMTX
static final int TAG_HMTX水平指标。开放类型规范中的表标记“hmtx”。- 参见:
-
TAG_KERN
static final int TAG_KERN字距。开放类型规范中的表标记“kern”。- 参见:
-
TAG_HDMX
static final int TAG_HDMX水平设备指标。开放类型规范中的表标记“hdmx”。- 参见:
-
TAG_LOCA
static final int TAG_LOCA位置索引。开放类型规范中的表标记“loca”。- 参见:
-
TAG_POST
static final int TAG_POST后记信息。开放类型规范中的表标记“post”。- 参见:
-
TAG_OS2
static final int TAG_OS2OS/2 和 Windows 特定指标。开放类型规范中的表标记“OS/2”。- 参见:
-
TAG_CVT
static final int TAG_CVT控制值表。开放类型规范中的表标记“cvt”。- 参见:
-
TAG_GASP
static final int TAG_GASP网格拟合和扫描转换程序。开放类型规范中的表标记“gasp”。- 参见:
-
TAG_VDMX
static final int TAG_VDMX垂直设备指标。开放类型规范中的表标记“VDMX”。- 参见:
-
TAG_VMTX
static final int TAG_VMTX垂直指标。开放类型规范中的表标记“vmtx”。- 参见:
-
TAG_VHEA
static final int TAG_VHEA垂直指标标题。开放类型规范中的表标记“vhea”。- 参见:
-
TAG_HHEA
static final int TAG_HHEA水平指标标题。开放类型规范中的表标记“hhea”。- 参见:
-
TAG_TYP1
static final int TAG_TYP1Adobe Type 1 字体数据。开放类型规范中的表标记“typ1”。- 参见:
-
TAG_BSLN
static final int TAG_BSLN基线表。开放类型规范中的表标记“bsln”。- 参见:
-
TAG_GSUB
static final int TAG_GSUB字形替换。开放类型规范中的表标记“GSUB”。- 参见:
-
TAG_DSIG
static final int TAG_DSIG电子签名。开放类型规范中的表标记“DSIG”。- 参见:
-
TAG_FPGM
static final int TAG_FPGM字体程序。开放类型规范中的表标记“fpgm”。- 参见:
-
TAG_FVAR
static final int TAG_FVAR字体变化。开放类型规范中的表标记“fvar”。- 参见:
-
TAG_GVAR
static final int TAG_GVAR字形变化。开放类型规范中的表标记“gvar”。- 参见:
-
TAG_CFF
static final int TAG_CFF紧凑字体格式(Type1 字体)。开放类型规范中的表标记“CFF”。- 参见:
-
TAG_MMSD
static final int TAG_MMSD多个主补充数据。开放类型规范中的表标记“MMSD”。- 参见:
-
TAG_MMFX
static final int TAG_MMFX多个主字体指标。开放类型规范中的表标记“MMFX”。- 参见:
-
TAG_BASE
static final int TAG_BASE基线数据。开放类型规范中的表标记“BASE”。- 参见:
-
TAG_GDEF
static final int TAG_GDEF字形定义。开放类型规范中的表标记“GDEF”。- 参见:
-
TAG_GPOS
static final int TAG_GPOS字形定位。开放类型规范中的表标记“GPOS”。- 参见:
-
TAG_JSTF
static final int TAG_JSTF理由。开放类型规范中的表标记“JSTF”。- 参见:
-
TAG_EBDT
static final int TAG_EBDT嵌入式位图数据。开放类型规范中的表标记“EBDT”。- 参见:
-
TAG_EBLC
static final int TAG_EBLC嵌入式位图位置。开放类型规范中的表标记“EBLC”。- 参见:
-
TAG_EBSC
static final int TAG_EBSC嵌入式位图缩放。开放类型规范中的表标记“EBSC”。- 参见:
-
TAG_LTSH
static final int TAG_LTSH线性阈值。开放类型规范中的表标记“LTSH”。- 参见:
-
TAG_PCLT
static final int TAG_PCLTPCL 5 数据。开放类型规范中的表标记“PCLT”。- 参见:
-
TAG_ACNT
static final int TAG_ACNT口音附件。开放类型规范中的表标记“acnt”。- 参见:
-
TAG_AVAR
static final int TAG_AVAR轴变化。开放类型规范中的表标记“avar”。- 参见:
-
TAG_BDAT
static final int TAG_BDAT位图数据。开放类型规范中的表标记“bdat”。- 参见:
-
TAG_BLOC
static final int TAG_BLOC位图位置。开放类型规范中的表标记“bloc”。- 参见:
-
TAG_CVAR
static final int TAG_CVARCVT变体。开放类型规范中的表标记“cvar”。- 参见:
-
TAG_FEAT
static final int TAG_FEAT特征名称。开放类型规范中的表标记“feat”。- 参见:
-
TAG_FDSC
static final int TAG_FDSC字体描述符。开放类型规范中的表标记“fdsc”。- 参见:
-
TAG_FMTX
static final int TAG_FMTX字体指标。开放类型规范中的表标记“fmtx”。- 参见:
-
TAG_JUST
static final int TAG_JUST理由。开放类型规范中的表标记“just”。- 参见:
-
TAG_LCAR
static final int TAG_LCAR连字插入符。开放类型规范中的表标记“lcar”。- 参见:
-
TAG_MORT
static final int TAG_MORT字形变态。开放类型规范中的表标记“mort”。- 参见:
-
TAG_OPBD
static final int TAG_OPBD光学边界。开放类型规范中的表标记“opbd”。- 参见:
-
TAG_PROP
static final int TAG_PROP字形属性。开放类型规范中的表标记“prop”。- 参见:
-
TAG_TRAK
static final int TAG_TRAK追踪。开放类型规范中的表标记“trak”。- 参见:
-
-
方法详情
-
getVersion
int getVersion()返回OpenType
字体的版本。 1.0 表示为 0x00010000。- 返回:
OpenType
字体的版本。
-
getFontTable
byte[] getFontTable(int sfntTag) 将表作为指定标记的字节数组返回。 sfnt 表的标签包括诸如cmap, name和头.返回的byte
数组是内存中字体数据的副本。- 参数:
sfntTag
- 作为 32 位整数的四字符代码- 返回:
-
一个
byte
数组,它是包含与指定标签对应的字体数据的表。
-
getFontTable
将表作为指定标记的字节数组返回。 sfnt 表的标签包括诸如cmap, name和头.返回的字节数组是内存中字体数据的副本。- 参数:
strSfntTag
- 作为String
的四字符代码- 返回:
-
一个
byte
数组,它是包含与指定标签对应的字体数据的表。
-
getFontTable
byte[] getFontTable(int sfntTag, int offset, int count) 返回表的一个子集作为指定标记的字节数组。 sfnt 表的标签包括诸如cmap, name和头.返回的字节数组是内存中字体数据的副本。- 参数:
sfntTag
- 作为 32 位整数的四字符代码offset
- 从表中返回的第一个字节的索引count
- 从表中返回的字节数- 返回:
-
对应于
sfntTag
并包含从offset
字节开始并包括count
字节的字节的表的子集。
-
getFontTable
返回表的一个子集作为指定标记的字节数组。 sfnt 表的标签包括诸如cmap, name和头.返回的byte
数组是内存中字体数据的副本。- 参数:
strSfntTag
- 作为String
的四字符代码offset
- 从表中返回的第一个字节的索引count
- 从表中返回的字节数- 返回:
-
对应于
strSfntTag
并包含从offset
字节开始并包括count
字节的字节的表子集。
-
getFontTableSize
int getFontTableSize(int sfntTag) 返回指定标记的表的大小。 sfnt 表的标签包括诸如cmap, name和头.- 参数:
sfntTag
- 作为 32 位整数的四字符代码- 返回:
- 指定标签对应的表的大小。
-
getFontTableSize
返回指定标记的表的大小。 sfnt 表的标签包括诸如cmap, name和头.- 参数:
strSfntTag
- 作为String
的四字符代码- 返回:
- 指定标签对应的表的大小。
-