jGuru
Register Email     Password Forgot your
password?
HOME FAQS FORUMS DOWNLOADS ARTICLES PEERSCOPE LEARN

  Search   jGuru Search Help

Question How can I fix the error: "Font specified in font.properties not found +[--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]"?
Topics Platform:UNIX:Linux
Author Alex Chaffee PREMIUM
Created Oct 16, 2000 Modified Oct 17, 2000


Answer
You have to install the "symbol" font.

The JBuilder support FAQ has the following fix:

The font that the JVM is looking for is "symbol.ttf". This font should be available on any Windows machine. You need to get a copy of the font and copy it to the JDK fonts directory, for example "/usr/local/jdk1.2.2/jre/lib/fonts".

In the "fonts" directory there is a file named "fonts.dir" that lists the available, scalable fonts for the Sun JDK. Edit this file (you may need to be root) to include the symbol.ttf font file like:

symbol.ttf -urw-symbol-medium-r-normal--0-0-0-0-p-0-adobe-fontspecific

You may notice whitespace in the file after the other font names. Note that these are spaces and not tabs. After you have added the above line, increment the number on the first line of the file by one (to indicate the total number of fonts listed in the file).



Is this item helpful?  yes  no     Previous votes   Yes: 2  No: 0



Comments and alternative answers

Comment on this FAQ entry

Watch out for spaces in fonts.dir
Wolfgang Helbig, Aug 23, 2001
A trailing space in the inserted line in fonts.dir is a show stopper.

Is this item helpful?  yes  no     Previous votes   Yes: 0  No: 0



Reply to this answer/comment  Help  
symbol.ttf not necessary
Wolfgang Helbig, Aug 23, 2001  [replies:1]
At least on NetBSD-current with XFree86 4.1.0 appletviewer gets the symbol fonts from the X-environment. (tested with the applet "Symbol Test.") So you don't need to copy symbol.ttf into the fonts directory or change the fonts.dir file. Instead you need to delete the lines that end with "adobe-fontspecific" from the file font.properties. This avoids the error messages when starting the appletviewer.

Is this item helpful?  yes  no     Previous votes   Yes: 0  No: 0



Reply to this answer/comment  Help  
Re: symbol.ttf not necessary
java novice, Oct 14, 2001
I just commented out those lines and it seems to have taken care of the problem - no annoying messages. I have version 3.0 of the Forte from Sun on RedHat Linux 7.1.

Is this item helpful?  yes  no     Previous votes   Yes: 0  No: 0



Reply to this answer/comment  Help  
Sun's fix for this problem
Shane Dunlea, Dec 20, 2001
The installion notes for Sun's JSDK 1.3.1 for Linux lists this as a known problem for RedHat Linux versions other than 6.1 (it's the seventh entry here: http://java.sun.com/j2se/1.3/install-linux-sdk.html#problems). A link is given to a revised font.properties file that they claim will fix the problem. I haven't tried this myself yet.

Is this item helpful?  yes  no     Previous votes   Yes: 0  No: 0



Reply to this answer/comment  Help  


Ask A Question



 
Related Links

Linux FAQ

Linux Forum

The Blackdown Organization - porting Java for multiple Linux platforms

Sun's JDK1.2.2 for Linux

IBM's JDK1.3 for Linux

Kaffe - a cleanroom Java implementation

gcj - the Gnu Compiler for Java

Java Programming on Linux (book by FAQ manager)

Wish List
Features
About jGuru
Contact Us

 



The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers