OpenType interface represents OpenType and
TrueType fonts. This interface makes it possible to obtain
sfnt tables from the font. A particular
Font object can implement this interface.
For more information on TrueType and OpenType fonts, see the OpenType specification. ( http://www.microsoft.com/typography/otspec/ ).
| Modifier and Type | Field and Description |
|---|---|
| public static final int | TAG_ACNT
Accent attachment. |
| public static final int | TAG_AVAR
Axis variation. |
| public static final int | TAG_BASE
Baseline data. |
| public static final int | TAG_BDAT
Bitmap data. |
| public static final int | TAG_BLOC
Bitmap location. |
| public static final int | TAG_BSLN
Baseline table. |
| public static final int | TAG_CFF
Compact font format (Type1 font). |
| public static final int | TAG_CMAP
Character to glyph mapping. |
| public static final int | TAG_CVAR
CVT variation. |
| public static final int | TAG_CVT
Control value table. |
| public static final int | TAG_DSIG
Digital signature. |
| public static final int | TAG_EBDT
Embedded bitmap data. |
| public static final int | TAG_EBLC
Embedded bitmap location. |
| public static final int | TAG_EBSC
Embedded bitmap scaling. |
| public static final int | TAG_FDSC
Font descriptors. |
| public static final int | TAG_FEAT
Feature name. |
| public static final int | TAG_FMTX
Font metrics. |
| public static final int | TAG_FPGM
Font program. |
| public static final int | TAG_FVAR
Font variation. |
| public static final int | TAG_GASP
Grid-fitting and scan conversion procedure. |
| public static final int | TAG_GDEF
Glyph definition. |
| public static final int | TAG_GLYF
Glyph data. |
| public static final int | TAG_GPOS
Glyph positioning. |
| public static final int | TAG_GSUB
Glyph substitution. |
| public static final int | TAG_GVAR
Glyph variation. |
| public static final int | TAG_HDMX
Horizontal device metrics. |
| public static final int | TAG_HEAD
Font header. |
| public static final int | TAG_HHEA
Horizontal metrics header. |
| public static final int | TAG_HMTX
Horizontal metrics. |
| public static final int | TAG_JSTF
Justification. |
| public static final int | TAG_JUST
Justification. |
| public static final int | TAG_KERN
Kerning. |
| public static final int | TAG_LCAR
Ligature caret. |
| public static final int | TAG_LOCA
Index to location. |
| public static final int | TAG_LTSH
Linear threshold. |
| public static final int | TAG_MAXP
Maximum profile. |
| public static final int | TAG_MMFX
Multiple master font metrics. |
| public static final int | TAG_MMSD
Multiple master supplementary data. |
| public static final int | TAG_MORT
Glyph metamorphosis. |
| public static final int | TAG_NAME
Naming table. |
| public static final int | TAG_OPBD
Optical bounds. |
| public static final int | TAG_OS2
OS/2 and Windows specific metrics. |
| public static final int | TAG_PCLT
PCL 5 data. |
| public static final int | TAG_POST
PostScript Information. |
| public static final int | TAG_PREP
CVT preprogram. |
| public static final int | TAG_PROP
Glyph properties. |
| public static final int | TAG_TRAK
Tracking. |
| public static final int | TAG_TYP1
Adobe Type 1 font data. |
| public static final int | TAG_VDMX
Vertical device metrics. |
| public static final int | TAG_VHEA
Vertical metrics header. |
| public static final int | TAG_VMTX
Vertical metrics. |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | Returns: abyte array that is the table that
contains the font data corresponding to the specified
tag.a four-character code as a 32-bit integer sfntTag)Returns the table as an array of bytes for a specified tag. |
| public byte[] | Returns: abyte array that is the table that
contains the font data corresponding to the specified
tag.a four-character code as a
strSfntTag)StringReturns the table as an array of bytes for a specified tag. |
| public byte[] | Returns: a subset of the table corresponding tosfntTag and containing the bytes
starting at offset byte and including
count bytes.a four-character code as a 32-bit integer sfntTag, int index of first byte to return from table offset, int number of bytes to return from table count)Returns a subset of the table as an array of bytes for a specified tag. |
| public byte[] | Returns: a subset of the table corresponding tostrSfntTag and containing the bytes
starting at offset byte and including
count bytes.a four-character code as a
strSfntTag, int Stringindex of first byte to return from table offset, int number of bytes to return from table count)Returns a subset of the table as an array of bytes for a specified tag. |
| public int | Returns: the size of the table corresponding to the specified tag.a four-character code as a 32-bit integer sfntTag)Returns the size of the table for a specified tag. |
| public int | Returns: the size of the table corresponding to the specified tag.a four-character code as a
strSfntTag)StringReturns the size of the table for a specified tag. |
| public int |
| TAG_ACNT | back to summary |
|---|---|
| public static final int TAG_ACNT Accent attachment. Table tag "acnt" in the Open Type Specification. | |
| TAG_AVAR | back to summary |
|---|---|
| public static final int TAG_AVAR Axis variation. Table tag "avar" in the Open Type Specification. | |
| TAG_BASE | back to summary |
|---|---|
| public static final int TAG_BASE Baseline data. Table tag "BASE" in the Open Type Specification. | |
| TAG_BDAT | back to summary |
|---|---|
| public static final int TAG_BDAT Bitmap data. Table tag "bdat" in the Open Type Specification. | |
| TAG_BLOC | back to summary |
|---|---|
| public static final int TAG_BLOC Bitmap location. Table tag "bloc" in the Open Type Specification. | |
| TAG_BSLN | back to summary |
|---|---|
| public static final int TAG_BSLN Baseline table. Table tag "bsln" in the Open Type Specification. | |
| TAG_CFF | back to summary |
|---|---|
| public static final int TAG_CFF Compact font format (Type1 font). Table tag "CFF " in the Open Type Specification. | |
| TAG_CMAP | back to summary |
|---|---|
| public static final int TAG_CMAP Character to glyph mapping. Table tag "cmap" in the Open Type Specification. | |
| TAG_CVAR | back to summary |
|---|---|
| public static final int TAG_CVAR CVT variation. Table tag "cvar" in the Open Type Specification. | |
| TAG_CVT | back to summary |
|---|---|
| public static final int TAG_CVT Control value table. Table tag "cvt " in the Open Type Specification. | |
| TAG_DSIG | back to summary |
|---|---|
| public static final int TAG_DSIG Digital signature. Table tag "DSIG" in the Open Type Specification. | |
| TAG_EBDT | back to summary |
|---|---|
| public static final int TAG_EBDT Embedded bitmap data. Table tag "EBDT" in the Open Type Specification. | |
| TAG_EBLC | back to summary |
|---|---|
| public static final int TAG_EBLC Embedded bitmap location. Table tag "EBLC" in the Open Type Specification. | |
| TAG_EBSC | back to summary |
|---|---|
| public static final int TAG_EBSC Embedded bitmap scaling. Table tag "EBSC" in the Open Type Specification. | |
| TAG_FDSC | back to summary |
|---|---|
| public static final int TAG_FDSC Font descriptors. Table tag "fdsc" in the Open Type Specification. | |
| TAG_FEAT | back to summary |
|---|---|
| public static final int TAG_FEAT Feature name. Table tag "feat" in the Open Type Specification. | |
| TAG_FMTX | back to summary |
|---|---|
| public static final int TAG_FMTX Font metrics. Table tag "fmtx" in the Open Type Specification. | |
| TAG_FPGM | back to summary |
|---|---|
| public static final int TAG_FPGM Font program. Table tag "fpgm" in the Open Type Specification. | |
| TAG_FVAR | back to summary |
|---|---|
| public static final int TAG_FVAR Font variation. Table tag "fvar" in the Open Type Specification. | |
| TAG_GASP | back to summary |
|---|---|
| public static final int TAG_GASP Grid-fitting and scan conversion procedure. Table tag "gasp" in the Open Type Specification. | |
| TAG_GDEF | back to summary |
|---|---|
| public static final int TAG_GDEF Glyph definition. Table tag "GDEF" in the Open Type Specification. | |
| TAG_GLYF | back to summary |
|---|---|
| public static final int TAG_GLYF Glyph data. Table tag "glyf" in the Open Type Specification. | |
| TAG_GPOS | back to summary |
|---|---|
| public static final int TAG_GPOS Glyph positioning. Table tag "GPOS" in the Open Type Specification. | |
| TAG_GSUB | back to summary |
|---|---|
| public static final int TAG_GSUB Glyph substitution. Table tag "GSUB" in the Open Type Specification. | |
| TAG_GVAR | back to summary |
|---|---|
| public static final int TAG_GVAR Glyph variation. Table tag "gvar" in the Open Type Specification. | |
| TAG_HDMX | back to summary |
|---|---|
| public static final int TAG_HDMX Horizontal device metrics. Table tag "hdmx" in the Open Type Specification. | |
| TAG_HEAD | back to summary |
|---|---|
| public static final int TAG_HEAD Font header. Table tag "head" in the Open Type Specification. | |
| TAG_HHEA | back to summary |
|---|---|
| public static final int TAG_HHEA Horizontal metrics header. Table tag "hhea" in the Open Type Specification. | |
| TAG_HMTX | back to summary |
|---|---|
| public static final int TAG_HMTX Horizontal metrics. Table tag "hmtx" in the Open Type Specification. | |
| TAG_JSTF | back to summary |
|---|---|
| public static final int TAG_JSTF Justification. Table tag "JSTF" in the Open Type Specification. | |
| TAG_JUST | back to summary |
|---|---|
| public static final int TAG_JUST Justification. Table tag "just" in the Open Type Specification. | |
| TAG_KERN | back to summary |
|---|---|
| public static final int TAG_KERN Kerning. Table tag "kern" in the Open Type Specification. | |
| TAG_LCAR | back to summary |
|---|---|
| public static final int TAG_LCAR Ligature caret. Table tag "lcar" in the Open Type Specification. | |
| TAG_LOCA | back to summary |
|---|---|
| public static final int TAG_LOCA Index to location. Table tag "loca" in the Open Type Specification. | |
| TAG_LTSH | back to summary |
|---|---|
| public static final int TAG_LTSH Linear threshold. Table tag "LTSH" in the Open Type Specification. | |
| TAG_MAXP | back to summary |
|---|---|
| public static final int TAG_MAXP Maximum profile. Table tag "maxp" in the Open Type Specification. | |
| TAG_MMFX | back to summary |
|---|---|
| public static final int TAG_MMFX Multiple master font metrics. Table tag "MMFX" in the Open Type Specification. | |
| TAG_MMSD | back to summary |
|---|---|
| public static final int TAG_MMSD Multiple master supplementary data. Table tag "MMSD" in the Open Type Specification. | |
| TAG_MORT | back to summary |
|---|---|
| public static final int TAG_MORT Glyph metamorphosis. Table tag "mort" in the Open Type Specification. | |
| TAG_NAME | back to summary |
|---|---|
| public static final int TAG_NAME Naming table. Table tag "name" in the Open Type Specification. | |
| TAG_OPBD | back to summary |
|---|---|
| public static final int TAG_OPBD Optical bounds. Table tag "opbd" in the Open Type Specification. | |
| TAG_OS2 | back to summary |
|---|---|
| public static final int TAG_OS2 OS/2 and Windows specific metrics. Table tag "OS/2" in the Open Type Specification. | |
| TAG_PCLT | back to summary |
|---|---|
| public static final int TAG_PCLT PCL 5 data. Table tag "PCLT" in the Open Type Specification. | |
| TAG_POST | back to summary |
|---|---|
| public static final int TAG_POST PostScript Information. Table tag "post" in the Open Type Specification. | |
| TAG_PREP | back to summary |
|---|---|
| public static final int TAG_PREP CVT preprogram. Table tag "prep" in the Open Type Specification. | |
| TAG_PROP | back to summary |
|---|---|
| public static final int TAG_PROP Glyph properties. Table tag "prop" in the Open Type Specification. | |
| TAG_TRAK | back to summary |
|---|---|
| public static final int TAG_TRAK Tracking. Table tag "trak" in the Open Type Specification. | |
| TAG_TYP1 | back to summary |
|---|---|
| public static final int TAG_TYP1 Adobe Type 1 font data. Table tag "typ1" in the Open Type Specification. | |
| TAG_VDMX | back to summary |
|---|---|
| public static final int TAG_VDMX Vertical device metrics. Table tag "VDMX" in the Open Type Specification. | |
| TAG_VHEA | back to summary |
|---|---|
| public static final int TAG_VHEA Vertical metrics header. Table tag "vhea" in the Open Type Specification. | |
| TAG_VMTX | back to summary |
|---|---|
| public static final int TAG_VMTX Vertical metrics. Table tag "vmtx" in the Open Type Specification. | |
| getFontTable | back to summary |
|---|---|
| public byte[] getFontTable(int sfntTag) Returns the table as an array of bytes for a specified tag.
Tags for sfnt tables include items like cmap,
name and head. The
| |
| getFontTable | back to summary |
|---|---|
| public byte[] getFontTable(String strSfntTag) Returns the table as an array of bytes for a specified tag. Tags for sfnt tables include items like cmap, name and head. The byte array returned is a copy of the font data in memory.
| |
| getFontTable | back to summary |
|---|---|
| public byte[] getFontTable(int sfntTag, int offset, int count) Returns a subset of the table as an array of bytes for a specified tag. Tags for sfnt tables include items like cmap, name and head. The byte array returned is a copy of the font data in memory.
| |
| getFontTable | back to summary |
|---|---|
| public byte[] getFontTable(String strSfntTag, int offset, int count) Returns a subset of the table as an array of bytes
for a specified tag. Tags for sfnt tables include items
like cmap, name and head. The
| |
| getFontTableSize | back to summary |
|---|---|
| public int getFontTableSize(int sfntTag) Returns the size of the table for a specified tag. Tags for sfnt tables include items like cmap, name and head.
| |
| getFontTableSize | back to summary |
|---|---|
| public int getFontTableSize(String strSfntTag) Returns the size of the table for a specified tag. Tags for sfnt tables include items like cmap, name and head.
| |
| getVersion | back to summary |
|---|---|
| public int getVersion() Returns the version of the
| |