Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Font size discrepancy

Status
Not open for further replies.

GDameron

Programmer
Aug 8, 2003
39
US
There seems to be a three-point discrepancy between "equivalent" font sizes in Java vs. MS Office. For example, if I set a JLabel to Arial 11, it's the same font I see in a Word doc using Arial 8. Similarly, Tahoma 12 in Java is the same font as Tahoma 9 in Word. Have others observed this? Can someone explain?

GD
 
LOL, zoom in a bit on the Word doc, and I reckon your 8 point will become 11 !



--------------------------------------------------
Free Database Connection Pooling Software
 
That's what's odd. Arial 8 in a Word doc (at 100% zoom) looks like what you'd expect - pretty small, but still readable. To get that same font in a JLabel, I have to set it to Arial 11. If I use Arial 8 on it, it's so small you can barely read it.

I guess what I'm asking is whether point sizes mean different things to Windows vs. Java. I'm running 1.4.1_03, BTW.

GD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top