public interface OpenType
OpenType
接口表示OpenType字体和TrueType的字体。这个接口可以从字体获得nullsfnt表。一个特定的
Font
对象可以实现此接口。
更多关于TrueType和OpenType字体,看到OpenType规范。(http://www.microsoft.com/typography/otspec/)。
Modifier and Type | Field and Description |
---|---|
static int |
TAG_ACNT
口音的依恋。
|
static int |
TAG_AVAR
轴的变化。
|
static int |
TAG_BASE
基线数据。
|
static int |
TAG_BDAT
位图数据。
|
static int |
TAG_BLOC
位图的位置。
|
static int |
TAG_BSLN
基准表。
|
static int |
TAG_CFF
紧凑的字体格式(type1字体)。
|
static int |
TAG_CMAP
字形映射的字符。
|
static int |
TAG_CVAR
CVT的变化。
|
static int |
TAG_CVT
控制值表。
|
static int |
TAG_DSIG
数字签名。
|
static int |
TAG_EBDT
嵌入式位图数据。
|
static int |
TAG_EBLC
嵌入式位图位置。
|
static int |
TAG_EBSC
嵌入式位图缩放。
|
static int |
TAG_FDSC
字体描述。
|
static int |
TAG_FEAT
功能名称。
|
static int |
TAG_FMTX
字体度量。
|
static int |
TAG_FPGM
字体方案。
|
static int |
TAG_FVAR
字体的变化。
|
static int |
TAG_GASP
网格拟合和扫描转换程序。
|
static int |
TAG_GDEF
符号定义。
|
static int |
TAG_GLYF
字形数据。
|
static int |
TAG_GPOS
字形定位。
|
static int |
TAG_GSUB
符号替换。
|
static int |
TAG_GVAR
字形的变化。
|
static int |
TAG_HDMX
水平设备度量。
|
static int |
TAG_HEAD
字体的标题。
|
static int |
TAG_HHEA
水平度量头。
|
static int |
TAG_HMTX
水平指标。
|
static int |
TAG_JSTF
正当理由.
|
static int |
TAG_JUST
正当理由.
|
static int |
TAG_KERN
字距调整。
|
static int |
TAG_LCAR
Ligature caret。
|
static int |
TAG_LOCA
位置索引。
|
static int |
TAG_LTSH
线性阈值。
|
static int |
TAG_MAXP
最大轮廓。
|
static int |
TAG_MMFX
多主字体度量。
|
static int |
TAG_MMSD
多主补充资料。
|
static int |
TAG_MORT
字形的变态。
|
static int |
TAG_NAME
命名表。
|
static int |
TAG_OPBD
光学界。
|
static int |
TAG_OS2
操作系统/ 2和窗口的具体指标。
|
static int |
TAG_PCLT
PCL 5数据。
|
static int |
TAG_POST
PostScript信息。
|
static int |
TAG_PREP
无级变速器的程序。
|
static int |
TAG_PROP
铭文的性质。
|
static int |
TAG_TRAK
跟踪。
|
static int |
TAG_TYP1
1型字体数据。
|
static int |
TAG_VDMX
垂直设备度量。
|
static int |
TAG_VHEA
垂直度量头。
|
static int |
TAG_VMTX
垂直度量。
|
Modifier and Type | Method and Description |
---|---|
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 |
getVersion()
返回的
OpenType 字体版本。
|
static final int TAG_CMAP
static final int TAG_HEAD
static final int TAG_NAME
static final int TAG_GLYF
static final int TAG_MAXP
static final int TAG_PREP
static final int TAG_HMTX
static final int TAG_KERN
static final int TAG_HDMX
static final int TAG_LOCA
static final int TAG_POST
static final int TAG_OS2
static final int TAG_CVT
static final int TAG_GASP
static final int TAG_VDMX
static final int TAG_VMTX
static final int TAG_VHEA
static final int TAG_HHEA
static final int TAG_TYP1
static final int TAG_BSLN
static final int TAG_GSUB
static final int TAG_DSIG
static final int TAG_FPGM
static final int TAG_FVAR
static final int TAG_GVAR
static final int TAG_CFF
static final int TAG_MMSD
static final int TAG_MMFX
static final int TAG_BASE
static final int TAG_GDEF
static final int TAG_GPOS
static final int TAG_JSTF
static final int TAG_EBDT
static final int TAG_EBLC
static final int TAG_EBSC
static final int TAG_LTSH
static final int TAG_PCLT
static final int TAG_ACNT
static final int TAG_AVAR
static final int TAG_BDAT
static final int TAG_BLOC
static final int TAG_CVAR
static final int TAG_FEAT
static final int TAG_FDSC
static final int TAG_FMTX
static final int TAG_JUST
static final int TAG_LCAR
static final int TAG_MORT
static final int TAG_OPBD
static final int TAG_PROP
static final int TAG_TRAK
int getVersion()
OpenType
字体版本。1是0x00010000。
OpenType
字体的版本。
byte[] getFontTable(int sfntTag)
byte
阵列是一份记忆中的字体数据。
sfntTag
-一四字符代码作为一个32位整数
byte
阵列,包含字体数据对应于指定的标记表。
byte[] getFontTable(String strSfntTag)
strSfntTag
-一四字符代码为
String
byte
阵列,包含字体数据对应于指定的标记表。
byte[] getFontTable(int sfntTag, int offset, int count)
sfntTag
-一四字符代码作为一个32位整数
offset
指数
count
-字节数返回表
sfntTag
包含字节字节开始
offset
包括
count
字节表的一个子集。
byte[] getFontTable(String strSfntTag, int offset, int count)
byte
阵列是一份记忆中的字体数据。
strSfntTag
-一四字符代码为
String
offset
指数的第一个字节返回表
count
-字节数返回表
strSfntTag
包含字节字节开始
offset
包括
count
字节表的一个子集。
int getFontTableSize(int sfntTag)
sfntTag
-一四字符代码作为一个32位整数
int getFontTableSize(String strSfntTag)
strSfntTag
-一四字符代码为
String
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.