public void preferLocaleFonts(){
  FontManager fm=FontManagerFactory.getInstance();
  fm.preferLocaleFonts();
}

public void preferLocaleFonts ( ) { FontManager fm = FontManagerFactory . getInstance ( ) ; fm . preferLocaleFonts ( ) ; }
indicates a preference for locale - specific fonts in the mapping of logical fonts to physical fonts . calling this method indicates that font rendering should primarily use fonts specific to the primary writing system ( the one indicated by the default encoding and the initial default locale ) . for example , if the primary writing system is japanese , then characters should be rendered using a japanese font if possible , and other fonts should only be used for characters for which the japanese font doesn ' t have glyphs . < p > the actual change in font rendering behavior resulting from a call to this method is implementation dependent ; it may have no effect at all , or the requested behavior may already match the default behavior . the behavior may differ between font rendering in lightweight and peered components . since calling this method requests a different font , clients should expect different metrics , and may need to recalculate window sizes and layout . therefore this method should be called before user interface initialisation .
