public abstract class Typeface extends java.lang.Object implements FontMetrics
Constructor and Description |
---|
Typeface() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
getEncoding()
Get the encoding of the font.
|
int |
getMaxAscent(int size)
Returns the maximum ascent of the font described by this
FontMetrics object.
|
boolean |
hadMappingOperations()
Indicates whether this font had to do any character mapping operations.
|
abstract boolean |
hasChar(char c)
Determines whether this font contains a particular character/glyph.
|
boolean |
isMultiByte()
Determines whether the font is a multibyte font.
|
abstract char |
mapChar(char c)
Map a Unicode character to a code point in the font.
|
protected void |
notifyMapOperation()
Used for keeping track of character mapping operations in order to determine if a font
was used at all or not.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAscender, getCapHeight, getDescender, getEmbedFontName, getFamilyNames, getFontName, getFontType, getFullName, getKerningInfo, getWidth, getWidths, getXHeight, hasKerningInfo
public abstract java.lang.String getEncoding()
public abstract char mapChar(char c)
c
- character to mapprotected void notifyMapOperation()
public boolean hadMappingOperations()
public abstract boolean hasChar(char c)
c
- character to checkpublic boolean isMultiByte()
public int getMaxAscent(int size)
getMaxAscent
in interface FontMetrics
size
- font sizeCopyright 1999-2008 The Apache Software Foundation. All Rights Reserved.