Results 1 to 2 of 2
  1. #1
    ef_arf is offline Member
    Join Date
    Jul 2009
    Posts
    1
    Rep Power
    0

    Default Arial font displays boxes (mapped to Estrangelo Edessa??)

    I'd like to display text in Arial and I get boxes.
    After investigating this I realize something weird is going on:
    Font arial = new Font("Arial", 0, 12);
    arial.getFamily() = Estrangelo Edessa (!)

    I created a report of all available java font families and apparently Arial doesn't appear there (but Arial Black and other Arial type do).

    Has anyone ever seen this problem.
    Is there a way to set the java runtime font for already defined fonts? updating fontconfig didn't help.
    Do I need to change Windows font configurations (and how)?

    Thanks,
    Ef

  2. #2
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    That's a very strange problem. It may have to do with either your Windows or your Java installation. Try the program on a different machine before you do anything else. If that doesn't work, try some other common fonts. Possibly, it's just a typo in the font name, or a small programming error.

Similar Threads

  1. Replies: 5
    Last Post: 05-11-2009, 04:27 PM
  2. Replies: 5
    Last Post: 04-25-2009, 08:00 PM
  3. Memory-Mapped File-(MappedByteBuffer )
    By lenah in forum Advanced Java
    Replies: 3
    Last Post: 12-22-2008, 07:00 PM
  4. Bean data not mapped to database
    By kriskras in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 07-19-2008, 09:13 AM
  5. Problem when displays in the terminal
    By Felissa in forum Advanced Java
    Replies: 2
    Last Post: 07-01-2007, 02:14 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •