|
Unified Typesetting API M1-20040817 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A typesetter takes care of all aspects of typesetting text. This includes
Typesetters of different quality will mostly only implement a subset
of the features mentioned above. Different scripts need different features.
Therefore it can happen that a typesetter fulfills highest-quality
requirements for one particular script, while it doesn't even fit the
simplest for another. A typesetter is designed so that additional
Scripts can be plugged in.
These scripts directly extend functionality of the typesetter.
Note: Not all mentioned features are currently fully
supported by UTA. Text has to be NFKC normalized, see
typeset(UtaAttributedString).
| Method Summary | |
Script |
addScript(Script aScript)
Adds support for a new script. |
FeatureList |
getFeatures()
Returns a list of features the typesetter supports. |
JustificationAlgorithm |
getJustificationAlgorithm()
Returns the justification algorithm used. |
LinebreakAlgorithm |
getLinebreakAlgorithm()
The linebreak algorithm used. |
Script |
getScript(Locale aLocale)
Returns the script for the given locale or null if no
script is registered for the locale. |
List |
getScripts()
Returns a list of all registered scripts. |
EmbeddingLevel |
typeset(UtaAttributedString text)
Typesets a piece of text. |
| Method Detail |
public LinebreakAlgorithm getLinebreakAlgorithm()
public JustificationAlgorithm getJustificationAlgorithm()
public EmbeddingLevel typeset(UtaAttributedString text)
Hints which substring should be substituted by a ligature may be embedded in the attributes. Complex script implementations may consult a dictionary when a ligature has to be formed in a word an when not.
Extensive analysis needs to be done with the complete text. Therefore there is no character-by-character based typeset method in this interface.
The method returns the embedding level
with the lowest order produced during typesetting. It contains all
sub-levels, glyphs and other boxes generated during typesetting.
text - The text to typeset.
public Script addScript(Script aScript)
aScript - The script to add.
null
if there was no such script before.public FeatureList getFeatures()
getFeatures in interface QManageablepublic Script getScript(Locale aLocale)
null if no
script is registered for the locale.
aLocale - The locale a script is searched for.
null if no
script is registered for the locale.public List getScripts()
|
Unified Typesetting API M1-20040817 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
![]() An inghuimische.de project. | Copyright (C) 2004 Christian Ziesemer; See the Mozilla Public License for more details. |