public class OutlineFont extends AFPFont
Constructor and Description |
---|
OutlineFont(java.lang.String name,
CharacterSet charSet)
Constructor for an outline font.
|
Modifier and Type | Method and Description |
---|---|
int |
getAscender(int size)
The ascender is the part of a lowercase letter that extends above the
"x-height" (the height of the letter "x"), such as "d", "t", or "h".
|
int |
getCapHeight(int size)
Obtains the height of capital letters for the specified point size.
|
CharacterSet |
getCharacterSet()
Get the character set metrics.
|
CharacterSet |
getCharacterSet(int size)
Get the character set metrics.
|
int |
getDescender(int size)
The descender is the part of a lowercase letter that extends below the
base line, such as "g", "j", or "p".
|
java.lang.String |
getEncoding()
Get the encoding of the font.
|
int |
getFirstChar()
Get the first character in this font.
|
int |
getLastChar()
Get the last character in this font.
|
int |
getWidth(int character,
int size)
Obtain the width of the character for the specified point size.
|
int[] |
getWidths()
Get the getWidth (in 1/1000ths of a point size) of all characters in this
character set.
|
int[] |
getWidths(int size)
Get the getWidth (in 1/1000ths of a point size) of all characters in this
character set.
|
int |
getXHeight(int size)
The "x-height" (the height of the letter "x").
|
char |
mapChar(char c)
Map a Unicode character to a code point in the font.
|
getEmbedFontName, getFamilyNames, getFontName, getFontType, getFullName, getKerningInfo, hasChar, hasKerningInfo
getMaxAscent, hadMappingOperations, isMultiByte, notifyMapOperation
public OutlineFont(java.lang.String name, CharacterSet charSet)
name
- the name of the fontcharSet
- the chracter setpublic CharacterSet getCharacterSet()
public CharacterSet getCharacterSet(int size)
getCharacterSet
in class AFPFont
size
- ignoredpublic int getFirstChar()
public int getLastChar()
public int getAscender(int size)
size
- the point sizepublic int getCapHeight(int size)
size
- the point sizepublic int getDescender(int size)
size
- the point sizepublic int getXHeight(int size)
size
- the point sizepublic int getWidth(int character, int size)
character
- the charactersize
- point sizepublic int[] getWidths(int size)
size
- the point sizepublic int[] getWidths()
public char mapChar(char c)
public java.lang.String getEncoding()
getEncoding
in class Typeface
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.