JavaTM 2 Platform
Standard Ed. 6

java.awt.font
接口 OpenType


public interface OpenType

OpenType 接口表示 OpenType 和 TrueType 字体。此接口能够从该字体获得 sfnt 表。特定的 Font 对象可以实现此接口。

有关 TrueType 字体的更多信息,请参阅 Apple TrueType Reference Manual ( http://fonts.apple.com/TTRefMan/index.html )。


字段摘要
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
          连字插入符。
static int TAG_LOCA
          位置索引。
static int TAG_LTSH
          线性阈值。
static int TAG_MAXP
          最大轮廓。
static int TAG_MMFX
          Multiple Master 字体规格。
static int TAG_MMSD
          Multiple master 增补数据。
static int TAG_MORT
          字形变化。
static int TAG_NAME
          命名表。
static int TAG_OPBD
          视觉边界。
static int TAG_OS2
          OS/2 和 Windows 特定规格。
static int TAG_PCLT
          PCL 5 数据。
static int TAG_POST
          PostScript 信息。
static int TAG_PREP
          CVT 预编程。
static int TAG_PROP
          字形属性。
static int TAG_TRAK
          跟踪。
static int TAG_TYP1
          Adobe Type 1 字体数据。
static int TAG_VDMX
          垂直设备规格。
static int TAG_VHEA
          垂直规格头部。
static int TAG_VMTX
          垂直规格。
 
方法摘要
 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 字体的版本。
 

字段详细信息

TAG_CMAP

static final int TAG_CMAP
字形映射的字符。Open Type Specification 中的表标签 "cmap"。

另请参见:
常量字段值

TAG_HEAD

static final int TAG_HEAD
字体头部。Open Type Specification 中的表标签 "head"。

另请参见:
常量字段值

TAG_NAME

static final int TAG_NAME
命名表。Open Type Specification 中的表标签 "name"。

另请参见:
常量字段值

TAG_GLYF

static final int TAG_GLYF
字形数据。Open Type Specification 中的表标签 "glyf"。

另请参见:
常量字段值

TAG_MAXP

static final int TAG_MAXP
最大轮廓。Open Type Specification 中的表标签 "maxp"。

另请参见:
常量字段值

TAG_PREP

static final int TAG_PREP
CVT 预编程。Open Type Specification 中的表标签 "prep"。

另请参见:
常量字段值

TAG_HMTX

static final int TAG_HMTX
水平规格。Open Type Specification 中的表标签 "hmtx"。

另请参见:
常量字段值

TAG_KERN

static final int TAG_KERN
字距调整。Open Type Specification 中的表标签 "kern"。

另请参见:
常量字段值

TAG_HDMX

static final int TAG_HDMX
水平设备规格。Open Type Specification 中的表标签 "hdmx"。

另请参见:
常量字段值

TAG_LOCA

static final int TAG_LOCA
位置索引。Open Type Specification 中的表标签 "loca"。

另请参见:
常量字段值

TAG_POST

static final int TAG_POST
PostScript 信息。Open Type Specification 中的表标签 "post"。

另请参见:
常量字段值

TAG_OS2

static final int TAG_OS2
OS/2 和 Windows 特定规格。Open Type Specification 中的表标签 "OS/2"。

另请参见:
常量字段值

TAG_CVT

static final int TAG_CVT
控制值表。Open Type Specification 中的表标签 "cvt "。

另请参见:
常量字段值

TAG_GASP

static final int TAG_GASP
网格适应和扫描转换过程。Open Type Specification 中的表标签 "gasp"。

另请参见:
常量字段值

TAG_VDMX

static final int TAG_VDMX
垂直设备规格。Open Type Specification 中的表标签 "VDMX"。

另请参见:
常量字段值

TAG_VMTX

static final int TAG_VMTX
垂直规格。Open Type Specification 中的表标签 "vmtx"。

另请参见:
常量字段值

TAG_VHEA

static final int TAG_VHEA
垂直规格头部。Open Type Specification 中的表标签 "vhea"。

另请参见:
常量字段值

TAG_HHEA

static final int TAG_HHEA
水平规格头部。Open Type Specification 中的表标签 "hhea"。

另请参见:
常量字段值

TAG_TYP1

static final int TAG_TYP1
Adobe Type 1 字体数据。Open Type Specification 中的表标签 "typ1"。

另请参见:
常量字段值

TAG_BSLN

static final int TAG_BSLN
基线表。Open Type Specification 中的表标签 "bsln"。

另请参见:
常量字段值

TAG_GSUB

static final int TAG_GSUB
字形替换。Open Type Specification 中的表标签 "GSUB"。

另请参见:
常量字段值

TAG_DSIG

static final int TAG_DSIG
数字签名。Open Type Specification 中的表标签 "DSIG"。

另请参见:
常量字段值

TAG_FPGM

static final int TAG_FPGM
字体程序。Open Type Specification 中的表标签 "fpgm"。

另请参见:
常量字段值

TAG_FVAR

static final int TAG_FVAR
字体变体。Open Type Specification 中的表标签 "fvar"。

另请参见:
常量字段值

TAG_GVAR

static final int TAG_GVAR
字形变体。Open Type Specification 中的表标签 "gvar"。

另请参见:
常量字段值

TAG_CFF

static final int TAG_CFF
紧凑字体格式(Type1 字体)。Open Type Specification 中的表标签 "CFF "。

另请参见:
常量字段值

TAG_MMSD

static final int TAG_MMSD
Multiple master 增补数据。Open Type Specification 中的表标签 "MMSD"。

另请参见:
常量字段值

TAG_MMFX

static final int TAG_MMFX
Multiple Master 字体规格。Open Type Specification 中的表标签 "MMFX"。

另请参见:
常量字段值

TAG_BASE

static final int TAG_BASE
基线数据。Open Type Specification 中的表标签 "BASE"。

另请参见:
常量字段值

TAG_GDEF

static final int TAG_GDEF
字形定义。Open Type Specification 中的表标签 "GDEF"。

另请参见:
常量字段值

TAG_GPOS

static final int TAG_GPOS
字形定位。Open Type Specification 中的表标签 "GPOS"。

另请参见:
常量字段值

TAG_JSTF

static final int TAG_JSTF
调整。Open Type Specification 中的表标签 "JSTF"。

另请参见:
常量字段值

TAG_EBDT

static final int TAG_EBDT
内嵌位图数据。Open Type Specification 中的表标签 "EBDT"。

另请参见:
常量字段值

TAG_EBLC

static final int TAG_EBLC
内嵌位图位置。Open Type Specification 中的表标签 "EBLC"。

另请参见:
常量字段值

TAG_EBSC

static final int TAG_EBSC
内嵌位图缩放。Open Type Specification 中的表标签 "EBSC"。

另请参见:
常量字段值

TAG_LTSH

static final int TAG_LTSH
线性阈值。Open Type Specification 中的表标签 "LTSH"。

另请参见:
常量字段值

TAG_PCLT

static final int TAG_PCLT
PCL 5 数据。Open Type Specification 中的表标签 "PCLT"。

另请参见:
常量字段值

TAG_ACNT

static final int TAG_ACNT
重音符附件。Open Type Specification 中的表标签 "acnt"。

另请参见:
常量字段值

TAG_AVAR

static final int TAG_AVAR
轴变体。Open Type Specification 中的表标签 "avar"。

另请参见:
常量字段值

TAG_BDAT

static final int TAG_BDAT
位图数据。Open Type Specification 中的表标签 "bdat"。

另请参见:
常量字段值

TAG_BLOC

static final int TAG_BLOC
位图位置。Open Type Specification 中的表标签 "bloc"。

另请参见:
常量字段值

TAG_CVAR

static final int TAG_CVAR
CVT 变体。Open Type Specification 中的表标签 "cvar"。

另请参见:
常量字段值

TAG_FEAT

static final int TAG_FEAT
特性名称。Open Type Specification 中的表标签 "feat"。

另请参见:
常量字段值

TAG_FDSC

static final int TAG_FDSC
字体描述符。Open Type Specification 中的表标签 "fdsc"。

另请参见:
常量字段值

TAG_FMTX

static final int TAG_FMTX
字体规格。Open Type Specification 中的表标签 "fmtx"。

另请参见:
常量字段值

TAG_JUST

static final int TAG_JUST
调整。Open Type Specification 中的表标签 "just"。

另请参见:
常量字段值

TAG_LCAR

static final int TAG_LCAR
连字插入符。Open Type Specification 中的表标签 "lcar"。

另请参见:
常量字段值

TAG_MORT

static final int TAG_MORT
字形变化。Open Type Specification 中的表标签 "mort"。

另请参见:
常量字段值

TAG_OPBD

static final int TAG_OPBD
视觉边界。Open Type Specification 中的表标签 "opbd"。

另请参见:
常量字段值

TAG_PROP

static final int TAG_PROP
字形属性。Open Type Specification 中的表标签 "prop"。

另请参见:
常量字段值

TAG_TRAK

static final int TAG_TRAK
跟踪。Open Type Specification 中的表标签 "trak"。

另请参见:
常量字段值
方法详细信息

getVersion

int getVersion()
返回 OpenType 字体的版本。1.0 表示为 0x00010000。

返回:
OpenType 字体的版本。

getFontTable

byte[] getFontTable(int sfntTag)
返回作为指定标签字节数组的表。sfnt 表的标签包括诸如 cmapnamehead 之类的项。返回的 byte 数组是内存中字体数据的一个副本。

参数:
sfntTag - 作为 32 位整数的四字符代码
返回:
作为表的 byte 数组,该表包含与指定标签对应的字体数据。

getFontTable

byte[] getFontTable(String strSfntTag)
返回作为指定标签字节数组的表。sfnt 表的标签包括诸如 cmapnamehead 之类的项。返回的字节数组是内存中字体数据的一个副本。

参数:
strSfntTag - 作为 String 的四字符代码
返回:
作为表的 byte 数组,该表包含与指定标签对应的字体数据。

getFontTable

byte[] getFontTable(int sfntTag,
                    int offset,
                    int count)
返回作为指定标签字节数组的表的子集。sfnt 表的标签包括诸如 cmapnamehead 之类的项。返回的字节数组是内存中字体数据的一个副本。

参数:
sfntTag - 作为 32 位整数的四字符代码
offset - 要从表返回的第一个字节的索引
count - 要从表返回的字节数
返回:
表的子集,它对应于 sfntTag,并且包含以下字节:从 offset 字节开始并包括 count 字节。

getFontTable

byte[] getFontTable(String strSfntTag,
                    int offset,
                    int count)
返回作为指定标签字节数组的表的子集。sfnt 表的标签包括诸如 cmapnamehead 之类的项。返回的 byte 数组是内存中字体数据的一个副本。

参数:
strSfntTag - 作为 String 的四字符代码
offset - 要从表返回的第一个字节的索引
count - 要从表返回的字节数
返回:
表的子集,它对应于 strSfntTag,并且包含以下字节:从 offset 字节开始并包括 count 字节。

getFontTableSize

int getFontTableSize(int sfntTag)
返回指定标签的表的大小。sfnt 表的标签包括诸如 cmapnamehead 之类的项。

参数:
sfntTag - 作为 32 位整数的四字符代码
返回:
与指定标签对应的表的大小。

getFontTableSize

int getFontTableSize(String strSfntTag)
返回指定标签的表的大小。sfnt 表的标签包括诸如 cmapnamehead 之类的项。

参数:
strSfntTag - 作为 String 的四字符代码
返回:
与指定标签对应的表的大小。

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only