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. Advertisements

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:
    982
    Gerbrand van Dieijen
    Jul 3, 2003
  2. _.-=
    Replies:
    9
    Views:
    717
  3. EvErEady
    Replies:
    5
    Views:
    489
    Jos A. Horsmeier
    Aug 4, 2003
  4. Niki Estner
    Replies:
    0
    Views:
    2,596
    Niki Estner
    Sep 7, 2003
  5. Robert Mark Bram
    Replies:
    2
    Views:
    6,488
    Robert Mark Bram
    Dec 11, 2003
  6. gino
    Replies:
    3
    Views:
    4,555
    Mike Smith
    Jul 11, 2004
  7. mkrause
    Replies:
    0
    Views:
    873
    mkrause
    May 6, 2005
  8. mttc
    Replies:
    2
    Views:
    2,707
    Roedy Green
    Jul 3, 2009
Loading...