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 fonts, see the Apple TrueType Reference Manual ( http://fonts.apple.com/TTRefMan/index.html ).
| Field Summary | |
|---|---|
static int |
TAG_ACNT
Accent attachment. |
static int |
TAG_AVAR
Axis variaiton. |
static int |
TAG_BASE
Baseline data. |
static int |
TAG_BDAT
Bitmap data. |
static int |
TAG_BLOC
Bitmap location. |
static int |
TAG_BSLN
Baseline table. |
static int |
TAG_CFF
Compact font format (Type1 font). |
static int |
TAG_CMAP
Character to glyph mapping. |
static int |
TAG_CVAR
CVT variation. |
static int |
TAG_CVT
Control value table. |
static int |
TAG_DSIG
Digital signature. |
static int |
TAG_EBDT
Embedded bitmap data. |
static int |
TAG_EBLC
Embedded bitmap location. |
static int |
TAG_EBSC
Embedded bitmap scaling. |
static int |
TAG_FDSC
Font descriptors. |
static int |
TAG_FEAT
Feature name. |
static int |
TAG_FMTX
Font metrics. |
static int |
TAG_FPGM
Font program. |
static int |
TAG_FVAR
Font variation. |
static int |
TAG_GASP
Grid-fitting and scan conversion procedure. |
static int |
TAG_GDEF
Glyph definition. |
static int |
TAG_GLYF
Glyph data. |
static int |
TAG_GPOS
Glyph positioning. |
static int |
TAG_GSUB
Glyph substitution. |
static int |
TAG_GVAR
Glyph variation. |
static int |
TAG_HDMX
Horizontal device metrics. |
static int |
TAG_HEAD
Font header. |
static int |
TAG_HHEA
Horizontal metrics header. |
static int |
TAG_HMTX
Horizontal metrics. |
static int |
TAG_JSTF
Justification. |
static int |
TAG_JUST
Justification. |
static int |
TAG_KERN
Kerning. |
static int |
TAG_LCAR
Ligature caret. |
static int |
TAG_LOCA
Index to location. |
static int |
TAG_LTSH
Linear threshold. |
static int |
TAG_MAXP
Maximum profile. |
static int |
TAG_MMFX
Multiple master font metrics. |
static int |
TAG_MMSD
Multiple master supplementary data. |
static int |
TAG_MORT
Glyph metamorphosis. |
static int |
TAG_NAME
Naming table. |
static int |
TAG_OPBD
Optical bounds. |
static int |
TAG_OS2
OS/2 and Windows specific metrics. |
static int |
TAG_PCLT
PCL 5 data. |
static int |
TAG_POST
PostScript Information. |
static int |
TAG_PREP
CVT preprogram. |
static int |
TAG_PROP
Glyph properties. |
static int |
TAG_TRAK
Tracking. |
static int |
TAG_TYP1
Adobe Type 1 font data. |
static int |
TAG_VDMX
Vertical device metrics. |
static int |
TAG_VHEA
Vertical metrics header. |
static int |
TAG_VMTX
Vertical 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 OpenType font. |
| Field Detail |
|---|
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
| Method Detail |
|---|
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 integer
byte 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 table
sfntTag 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
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.int getFontTableSize(int sfntTag)
sfntTag - a four-character code as a 32-bit integer
int getFontTableSize(String strSfntTag)
strSfntTag - a four-character code as a
String
Ces informations proviennent du site de http://java.sun.com
Le contenu de cette page provient du site de Sun, et est généré depuis un cache sur l'infobrol après certains traitements automatisés. La présentation peut donc différer du document original, mais le contenu aussi. Vous pouvez utiliser ce bouton pour afficher la page originale du site de Sun :
Maintenir les pages en cache sur différents sites peut offrir plus de disponibilité.
Chaque page est indexée dans la base de donnée, ce qui permet de retrouver facilement les informations, au moyen des sommaires, du moteur de recherche interne, etc.
Des facilités sont mises en place pour que les membres de l'infobrol puissent effectuer des traductions en français des différents documents. Ceci devrait permettre aux débutants en programmation Java de consulter les API en français s'ils maîtrisent moins bien la langue de Shakespeare. Dans le cas où une traduction a été soumise, elle est disponible au moyen d'un lien en bas de page. Si la traduction a été validée, la page s'affiche par défaut en français, et un lien en bas de page permet d'atteindre la version en anglais.
Le code sur l'infobrol est automatiquement coloré selon la syntaxe, et les différents mots clés sont transformés en liens pour accéder rapidement aux informations.
Vous avez la possibilité de partager vos expériences en proposant vos propres extraits de code en utilisant le bouton "ajouter un commentaire" en bas de page. Si vous visitez simplement l'infobrol, vous avez déjà accès à cette fonction, mais si vous étes membre du brol, vous pouvez en plus utiliser des boutons supplémentaires de mise en forme, dont la coloration automatique de vos extraits de codes.
Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.
7 mots clés dont 0 définis manuellement (plus d'information...).
Avertissement
Cette page ne possède pas encore de mots clés manuels, ceci est donc un exemple automatique (les niveaux de pertinence sont fictifs, mais les liens sont valables). Pour tester le nuage avec une page qui contient des mots définis manuellement, vous pouvez cliquer ici.Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher le nuage de mots clés.
Recherche (afficher)
Utilisateur (masquer)
Navigation (masquer)
Apparence (afficher)
Stats (afficher)
Citation (masquer)