Article View: borland.public.jbuilder.java.swing
Article #8584Re: Font Errors
From: Yue Shi Lai
Date: Wed, 09 Aug 2000 00:00
Date: Wed, 09 Aug 2000 00:00
49 lines
2559 bytes
2559 bytes
Hi Paul, > When I move it to Mandrake Linux 7.x I get the following error when > I try to run the program: > > Font specified in font.properties not found > [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] > > No matter what I change the fonts to, in the program, I still get the > message. > > Any ideas? Fortunately, I just looked around in this group since I also have this problem with RedHat 6. This problem is very simple and I have found a solution to it: Java 2 expects a scalable font to display ZapfDingbats and Symbol typefaces. However, standard X11 Symbol fonts supplied by RedHat is pixel-based only. But you can still change the behavior of Java 2 to use the equivalent URW Type 1 fonts supplied by RedHat. You have to edit the file jdk1.2.2/jre/lib/font.properties and replace every *.2 line (this is the last line in each definition block) to use URW Standard Symbols L. For example, my first block looks like: serif.0=-b&h-lucidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1 serif.1=-b&h-lucidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1 #replace .1 font line if you have zapf fonts serif.1=-urw-dingbats-medium-r-normal--*-%d-*-*-p-*-urw-fontspecific serif.2=-urw-standard symbols l-medium-r-normal--*-%d-*-*-p-*-urw-fontspecific Same applies to other blocks. (beware that one line break may be introduced in the last line by the newsgroup reader). Since with the URW Dingbats, you also have a substitution for ZapfDingbats, you can also do the change in the respective lines and uncomment them. It is preferable to open font.properties with an editor and replace every occurence of use of Symbol to URW Standard Symbols L by search and replace. I hope that the above description should be sufficent to make it running. Regards, Yue Shi Lai Sent via Deja.com http://www.deja.com/ Before you buy.
Technical Details
Message-ID:
<8msps7$gl5$1@nnrp1.deja.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<398A5A3F.39DA8D9E@grep.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,71169d300a8b71a2 X-Google-Attributes: gid111d45,public From: Yue Shi Lai <yslai@my-deja.com> Subject: Re: Font Errors Date: 2000/08/09 Message-ID: <8msps7$gl5$1@nnrp1.deja.com> X-Deja-AN: 656381127 References: <398A5A3F.39DA8D9E@grep.net> To: Paul Whittington <paul@grep.net> X-Http-User-Agent: Mozilla/4.72 [de] (X11; U; Linux 2.2.14-5.0 i686) X-Http-Proxy: 1.0 x62.deja.com:80 (Squid/1.1.22) for client 129.70.37.81 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Wed Aug 09 23:35:35 2000 GMT X-MyDeja-Info: XMYDJUIDyslai Newsgroups: borland.public.jbuilder.java.swing