| 40 | When the user select font family name, size and style, they will be added to the HotText using the Styler interface (HotText.Styler#addStyle) by using an empty HotStyleDef and derive from it the HotStyleDef that is needed (HotStyleDef.EMPTY_STYLE#derive). Then the appropriate visualization is a job of HotTextLayout. |
| 41 | |
| 42 | Every single text unit (a glyph) is drawn by the Atom class. So the conversion of HotStyleDef to a java.awt.Font object should be made there. |
| 43 | |
| 44 | [[Image(source:trunk/sophie2-platform/doc/uml-design-diagrams/hotText/HotText - model.png)]] |
| 45 | |
| 46 | [[Image(source:trunk/sophie2-platform/doc/uml-design-diagrams/hotText/HotStyleDef-model.png)]] |
| 47 | |
| 48 | [[Image(source:trunk/sophie2-platform/doc/uml-design-diagrams/hotText/HotTextFontGUI.png)]] |