AWT font != Swing Font

Discussion in 'Java' started by Roedy Green, Aug 8, 2005.

  1. Roedy Green

    Roedy Green Guest

    I have discovered that Swing fonts with the same name and size
    displayed in a JTextArea will show more characters than
    AWT will in a TextArea.

    What gives?

    Here are the currency characters where the effect is most obvious:

    + "\u0020 "
    + "\u00a3 "
    + "\u00a4 "
    + "\u00a5 "
    + "\u0e3f "
    + "\u17db "
    + "\u20a1 "
    + "\u20a2 "
    + "\u20a3 "
    + "\u20a4 "
    + "\u20a6 "
    + "\u20a8 "
    + "\u20a9 "
    + "\u20aa "
    + "\u20ab "
    + "\u20ac "
    + "\u20ad "
    + "\u20b1 "
    + "\ufdfc\n";

    Compare Lucida Sans Unicode for example.
    Swing is able to show 3 more characters.

    For Dialog, Swing is able to show 5 more characters.




    --
    Bush crime family lost/embezzled $3 trillion from Pentagon.
    Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
    http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm

    Canadian Mind Products, Roedy Green.
    See http://mindprod.com/iraq.html photos of Bush's war crimes
     
    Roedy Green, Aug 8, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ramon F Herrera

    Porting from Swing to AWT?

    Ramon F Herrera, Jun 30, 2003, in forum: Java
    Replies:
    3
    Views:
    840
    Gerbrand van Dieijen
    Jul 3, 2003
  2. Robert Mark Bram
    Replies:
    2
    Views:
    6,014
    Robert Mark Bram
    Dec 11, 2003
  3. gino
    Replies:
    3
    Views:
    4,045
    Mike Smith
    Jul 11, 2004
  4. mkrause
    Replies:
    0
    Views:
    692
    mkrause
    May 6, 2005
  5. mttc
    Replies:
    2
    Views:
    2,450
    Roedy Green
    Jul 3, 2009
Loading...

Share This Page