Bad default font when using Windows XPE

Discussion in 'Java' started by Eric Hubert, Nov 4, 2003.

  1. Eric Hubert

    Eric Hubert Guest


    I am currently dealing with a problem of font display
    when my application runs on Windows XPE (XP Embedded).

    I am using JRE 1.4.1, and on any Windows application,
    a default font (met when displaying table headers,
    titled borders, ...) is always displayed in a propor-
    tional font (probably "arial").

    When running the software on XPE, the default font is
    not the expected one, but an ugly, non-proportional
    font. However, a very important set of fonts is available
    in the required Windows directory.

    Do you see any reason why this problem could occur?

    Thanks in advance for your help,

    Best regards

    Eric Hubert, Nov 4, 2003
    1. Advertisements

  2. I never worked with that combination, but here are my guesses:
    The logical font is "Dialog". If the JVM does not us some system font,
    this is usually mapped in Metal to a Lucida TrueType font included in
    the JRE.

    Try to turn on or off system font usage:

    Either on the command line:

    java -Dswing.useSystemFontSettings=false
    java -Dswing.useSystemFontSettings=true

    or within the application use the UIDefaults:


    You could also have a look at the file (I assume your
    JVM on that machine still has one), and check if you have installed all
    the fonts that are mapped to Java's logical font names in that file.
    Java can't handle bitmap fonts. You might want to check this, too.

    Thomas Weidenfeller, Nov 4, 2003
    1. Advertisements

  3. Eric Hubert

    Eric Hubert Guest

    Thanks Thomas for your help!

    Eric Hubert, Nov 7, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.