File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Linux / UNIX and the fly likes Font issue with Java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Reply Bookmark "Font issue with Java" Watch "Font issue with Java" New topic
Author

Font issue with Java

Jason Kretzer
Ranch Hand

Joined: May 31, 2001
Posts: 280
When I run the following code

I did not copy/paste the code so any mistakes are purely done during my copying not in the original code.
Anyway, when I run this I get the following message:
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-
fontspecific]

Any ideas on what I can do to stop this? The code still runs fine but the message is a little annoying.
My system info:
RedHat 7.2 with Kernel 2.4.7-10(from uname -a)
jdk1.3.1_02

Thanks,


Jason R. Kretzer<br />Software Engineer<br />System Administrator<br /><a href="http://alia.iwarp.com" target="_blank" rel="nofollow">http://alia.iwarp.com</a>
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7231

You can edit your font.properties files to exclude this value. On my system it's located on $JAVA_HOME/jre/lib/font.properties. It's likely to be different on that amusing little OS you're using but there somewhere nonetheless.


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
Frank Hale
Ranch Hand

Joined: Mar 25, 2000
Posts: 230
The Linux JDK is missing the symbol true type font, or rather it expects your system to have this font. I did a search on google based on this error and found a solution pretty easily. The solution is to add the symbol true type font to the JDK fonts dir, update the fonts.dir file and your all set.
Hope this helps you out!
Frank
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 12513

I think there was some sort of screwball license problem with putting those fonts in a default linux installation and so the JDK implementors make the decision that rather than have legitimate requests fail, they'd leave it and allow all those icky error messages to come rollong out.


One of the most odious afflictions that Business has inflicted on the modern English language is "pro-active". Most of the time it's simply redundantly used in place of the simple old word "active". And a good deal of the rest of the time it means "You're not overworked enough yet, so go out and find more!"
 
 
subject: Font issue with Java
 
Threads others viewed
about instanceof .
About Thread.
UBB-code-tag
Help Needed On IBM VAJ 3.5 WTE
[AspectJ] Adding PropertyChangeEvents
developer file tools