public interface OpenType
The 
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/ ).
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intAccent attachment.static final intAxis variation.static final intBaseline data.static final intBitmap data.static final intBitmap location.static final intBaseline table.static final intCompact font format (Type1 font).static final intCharacter to glyph mapping.static final intCVT variation.static final intControl value table.static final intDigital signature.static final intEmbedded bitmap data.static final intEmbedded bitmap location.static final intEmbedded bitmap scaling.static final intFont descriptors.static final intFeature name.static final intFont metrics.static final intFont program.static final intFont variation.static final intGrid-fitting and scan conversion procedure.static final intGlyph definition.static final intGlyph data.static final intGlyph positioning.static final intGlyph substitution.static final intGlyph variation.static final intHorizontal device metrics.static final intFont header.static final intHorizontal metrics header.static final intHorizontal metrics.static final intJustification.static final intJustification.static final intKerning.static final intLigature caret.static final intIndex to location.static final intLinear threshold.static final intMaximum profile.static final intMultiple master font metrics.static final intMultiple master supplementary data.static final intGlyph metamorphosis.static final intNaming table.static final intOptical bounds.static final intOS/2 and Windows specific metrics.static final intPCL 5 data.static final intPostScript Information.static final intCVT preprogram.static final intGlyph properties.static final intTracking.static final intAdobe Type 1 font data.static final intVertical device metrics.static final intVertical metrics header.static final intVertical metrics.
- 
Method SummaryModifier and TypeMethodDescriptionbyte[]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.intReturns the version of theOpenTypefont. 1.0 is represented as 0x00010000.
- 
Field Details- 
TAG_CMAPstatic final int TAG_CMAPCharacter to glyph mapping. Table tag "cmap" in the Open Type Specification.- See Also:
 
- 
TAG_HEADstatic final int TAG_HEADFont header. Table tag "head" in the Open Type Specification.- See Also:
 
- 
TAG_NAMEstatic final int TAG_NAMENaming table. Table tag "name" in the Open Type Specification.- See Also:
 
- 
TAG_GLYFstatic final int TAG_GLYFGlyph data. Table tag "glyf" in the Open Type Specification.- See Also:
 
- 
TAG_MAXPstatic final int TAG_MAXPMaximum profile. Table tag "maxp" in the Open Type Specification.- See Also:
 
- 
TAG_PREPstatic final int TAG_PREPCVT preprogram. Table tag "prep" in the Open Type Specification.- See Also:
 
- 
TAG_HMTXstatic final int TAG_HMTXHorizontal metrics. Table tag "hmtx" in the Open Type Specification.- See Also:
 
- 
TAG_KERNstatic final int TAG_KERNKerning. Table tag "kern" in the Open Type Specification.- See Also:
 
- 
TAG_HDMXstatic final int TAG_HDMXHorizontal device metrics. Table tag "hdmx" in the Open Type Specification.- See Also:
 
- 
TAG_LOCAstatic final int TAG_LOCAIndex to location. Table tag "loca" in the Open Type Specification.- See Also:
 
- 
TAG_POSTstatic final int TAG_POSTPostScript Information. Table tag "post" in the Open Type Specification.- See Also:
 
- 
TAG_OS2static final int TAG_OS2OS/2 and Windows specific metrics. Table tag "OS/2" in the Open Type Specification.- See Also:
 
- 
TAG_CVTstatic final int TAG_CVTControl value table. Table tag "cvt " in the Open Type Specification.- See Also:
 
- 
TAG_GASPstatic final int TAG_GASPGrid-fitting and scan conversion procedure. Table tag "gasp" in the Open Type Specification.- See Also:
 
- 
TAG_VDMXstatic final int TAG_VDMXVertical device metrics. Table tag "VDMX" in the Open Type Specification.- See Also:
 
- 
TAG_VMTXstatic final int TAG_VMTXVertical metrics. Table tag "vmtx" in the Open Type Specification.- See Also:
 
- 
TAG_VHEAstatic final int TAG_VHEAVertical metrics header. Table tag "vhea" in the Open Type Specification.- See Also:
 
- 
TAG_HHEAstatic final int TAG_HHEAHorizontal metrics header. Table tag "hhea" in the Open Type Specification.- See Also:
 
- 
TAG_TYP1static final int TAG_TYP1Adobe Type 1 font data. Table tag "typ1" in the Open Type Specification.- See Also:
 
- 
TAG_BSLNstatic final int TAG_BSLNBaseline table. Table tag "bsln" in the Open Type Specification.- See Also:
 
- 
TAG_GSUBstatic final int TAG_GSUBGlyph substitution. Table tag "GSUB" in the Open Type Specification.- See Also:
 
- 
TAG_DSIGstatic final int TAG_DSIGDigital signature. Table tag "DSIG" in the Open Type Specification.- See Also:
 
- 
TAG_FPGMstatic final int TAG_FPGMFont program. Table tag "fpgm" in the Open Type Specification.- See Also:
 
- 
TAG_FVARstatic final int TAG_FVARFont variation. Table tag "fvar" in the Open Type Specification.- See Also:
 
- 
TAG_GVARstatic final int TAG_GVARGlyph variation. Table tag "gvar" in the Open Type Specification.- See Also:
 
- 
TAG_CFFstatic final int TAG_CFFCompact font format (Type1 font). Table tag "CFF " in the Open Type Specification.- See Also:
 
- 
TAG_MMSDstatic final int TAG_MMSDMultiple master supplementary data. Table tag "MMSD" in the Open Type Specification.- See Also:
 
- 
TAG_MMFXstatic final int TAG_MMFXMultiple master font metrics. Table tag "MMFX" in the Open Type Specification.- See Also:
 
- 
TAG_BASEstatic final int TAG_BASEBaseline data. Table tag "BASE" in the Open Type Specification.- See Also:
 
- 
TAG_GDEFstatic final int TAG_GDEFGlyph definition. Table tag "GDEF" in the Open Type Specification.- See Also:
 
- 
TAG_GPOSstatic final int TAG_GPOSGlyph positioning. Table tag "GPOS" in the Open Type Specification.- See Also:
 
- 
TAG_JSTFstatic final int TAG_JSTFJustification. Table tag "JSTF" in the Open Type Specification.- See Also:
 
- 
TAG_EBDTstatic final int TAG_EBDTEmbedded bitmap data. Table tag "EBDT" in the Open Type Specification.- See Also:
 
- 
TAG_EBLCstatic final int TAG_EBLCEmbedded bitmap location. Table tag "EBLC" in the Open Type Specification.- See Also:
 
- 
TAG_EBSCstatic final int TAG_EBSCEmbedded bitmap scaling. Table tag "EBSC" in the Open Type Specification.- See Also:
 
- 
TAG_LTSHstatic final int TAG_LTSHLinear threshold. Table tag "LTSH" in the Open Type Specification.- See Also:
 
- 
TAG_PCLTstatic final int TAG_PCLTPCL 5 data. Table tag "PCLT" in the Open Type Specification.- See Also:
 
- 
TAG_ACNTstatic final int TAG_ACNTAccent attachment. Table tag "acnt" in the Open Type Specification.- See Also:
 
- 
TAG_AVARstatic final int TAG_AVARAxis variation. Table tag "avar" in the Open Type Specification.- See Also:
 
- 
TAG_BDATstatic final int TAG_BDATBitmap data. Table tag "bdat" in the Open Type Specification.- See Also:
 
- 
TAG_BLOCstatic final int TAG_BLOCBitmap location. Table tag "bloc" in the Open Type Specification.- See Also:
 
- 
TAG_CVARstatic final int TAG_CVARCVT variation. Table tag "cvar" in the Open Type Specification.- See Also:
 
- 
TAG_FEATstatic final int TAG_FEATFeature name. Table tag "feat" in the Open Type Specification.- See Also:
 
- 
TAG_FDSCstatic final int TAG_FDSCFont descriptors. Table tag "fdsc" in the Open Type Specification.- See Also:
 
- 
TAG_FMTXstatic final int TAG_FMTXFont metrics. Table tag "fmtx" in the Open Type Specification.- See Also:
 
- 
TAG_JUSTstatic final int TAG_JUSTJustification. Table tag "just" in the Open Type Specification.- See Also:
 
- 
TAG_LCARstatic final int TAG_LCARLigature caret. Table tag "lcar" in the Open Type Specification.- See Also:
 
- 
TAG_MORTstatic final int TAG_MORTGlyph metamorphosis. Table tag "mort" in the Open Type Specification.- See Also:
 
- 
TAG_OPBDstatic final int TAG_OPBDOptical bounds. Table tag "opbd" in the Open Type Specification.- See Also:
 
- 
TAG_PROPstatic final int TAG_PROPGlyph properties. Table tag "prop" in the Open Type Specification.- See Also:
 
- 
TAG_TRAKstatic final int TAG_TRAKTracking. Table tag "trak" in the Open Type Specification.- See Also:
 
 
- 
- 
Method Details- 
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.
 
- 
getFontTableReturns 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.
 
- 
getFontTableReturns 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.
 
- 
getFontTableSizeReturns 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.
 
 
-