-
public interface OpenTypeOpenType接口代表OpenType和TrueType字体。 该界面使得可以从字体获取sfnt表。 一个特定的Font对象可以实现这个接口。有关TrueType和OpenType字体的更多信息,请参阅OpenType规范。 ( http://www.microsoft.com/typography/otspec/ )。
-
-
Field Summary
Fields Modifier and Type Field 描述 static intTAG_ACNT重音附件。static intTAG_AVAR轴变化。static intTAG_BASE基准数据static intTAG_BDAT位图数据。static intTAG_BLOC位图位置。static intTAG_BSLN基线表。static intTAG_CFF紧凑字体格式(Type1字体)。static intTAG_CMAP字符到字形映射。static intTAG_CVARCVT变化。static intTAG_CVT控制值表。static intTAG_DSIG电子签名。static intTAG_EBDT嵌入式位图数据。static intTAG_EBLC嵌入式位图位置。static intTAG_EBSC嵌入式位图缩放。static intTAG_FDSC字体描述符。static intTAG_FEAT功能名称static intTAG_FMTX字体指标。static intTAG_FPGM字体程序。static intTAG_FVAR字体变体。static intTAG_GASP网格拟合和扫描转换程序。static intTAG_GDEF字形定义。static intTAG_GLYF字形数据。static intTAG_GPOS字形定位static intTAG_GSUB雕文取代static intTAG_GVAR字形变异。static intTAG_HDMX水平设备指标。static intTAG_HEAD字体标题static intTAG_HHEA水平度量标题。static intTAG_HMTX水平指标。static intTAG_JSTF理由。static intTAG_JUST理由。static intTAG_KERN字距。static intTAG_LCAR特征插入符号。static intTAG_LOCA位置索引static intTAG_LTSH线性阈值。static intTAG_MAXP最大配置文件static intTAG_MMFX多个主字体指标。static intTAG_MMSD多个主要补充数据。static intTAG_MORT雕文变态static intTAG_NAME命名表。static intTAG_OPBD光学界限。static intTAG_OS2OS / 2和Windows特定指标。static intTAG_PCLTPCL 5数据。static intTAG_POSTPostScript信息。static intTAG_PREPCVT预制程序。static intTAG_PROP雕文属性。static intTAG_TRAK跟踪。static intTAG_TYP1Adobe Type 1字体数据。static intTAG_VDMX垂直设备指标。static intTAG_VHEA垂直度量标题。static intTAG_VMTX垂直指标。
-
方法摘要
所有方法 接口方法 抽象方法 Modifier and Type 方法 描述 byte[]getFontTable(int sfntTag)将表作为指定标记的字节数组返回。byte[]getFontTable(int sfntTag, int offset, int count)将表的子集作为指定标记的字节数组返回。byte[]getFontTable(String strSfntTag)将表作为指定标记的字节数组返回。byte[]getFontTable(String strSfntTag, int offset, int count)将表的子集作为指定标记的字节数组返回。intgetFontTableSize(int sfntTag)返回指定标记的表的大小。intgetFontTableSize(String strSfntTag)返回指定标记的表的大小。intgetVersion()返回OpenType字体的版本。 1.0表示为0x00010000。
-
-
-
字段详细信息
-
TAG_CMAP
static final int TAG_CMAP
字符到字形映射。 打开类型规范中的表标记“cmap”。- 另请参见:
- Constant Field Values
-
TAG_HEAD
static final int TAG_HEAD
字体标题 打开类型规范中的表标记“头”。- 另请参见:
- Constant Field Values
-
TAG_NAME
static final int TAG_NAME
命名表。 打开类型规范中的表标记“名称”。- 另请参见:
- Constant Field Values
-
TAG_GLYF
static final int TAG_GLYF
字形数据。 打开类型规范中的表标记“glyf”。- 另请参见:
- Constant Field Values
-
TAG_MAXP
static final int TAG_MAXP
最大配置文件 打开类型规范中的表标记“maxp”。- 另请参见:
- Constant Field Values
-
TAG_PREP
static final int TAG_PREP
CVT预制程序。 表格标签“准备”在开放类型规范。- 另请参见:
- Constant Field Values
-
TAG_HMTX
static final int TAG_HMTX
水平指标。 打开类型规范中的表标记“hmtx”。- 另请参见:
- Constant Field Values
-
TAG_KERN
static final int TAG_KERN
字距。 打开类型规范中的表标记“kern”。- 另请参见:
- Constant Field Values
-
TAG_HDMX
static final int TAG_HDMX
水平设备指标。 打开类型规范中的表标记“hdmx”。- 另请参见:
- Constant Field Values
-
TAG_LOCA
static final int TAG_LOCA
位置索引 打开类型规范中的表标记“loca”。- 另请参见:
- Constant Field Values
-
TAG_POST
static final int TAG_POST
PostScript信息。 打开类型规范中的表标签“post”。- 另请参见:
- Constant Field Values
-
TAG_OS2
static final int TAG_OS2
OS / 2和Windows特定指标。 打开类型规范中的表标记“OS / 2”。- 另请参见:
- Constant Field Values
-
TAG_CVT
static final int TAG_CVT
控制值表。 打开类型规范中的表标记“cvt”。- 另请参见:
- Constant Field Values
-
TAG_GASP
static final int TAG_GASP
网格拟合和扫描转换程序。 打开类型规范中的表标签“gasp”。- 另请参见:
- Constant Field Values
-
TAG_VDMX
static final int TAG_VDMX
垂直设备指标。 打开类型规范中的表标记“VDMX”。- 另请参见:
- Constant Field Values
-
TAG_VMTX
static final int TAG_VMTX
垂直指标。 打开类型规范中的表标记“vmtx”。- 另请参见:
- Constant Field Values
-
TAG_VHEA
static final int TAG_VHEA
垂直度量标题。 打开类型规范中的表标签“vhea”。- 另请参见:
- Constant Field Values
-
TAG_HHEA
static final int TAG_HHEA
水平度量标题。 打开类型规范中的表标记“hhea”。- 另请参见:
- Constant Field Values
-
TAG_TYP1
static final int TAG_TYP1
Adobe Type 1字体数据。 打开类型规范中的表标记“typ1”。- 另请参见:
- Constant Field Values
-
TAG_BSLN
static final int TAG_BSLN
基线表。 打开类型规范中的表标记“bsln”。- 另请参见:
- Constant Field Values
-
TAG_GSUB
static final int TAG_GSUB
雕文取代 开放类型规范中的表格标签“GSUB”。- 另请参见:
- Constant Field Values
-
TAG_DSIG
static final int TAG_DSIG
电子签名。 打开类型规范中的表标签“DSIG”。- 另请参见:
- Constant Field Values
-
TAG_FPGM
static final int TAG_FPGM
字体程序。 打开类型规范中的表标记“fpgm”。- 另请参见:
- Constant Field Values
-
TAG_FVAR
static final int TAG_FVAR
字体变体。 打开类型规范中的表标记“fvar”。- 另请参见:
- Constant Field Values
-
TAG_GVAR
static final int TAG_GVAR
字形变异。 打开类型规范中的表格标签“gvar”。- 另请参见:
- Constant Field Values
-
TAG_CFF
static final int TAG_CFF
紧凑字体格式(Type1字体)。 打开类型规范中的表标记“CFF”。- 另请参见:
- Constant Field Values
-
TAG_MMSD
static final int TAG_MMSD
多个主要补充数据。 打开类型规范中的表标签“MMSD”。- 另请参见:
- Constant Field Values
-
TAG_MMFX
static final int TAG_MMFX
多个主字体指标。 打开类型规范中的表格标签“MMFX”。- 另请参见:
- Constant Field Values
-
TAG_BASE
static final int TAG_BASE
基准数据 打开类型规范中的表标签“BASE”。- 另请参见:
- Constant Field Values
-
TAG_GDEF
static final int TAG_GDEF
字形定义。 打开类型规范中的表格“GDEF”。- 另请参见:
- Constant Field Values
-
TAG_GPOS
static final int TAG_GPOS
字形定位 打开类型规范中的表标记“GPOS”。- 另请参见:
- Constant Field Values
-
TAG_JSTF
static final int TAG_JSTF
理由。 打开类型规范中的表标记“JSTF”。- 另请参见:
- Constant Field Values
-
TAG_EBDT
static final int TAG_EBDT
嵌入式位图数据。 打开类型规范中的表标签“EBDT”。- 另请参见:
- Constant Field Values
-
TAG_EBLC
static final int TAG_EBLC
嵌入式位图位置。 表格标签“EBLC”在开放类型规范。- 另请参见:
- Constant Field Values
-
TAG_EBSC
static final int TAG_EBSC
嵌入式位图缩放。 打开类型规范中的表标记“EBSC”。- 另请参见:
- Constant Field Values
-
TAG_LTSH
static final int TAG_LTSH
线性阈值。 打开类型规范中的表标签“LTSH”。- 另请参见:
- Constant Field Values
-
TAG_PCLT
static final int TAG_PCLT
PCL 5数据。 表格标签“PCLT”在开放类型规范。- 另请参见:
- Constant Field Values
-
TAG_ACNT
static final int TAG_ACNT
重音附件。 打开类型规范中的表标记“acnt”。- 另请参见:
- Constant Field Values
-
TAG_AVAR
static final int TAG_AVAR
轴变化。 Open标准中的表格标签“avar”。- 另请参见:
- Constant Field Values
-
TAG_BDAT
static final int TAG_BDAT
位图数据。 打开类型规范中的表标记“bdat”。- 另请参见:
- Constant Field Values
-
TAG_BLOC
static final int TAG_BLOC
位图位置。 打开类型规范中的表标记“bloc”。- 另请参见:
- Constant Field Values
-
TAG_CVAR
static final int TAG_CVAR
CVT变化。 开放类型规范中的表格标签“cvar”。- 另请参见:
- Constant Field Values
-
TAG_FEAT
static final int TAG_FEAT
功能名称 打开类型规范中的表标记“feat”。- 另请参见:
- Constant Field Values
-
TAG_FDSC
static final int TAG_FDSC
字体描述符。 打开类型规范中的表标记“fdsc”。- 另请参见:
- Constant Field Values
-
TAG_FMTX
static final int TAG_FMTX
字体指标。 打开类型规范中的表标记“fmtx”。- 另请参见:
- Constant Field Values
-
TAG_JUST
static final int TAG_JUST
理由。 打开类型规范中的表格标签“just”。- 另请参见:
- Constant Field Values
-
TAG_LCAR
static final int TAG_LCAR
特征插入符号。 打开类型规范中的表标记“lcar”。- 另请参见:
- Constant Field Values
-
TAG_MORT
static final int TAG_MORT
雕文变态 打开类型规范中的表格标签“mort”。- 另请参见:
- Constant Field Values
-
TAG_OPBD
static final int TAG_OPBD
光学界限。 打开类型规范中的表标记“opbd”。- 另请参见:
- Constant Field Values
-
TAG_PROP
static final int TAG_PROP
雕文属性。 打开类型规范中的表格标签“prop”。- 另请参见:
- Constant Field Values
-
TAG_TRAK
static final int TAG_TRAK
跟踪。 打开类型规范中的表标签“trak”。- 另请参见:
- Constant Field Values
-
-
方法详细信息
-
getVersion
int getVersion()
返回OpenType字体的版本。 1.0表示为0x00010000。- 结果
-
该版本的
OpenType字体。
-
getFontTable
byte[] getFontTable(int sfntTag)
将表作为指定标记的字节数组返回。 sfnt表的标签包括cmap , name和head等项。 返回的byte数组是内存中字体数据的副本。- 参数
-
sfntTag- 作为32位整数的四字符代码 - 结果
-
一个
byte数组,它是包含与指定标签对应的字体数据的表。
-
getFontTable
byte[] getFontTable(String strSfntTag)
将表作为指定标记的字节数组返回。 sfnt表的标签包括cmap , name和head等项。 返回的字节数组是内存中字体数据的副本。- 参数
-
strSfntTag- 一个四字符代码作为String - 结果
-
一个
byte数组,它是包含与指定标签对应的字体数据的表。
-
getFontTable
byte[] getFontTable(int sfntTag, int offset, int count)将表的子集作为指定标记的字节数组返回。 sfnt表的标签包括cmap , name和head等项。 返回的字节数组是内存中字体数据的副本。- 参数
-
sfntTag- 一个四位字符的代码,作为32位整数 -
offset- 从表返回的第一个字节的索引 -
count- 从表返回的字节数 - 结果
-
该表的子集对应于
sfntTag并包含从offset字节开始并包括count个字节的字节。
-
getFontTable
byte[] getFontTable(String strSfntTag, int offset, int count)
将表的子集作为指定标记的字节数组返回。 sfnt表的标签包括cmap , name和head等项。 返回的byte数组是内存中字体数据的副本。- 参数
-
strSfntTag- 一个四字符代码作为String -
offset- 从表返回的第一个字节的索引 -
count- 从表返回的字节数 - 结果
-
该表的子集对应于
strSfntTag并包含从offset字节开始并包括count个字节的字节。
-
getFontTableSize
int getFontTableSize(int sfntTag)
返回指定标记的表的大小。 sfnt表的标签包括cmap , name和head等项。- 参数
-
sfntTag- 一个四位字符的代码,作为32位整数 - 结果
- 表的大小对应于指定的标签。
-
getFontTableSize
int getFontTableSize(String strSfntTag)
返回指定标记的表的大小。 sfnt表的标签包括cmap , name和head等项。- 参数
-
strSfntTag- 一个四字符代码作为String - 结果
- 表的大小对应于指定的标签。
-
-