|
|
|
|
Working with Resources : Symbol Font
|
|
Specifying the Symbol Font
- Microsoft's SDK
- Browse the font directory
- Program Manager
- Main
- Control Panel
- Fonts
- If the true type "Symbol"
is available you have nothing to do
- If the true type "Symbol"
is unavailable or if you want to use
another font for symbols memorize the
name of another true type relevant font
(a rather stupid exemple would be "WingDings").
- Sun's JDK
|
|
Step by Step
Create and keep a reference to a symbol font.
|
private final void initResources() {
try {
_greekFont = _facade.doGetFont(null,
FontFamily.SYMBOL,
FontStyle.BOLD,
24,false); |
Modify the inherited graphical context with ths font.
|
final GlyphInterface theFirstContext
= new ChangeGraphicalContextAnonymous(_greekFont,
_blue,
null); |
|
|
Example
- Accelerators :
- home, end, page up, page down, left arrow,right arrow, up arrow, down arrow.
- Autoscrolling :
- drag the mouse inside the
text area, approach a border or a corner, and wait.
|
|
|
Related Classes
and Methods
|
|
|
What Next ?
Now you can :
|
|
|
|
|
|
|
|
|