guk.editIM
Class FontOptimizer

java.lang.Object
  |
  +--guk.editIM.FontOptimizer

public class FontOptimizer
extends java.lang.Object

FontOptimizer.java in guk.editIM: find an Unicode font. Tries Arial Unicode MS and Bitstream Cyberbit. If none of them can be found, FontLoader is invoked and the two fonts are tried again. If still no font is found, use the first font in the list of FontLoader dynamic fonts.


Field Summary
static FontLoader fontLoader
          May be set to non-null by the unicodeFont() method.
 
Constructor Summary
FontOptimizer()
           
 
Method Summary
static java.awt.Font unicodeFont()
          Returns the first Unicode found that is available, using FontLoader only if needed.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

fontLoader

public static FontLoader fontLoader
May be set to non-null by the unicodeFont() method. You can access it if you need direct access to the dynamic font loading system. Further, unicodeFont() will use it whenever it needs a dynamic font.
Constructor Detail

FontOptimizer

public FontOptimizer()
Method Detail

unicodeFont

public static java.awt.Font unicodeFont()
Returns the first Unicode found that is available, using FontLoader only if needed.
Returns:
An unicode Font, preferrably Arial Unicode MS or Bitstream Cyberbit, either a system font or if needed a dynamically loaded font (bug in Java 1.3.1: It fails to delete temporary copies of dynamically loaded font files!).