public interface OpenType
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 | Description |
---|---|---|
static final int |
TAG_ACNT |
Accent attachment. |
static final int |
TAG_AVAR |
Axis variation. |
static final int |
TAG_BASE |
Baseline data. |
static final int |
TAG_BDAT |
Bitmap data. |
static final int |
TAG_BLOC |
Bitmap location. |
static final int |
TAG_BSLN |
Baseline table. |
static final int |
TAG_CFF |
Compact font format (Type1 font). |
static final int |
TAG_CMAP |
Character to glyph mapping. |
static final int |
TAG_CVAR |
CVT variation. |
static final int |
TAG_CVT |
Control value table. |
static final int |
TAG_DSIG |
Digital signature. |
static final int |
TAG_EBDT |
Embedded bitmap data. |
static final int |
TAG_EBLC |
Embedded bitmap location. |
static final int |
TAG_EBSC |
Embedded bitmap scaling. |
static final int |
TAG_FDSC |
Font descriptors. |
static final int |
TAG_FEAT |
Feature name. |
static final int |
TAG_FMTX |
Font metrics. |
static final int |
TAG_FPGM |
Font program. |
static final int |
TAG_FVAR |
Font variation. |
static final int |
TAG_GASP |
Grid-fitting and scan conversion procedure. |
static final int |
TAG_GDEF |
Glyph definition. |
static final int |
TAG_GLYF |
Glyph data. |
static final int |
TAG_GPOS |
Glyph positioning. |
static final int |
TAG_GSUB |
Glyph substitution. |
static final int |
TAG_GVAR |
Glyph variation. |
static final int |
TAG_HDMX |
Horizontal device metrics. |
static final int |
TAG_HEAD |
Font header. |
static final int |
TAG_HHEA |
Horizontal metrics header. |
static final int |
TAG_HMTX |
Horizontal metrics. |
static final int |
TAG_JSTF |
Justification. |
static final int |
TAG_JUST |
Justification. |
static final int |
TAG_KERN |
Kerning. |
static final int |
TAG_LCAR |
Ligature caret. |
static final int |
TAG_LOCA |
Index to location. |
static final int |
TAG_LTSH |
Linear threshold. |
static final int |
TAG_MAXP |
Maximum profile. |
static final int |
TAG_MMFX |
Multiple master font metrics. |
static final int |
TAG_MMSD |
Multiple master supplementary data. |
static final int |
TAG_MORT |
Glyph metamorphosis. |
static final int |
TAG_NAME |
Naming table. |
static final int |
TAG_OPBD |
Optical bounds. |
static final int |
TAG_OS2 |
OS/2 and Windows specific metrics. |
static final int |
TAG_PCLT |
PCL 5 data. |
static final int |
TAG_POST |
PostScript Information. |
static final int |
TAG_PREP |
CVT preprogram. |
static final int |
TAG_PROP |
Glyph properties. |
static final int |
TAG_TRAK |
Tracking. |
static final int |
TAG_TYP1 |
Adobe Type 1 font data. |
static final int |
TAG_VDMX |
Vertical device metrics. |
static final int |
TAG_VHEA |
Vertical metrics header. |
static final int |
TAG_VMTX |
Vertical metrics. |
Modifier and Type | Method | Description |
---|---|---|
byte[] |
getFontTable |
Returns the table as an array of bytes for a specified tag. |
byte[] |
getFontTable |
Returns a subset of the table as an array of bytes for a specified tag. |
byte[] |
getFontTable |
Returns the table as an array of bytes for a specified tag. |
byte[] |
getFontTable |
Returns a subset of the table as an array of bytes for a specified tag. |
int |
getFontTableSize |
Returns the size of the table for a specified tag. |
int |
getFontTableSize |
Returns the size of the table for a specified tag. |
int |
getVersion() |
Returns the version of the OpenType font. 1.0 is represented as 0x00010000. |
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
font. 1.0 is represented as 0x00010000.OpenType
font.byte[] getFontTable(int sfntTag)
byte
array returned is a copy of the font data in memory.sfntTag
- a four-character code as a 32-bit integerbyte
array that is the table that contains the font data corresponding to the specified tag.byte[] getFontTable(String strSfntTag)
strSfntTag
- a four-character code as a String
byte
array that is the table that contains the font data corresponding to the specified tag.byte[] getFontTable(int sfntTag, int offset, int count)
sfntTag
- a four-character code as a 32-bit integeroffset
- index of first byte to return from tablecount
- number of bytes to return from tablesfntTag
and containing the bytes starting at offset
byte and including count
bytes.byte[] getFontTable(String strSfntTag, int offset, int count)
byte
array returned is a copy of the font data in memory.strSfntTag
- a four-character code as a String
offset
- index of first byte to return from tablecount
- number of bytes to return from tablestrSfntTag
and containing the bytes starting at offset
byte and including count
bytes.int getFontTableSize(int sfntTag)
sfntTag
- a four-character code as a 32-bit integerint getFontTableSize(String strSfntTag)
strSfntTag
- a four-character code as a String
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/java/awt/font/OpenType.html