aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Font not available error on Linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Font not available error on Linux" Watch "Font not available error on Linux" New topic
Author

Font not available error on Linux

Amit Kr Kumar
Ranch Hand

Joined: Feb 08, 2002
Posts: 100
Hi Team
I am facing a strange problem on Linux Red Hat. My client GUI works perfectly fine on Windows and Solaris. However if i run it on Linux, though it runs but it also throws the following error on the prompt:
Font specified in font.properties not found
Strage thing is that i have not set any font in the GUI. I am using the default implementation of Swings.
Any solution for this ???
Amit
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
I had the same problem with Mandrake 8.1. I didn't really investigate, since my development platform was Windows 2000 Pro; I was just checking to see if everything worked on different platforms. I think the problem has to do with X Window and not swing. It's been a few years since I worked with X, but I think you'll have to physically install those fonts, otherwise X is just going to give you a system monospace font.
Hope this is helpful,
Michael Morris
SCJD2


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
John Smith
Ranch Hand

Joined: Oct 08, 2001
Posts: 2937

However if i run it on Linux, though it runs but it also throws the following error on the prompt:
Font specified in font.properties not found

I had a similar problem with fonts on Red Hat Linux, and the workaround was to replace the font.properties files as described in:
Linux Problems
Eugene.
Amit Kr Kumar
Ranch Hand

Joined: Feb 08, 2002
Posts: 100
Thanks Eugene
Amit
 
 
subject: Font not available error on Linux