FIGUE
*Tutorial *Previous *Current *Next

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").
          • Pass the font name to JVM when launching the javaviewer :
            jview.exe 
               /d:FigueSymbol="WingDings" 
               YouClass
            
            jview.exe 
               /a
               /d:FigueSymbol="WingDings"
               YouPage.html
            			      
  • Sun's JDK
    • Edit the font.properties file from your java distribution
      xemacs jdk1.1.6/lib/font.properties &
      		  
      • If you can't find the file or haven't read/write acces right ask your system engineer :oP
      • Put the following line at the top of the file
        figuesymbol.0=Symbol,ANSI_CHARSET
        		      
        Eventually replace the string "Symbol" by another relevant font name.

* 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.

* The Whole Program

* Related Classes and Methods

* What Next ?

Now you can :

*Tutorial *Previous *Current *Next

Comments or suggestions?
Need some help?
Copyright ©1998 INRIA
Last updated 4 November 1998 by Bruno Conductier
FIGUE