Link to home
Start Free TrialLog in
Avatar of stev0931
stev0931

asked on

What fonts can I use in a Java application?

If I want my java application to run on a Windows box or a Unix box, What fonts can I use with Java such that I can be guaranteed of the font’s availability on all target operating systems?  Will Java allow me to define and use any font?  Or is there a list of fonts that I have to use with Java?  (Or per target operating system?)

Note that this will run locally on the machine - this will not be an applet or web-based program.
Avatar of sciuriware
sciuriware

I always restrict myself to Arial Times and Courier.
That's enough for me and safe.
;JOOP!
Avatar of stev0931

ASKER

This doesn't really answer my question.  I need more than 2 fonts and need to know what fonts I have to choose from.
Those were 3; for the rest ... I am sorry.

;JOOP!
Must have hit the wrong key on the board.  
ASKER CERTIFIED SOLUTION
Avatar of ksivananth
ksivananth
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Great!  Thanks!
then you can decide which font to use based on the availability!
Just a note: I cross develop between LINUX and MSWindows.
I found that equal named fonts sometimes look very different on both systems.
Further, the size might be unexpectedly different when you think texts will fit.
I have to test all my GUI stuff again and again.
I was told that all this trouble comes from the patenting of some fonts and display techniques
by Adobe. True? We surely suffer.
That's why I restricted my font choice.
;JOOP!
That helps, thanks!