- 
 public interface OpenTypeTheOpenTypeinterface represents OpenType and TrueType fonts. This interface makes it possible to obtain sfnt tables from the font. A particularFontobject can implement this interface.For more information on TrueType and OpenType fonts, see the OpenType specification. ( http://www.microsoft.com/typography/otspec/ ). 
- 
- 
Field SummaryFields Modifier and Type Field Description static intTAG_ACNTAccent attachment.static intTAG_AVARAxis variation.static intTAG_BASEBaseline data.static intTAG_BDATBitmap data.static intTAG_BLOCBitmap location.static intTAG_BSLNBaseline table.static intTAG_CFFCompact font format (Type1 font).static intTAG_CMAPCharacter to glyph mapping.static intTAG_CVARCVT variation.static intTAG_CVTControl value table.static intTAG_DSIGDigital signature.static intTAG_EBDTEmbedded bitmap data.static intTAG_EBLCEmbedded bitmap location.static intTAG_EBSCEmbedded bitmap scaling.static intTAG_FDSCFont descriptors.static intTAG_FEATFeature name.static intTAG_FMTXFont metrics.static intTAG_FPGMFont program.static intTAG_FVARFont variation.static intTAG_GASPGrid-fitting and scan conversion procedure.static intTAG_GDEFGlyph definition.static intTAG_GLYFGlyph data.static intTAG_GPOSGlyph positioning.static intTAG_GSUBGlyph substitution.static intTAG_GVARGlyph variation.static intTAG_HDMXHorizontal device metrics.static intTAG_HEADFont header.static intTAG_HHEAHorizontal metrics header.static intTAG_HMTXHorizontal metrics.static intTAG_JSTFJustification.static intTAG_JUSTJustification.static intTAG_KERNKerning.static intTAG_LCARLigature caret.static intTAG_LOCAIndex to location.static intTAG_LTSHLinear threshold.static intTAG_MAXPMaximum profile.static intTAG_MMFXMultiple master font metrics.static intTAG_MMSDMultiple master supplementary data.static intTAG_MORTGlyph metamorphosis.static intTAG_NAMENaming table.static intTAG_OPBDOptical bounds.static intTAG_OS2OS/2 and Windows specific metrics.static intTAG_PCLTPCL 5 data.static intTAG_POSTPostScript Information.static intTAG_PREPCVT preprogram.static intTAG_PROPGlyph properties.static intTAG_TRAKTracking.static intTAG_TYP1Adobe Type 1 font data.static intTAG_VDMXVertical device metrics.static intTAG_VHEAVertical metrics header.static intTAG_VMTXVertical metrics.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]getFontTable(int sfntTag)Returns the table as an array of bytes for a specified tag.byte[]getFontTable(int sfntTag, int offset, int count)Returns a subset of the table as an array of bytes for a specified tag.byte[]getFontTable(String strSfntTag)Returns the table as an array of bytes for a specified tag.byte[]getFontTable(String strSfntTag, int offset, int count)Returns a subset of the table as an array of bytes for a specified tag.intgetFontTableSize(int sfntTag)Returns the size of the table for a specified tag.intgetFontTableSize(String strSfntTag)Returns the size of the table for a specified tag.intgetVersion()Returns the version of theOpenTypefont. 1.0 is represented as 0x00010000.
 
- 
- 
- 
Field Detail- 
TAG_CMAPstatic final int TAG_CMAP Character to glyph mapping. Table tag "cmap" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_HEADstatic final int TAG_HEAD Font header. Table tag "head" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_NAMEstatic final int TAG_NAME Naming table. Table tag "name" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_GLYFstatic final int TAG_GLYF Glyph data. Table tag "glyf" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_MAXPstatic final int TAG_MAXP Maximum profile. Table tag "maxp" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_PREPstatic final int TAG_PREP CVT preprogram. Table tag "prep" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_HMTXstatic final int TAG_HMTX Horizontal metrics. Table tag "hmtx" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_KERNstatic final int TAG_KERN Kerning. Table tag "kern" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_HDMXstatic final int TAG_HDMX Horizontal device metrics. Table tag "hdmx" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_LOCAstatic final int TAG_LOCA Index to location. Table tag "loca" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_POSTstatic final int TAG_POST PostScript Information. Table tag "post" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_OS2static final int TAG_OS2 OS/2 and Windows specific metrics. Table tag "OS/2" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_CVTstatic final int TAG_CVT Control value table. Table tag "cvt " in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_GASPstatic final int TAG_GASP Grid-fitting and scan conversion procedure. Table tag "gasp" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_VDMXstatic final int TAG_VDMX Vertical device metrics. Table tag "VDMX" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_VMTXstatic final int TAG_VMTX Vertical metrics. Table tag "vmtx" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_VHEAstatic final int TAG_VHEA Vertical metrics header. Table tag "vhea" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_HHEAstatic final int TAG_HHEA Horizontal metrics header. Table tag "hhea" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_TYP1static final int TAG_TYP1 Adobe Type 1 font data. Table tag "typ1" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_BSLNstatic final int TAG_BSLN Baseline table. Table tag "bsln" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_GSUBstatic final int TAG_GSUB Glyph substitution. Table tag "GSUB" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_DSIGstatic final int TAG_DSIG Digital signature. Table tag "DSIG" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_FPGMstatic final int TAG_FPGM Font program. Table tag "fpgm" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_FVARstatic final int TAG_FVAR Font variation. Table tag "fvar" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_GVARstatic final int TAG_GVAR Glyph variation. Table tag "gvar" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_CFFstatic final int TAG_CFF Compact font format (Type1 font). Table tag "CFF " in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_MMSDstatic final int TAG_MMSD Multiple master supplementary data. Table tag "MMSD" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_MMFXstatic final int TAG_MMFX Multiple master font metrics. Table tag "MMFX" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_BASEstatic final int TAG_BASE Baseline data. Table tag "BASE" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_GDEFstatic final int TAG_GDEF Glyph definition. Table tag "GDEF" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_GPOSstatic final int TAG_GPOS Glyph positioning. Table tag "GPOS" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_JSTFstatic final int TAG_JSTF Justification. Table tag "JSTF" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_EBDTstatic final int TAG_EBDT Embedded bitmap data. Table tag "EBDT" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_EBLCstatic final int TAG_EBLC Embedded bitmap location. Table tag "EBLC" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_EBSCstatic final int TAG_EBSC Embedded bitmap scaling. Table tag "EBSC" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_LTSHstatic final int TAG_LTSH Linear threshold. Table tag "LTSH" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_PCLTstatic final int TAG_PCLT PCL 5 data. Table tag "PCLT" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_ACNTstatic final int TAG_ACNT Accent attachment. Table tag "acnt" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_AVARstatic final int TAG_AVAR Axis variation. Table tag "avar" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_BDATstatic final int TAG_BDAT Bitmap data. Table tag "bdat" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_BLOCstatic final int TAG_BLOC Bitmap location. Table tag "bloc" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_CVARstatic final int TAG_CVAR CVT variation. Table tag "cvar" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_FEATstatic final int TAG_FEAT Feature name. Table tag "feat" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_FDSCstatic final int TAG_FDSC Font descriptors. Table tag "fdsc" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_FMTXstatic final int TAG_FMTX Font metrics. Table tag "fmtx" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_JUSTstatic final int TAG_JUST Justification. Table tag "just" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_LCARstatic final int TAG_LCAR Ligature caret. Table tag "lcar" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_MORTstatic final int TAG_MORT Glyph metamorphosis. Table tag "mort" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_OPBDstatic final int TAG_OPBD Optical bounds. Table tag "opbd" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_PROPstatic final int TAG_PROP Glyph properties. Table tag "prop" in the Open Type Specification.- See Also:
- Constant Field Values
 
 - 
TAG_TRAKstatic final int TAG_TRAK Tracking. Table tag "trak" in the Open Type Specification.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getVersionint getVersion() Returns the version of theOpenTypefont. 1.0 is represented as 0x00010000.- Returns:
- the version of the OpenTypefont.
 
 - 
getFontTablebyte[] 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. Thebytearray returned is a copy of the font data in memory.- Parameters:
- sfntTag- a four-character code as a 32-bit integer
- Returns:
- a bytearray that is the table that contains the font data corresponding to the specified tag.
 
 - 
getFontTablebyte[] 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.- Parameters:
- strSfntTag- a four-character code as a- String
- Returns:
- a bytearray that is the table that contains the font data corresponding to the specified tag.
 
 - 
getFontTablebyte[] 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.- Parameters:
- sfntTag- a four-character code as a 32-bit integer
- offset- index of first byte to return from table
- count- number of bytes to return from table
- Returns:
- a subset of the table corresponding to
            sfntTagand containing the bytes starting atoffsetbyte and includingcountbytes.
 
 - 
getFontTablebyte[] 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. Thebytearray returned is a copy of the font data in memory.- Parameters:
- strSfntTag- a four-character code as a- String
- offset- index of first byte to return from table
- count- number of bytes to return from table
- Returns:
- a subset of the table corresponding to
            strSfntTagand containing the bytes starting atoffsetbyte and includingcountbytes.
 
 - 
getFontTableSizeint getFontTableSize(int sfntTag) Returns the size of the table for a specified tag. Tags for sfnt tables include items like cmap, name and head.- Parameters:
- sfntTag- a four-character code as a 32-bit integer
- Returns:
- the size of the table corresponding to the specified tag.
 
 - 
getFontTableSizeint getFontTableSize(String strSfntTag) Returns the size of the table for a specified tag. Tags for sfnt tables include items like cmap, name and head.- Parameters:
- strSfntTag- a four-character code as a- String
- Returns:
- the size of the table corresponding to the specified tag.
 
 
- 
 
-