| 
 | JavaTM 2 Platform Std. Ed. v1.4.2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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 fonts, see the Apple TrueType Reference Manual ( http://fonts.apple.com/TTRefMan/index.html ).
| Field Summary | |
| static int | TAG_ACNTAccent attachment. | 
| static int | TAG_AVARAxis variaiton. | 
| static int | TAG_BASEBaseline data. | 
| static int | TAG_BDATBitmap data. | 
| static int | TAG_BLOCBitmap location. | 
| static int | TAG_BSLNBaseline table. | 
| static int | TAG_CFFCompact font format (Type1 font). | 
| static int | TAG_CMAPCharacter to glyph mapping. | 
| static int | TAG_CVARCVT variation. | 
| static int | TAG_CVTControl value table. | 
| static int | TAG_DSIGDigital signature. | 
| static int | TAG_EBDTEmbedded bitmap data. | 
| static int | TAG_EBLCEmbedded bitmap location. | 
| static int | TAG_EBSCEmbedded bitmap scaling. | 
| static int | TAG_FDSCFont descriptors. | 
| static int | TAG_FEATFeature name. | 
| static int | TAG_FMTXFont metrics. | 
| static int | TAG_FPGMFont program. | 
| static int | TAG_FVARFont variation. | 
| static int | TAG_GASPGrid-fitting and scan conversion procedure. | 
| static int | TAG_GDEFGlyph definition. | 
| static int | TAG_GLYFGlyph data. | 
| static int | TAG_GPOSGlyph positioning. | 
| static int | TAG_GSUBGlyph substitution. | 
| static int | TAG_GVARGlyph variation. | 
| static int | TAG_HDMXHorizontal device metrics. | 
| static int | TAG_HEADFont header. | 
| static int | TAG_HHEAHorizontal metrics header. | 
| static int | TAG_HMTXHorizontal metrics. | 
| static int | TAG_JSTFJustification. | 
| static int | TAG_JUSTJustification. | 
| static int | TAG_KERNKerning. | 
| static int | TAG_LCARLigature caret. | 
| static int | TAG_LOCAIndex to location. | 
| static int | TAG_LTSHLinear threshold. | 
| static int | TAG_MAXPMaximum profile. | 
| static int | TAG_MMFXMultiple master font metrics. | 
| static int | TAG_MMSDMultiple master supplementary data. | 
| static int | TAG_MORTGlyph metamorphosis. | 
| static int | TAG_NAMENaming table. | 
| static int | TAG_OPBDOptical bounds. | 
| static int | TAG_OS2OS/2 and Windows specific metrics. | 
| static int | TAG_PCLTPCL 5 data. | 
| static int | TAG_POSTPostScript Information. | 
| static int | TAG_PREPCVT preprogram. | 
| static int | TAG_PROPGlyph properties. | 
| static int | TAG_TRAKTracking. | 
| static int | TAG_TYP1Adobe Type 1 font data. | 
| static int | TAG_VDMXVertical device metrics. | 
| static int | TAG_VHEAVertical metrics header. | 
| static int | TAG_VMTXVertical metrics. | 
| Method Summary | |
|  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. | 
|  int | getFontTableSize(int sfntTag)Returns the size of the table for a specified tag. | 
|  int | getFontTableSize(String strSfntTag)Returns the size of the table for a specified tag. | 
|  int | getVersion()Returns the version of the OpenTypefont. | 
| Field Detail | 
public static final int TAG_CMAP
public static final int TAG_HEAD
public static final int TAG_NAME
public static final int TAG_GLYF
public static final int TAG_MAXP
public static final int TAG_PREP
public static final int TAG_HMTX
public static final int TAG_KERN
public static final int TAG_HDMX
public static final int TAG_LOCA
public static final int TAG_POST
public static final int TAG_OS2
public static final int TAG_CVT
public static final int TAG_GASP
public static final int TAG_VDMX
public static final int TAG_VMTX
public static final int TAG_VHEA
public static final int TAG_HHEA
public static final int TAG_TYP1
public static final int TAG_BSLN
public static final int TAG_GSUB
public static final int TAG_DSIG
public static final int TAG_FPGM
public static final int TAG_FVAR
public static final int TAG_GVAR
public static final int TAG_CFF
public static final int TAG_MMSD
public static final int TAG_MMFX
public static final int TAG_BASE
public static final int TAG_GDEF
public static final int TAG_GPOS
public static final int TAG_JSTF
public static final int TAG_EBDT
public static final int TAG_EBLC
public static final int TAG_EBSC
public static final int TAG_LTSH
public static final int TAG_PCLT
public static final int TAG_ACNT
public static final int TAG_AVAR
public static final int TAG_BDAT
public static final int TAG_BLOC
public static final int TAG_CVAR
public static final int TAG_FEAT
public static final int TAG_FDSC
public static final int TAG_FMTX
public static final int TAG_JUST
public static final int TAG_LCAR
public static final int TAG_MORT
public static final int TAG_OPBD
public static final int TAG_PROP
public static final int TAG_TRAK
| Method Detail | 
public int getVersion()
OpenType font.
 1.0 is represented as 0x00010000.
OpenType font.public 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 integer
byte array that is the table that 
 contains the font data corresponding to the specified
 tag.public 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.
public 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 table
sfntTag and containing the bytes
		starting at offset byte and including
		count bytes.
public 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 
 Stringoffset - index of first byte to return from tablecount - number of bytes to return from table
strSfntTag and containing the bytes
            starting at offset byte and including
            count bytes.public int getFontTableSize(int sfntTag)
sfntTag - a four-character code as a 32-bit integer
public int getFontTableSize(String strSfntTag)
strSfntTag - a four-character code as a 
 String
| 
 | JavaTM 2 Platform Std. Ed. v1.4.2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.