|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fop.fonts.FontSelector
public final class FontSelector
Helper class for automatic font selection.
TODO: Check if this could be merged with another font class, such as
FontManager.
| Method Summary | |
|---|---|
static Font |
selectFontForCharacter(Character fobj,
PercentBaseContext context)
Selects a font which is able to display the given character. |
static Font |
selectFontForCharacterInText(char c,
FOText text,
PercentBaseContext context)
Selects a font which is able to display the given character. |
static Font |
selectFontForCharactersInText(java.lang.CharSequence charSeq,
int firstIndex,
int breakIndex,
FOText text,
PercentBaseContext context)
Selects a font which is able to display the most of the given characters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Font selectFontForCharacter(Character fobj,
PercentBaseContext context)
fobj - a Character object containing the character and its
attributes.context - the Percent-based context needed for creating the actual font.
public static Font selectFontForCharacterInText(char c,
FOText text,
PercentBaseContext context)
c - character to find.text - the text object which contains the charactercontext - the Percent-based context needed for creating the actual font.
public static Font selectFontForCharactersInText(java.lang.CharSequence charSeq,
int firstIndex,
int breakIndex,
FOText text,
PercentBaseContext context)
charSeq - Text to go throughfirstIndex - first index within text.breakIndex - last index +1 within text.text - the text object which contains the charactercontext - the Percent-based context needed for creating the actual font.
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||