|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BackendFontManager
The back-end font manager describes the abilities needed by a back-end to deal with fonts. The procedure assumes that in a first pass all characters of all fonts on a page or in a range of pages are passed to the manager. The manager returns a representation appropriate for the back-end format.
In a second pass the manager can be asked to return all fonts. Those fonts can be embedded into the output file – either completely or simply as a list of font names.
| Method Summary | |
|---|---|
BackendCharacter |
getRecognizedCharId()
Get the char info for the most recently recognized pair of font and character. |
BackendFont |
getRecognizedFont()
Get the font info for the most recently recognized pair of font and character. |
boolean |
isNewRecongnizedFont()
Get the new font indicator for the most recently recognized pair of font and character. |
java.util.Iterator<ManagerInfo> |
iterate()
Return the iterator for all recognized back-end fonts as ManagerInfo. |
boolean |
recognize(FontKey fontKey,
UnicodeChar uc)
Take a character and a font and see if they can be managed by this manager. |
void |
reset()
Rest the internal state to the initial state. |
void |
setBackendFontFactory(BackendFontFactory factory)
Setter for the back-end font factory. |
| Method Detail |
|---|
BackendCharacter getRecognizedCharId()
null is returned.
BackendFont getRecognizedFont()
null is returned.
boolean isNewRecongnizedFont()
true is returned. The font compared for this test is the
back-end font – not the font passed in. This means that each time
getRecognizedFont() returns a new font info this method returns
true.
If invoked before any character has been recognized successfully then
null is returned.
java.util.Iterator<ManagerInfo> iterate()
ManagerInfo. The fonts are sorted by the name.
ManagerInfo.
boolean recognize(FontKey fontKey,
UnicodeChar uc)
throws FontException
fontKey - the font key for the character at handuc - the Unicode character at hand
true iff the character is defined in the font
given and a font of a requested format can be delivered.
FontException - if a font error occurred.void reset()
void setBackendFontFactory(BackendFontFactory factory)
factory - the back-end font factory to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||