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

    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)?


  2. #2
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Rep Power


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