(Answer) (Category) FAQ-O-Matic : (Category) Linux- and Solaris-specific :
What does "Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] " mean?
Both Sun's JVMs on both Solaris and Linux suffer from an incredibly braindead implementation of platform font support.

Here are some links to previous discussions:

http://www.mers.com/MERLIST/BORLAND/PUBLIC/JBUILDER/LINUX/1885.HTML http://www.mers.com/MERLIST/BORLAND/PUBLIC/JBUILDER/IDE/22805.HTML http://www.mers.com/MERLIST/BORLAND/PUBLIC/INSTALL/JBUILDER/1708.HTML http://www.mers.com/MERLIST/BORLAND/PUBLIC/JBUILDER/LINUX/1545.HTML

This may be of interest even though it's discussing Windows fonts:
http://www.multilingual.com/FMPro?-db=a&-token=now&-format=default.htm&-view

2001-Jan-22 7:47pm gyles19@visi.com

"Heiko Gottschling" wrote in message
news:93pmkb$i3p$02$1@news.t-online.com...

Hi,

here's what I did to deal with these positively putrefactive looks (as
someone else recently put it :-)) of the standard fonts. With this
configuration, JBuilder uses Microsoft Verdana as sans-serif font and
Courier New as fixed-width font - looks really great. Use at your own risk,
especially if you are unsure about license issues... Note that I only got
this to work with IBM's JDK (the one which comes bundled with JBuilder), it
seems not to work with Sun's.

1. I use XFree86 4.0 with its built-in support for true type fonts

2. Go to the fonts directory of JBuilder
(/opt/jbuilder4/jdk1.3/jre/lib/fonts) and type 'rm *'

3. Copy all (truetype!) fonts you want to use into that directory. Make
sure that your choice includes each a fixed-width, sans-serif and serif
font. (I used Courier New, Verdana, Times New Roman from the windows
directory, however there are plenty free truetype fonts if you don't want
to use these). Also, make sure to include the different 'makes' of a font,
like plain, italic, bold and bold italic (=4 files per font)

4. In the fonts directory, type 'ttmkfdir > fonts.dir'

5. Edit your font.properties file in /opt/jbuilder4/jdk1.3/jre/lib. I will
paste mine below, as said before it uses Times New Roman, Courier New and
Verdana, modify it to suit your needs. It will probably appear garbled, so
you might need to manually adjust some lines, but you'll figure out how to
do this :-) Valid entries are all those found in the fonts/fonts.dir file,
generated in step 4.

That's it, have fun
Heiko

--------------- font.properties ----------------

serif.0=-monotype-Times New Roman-medium-r-normal--*-%d-*-*-p-*-iso8859-1
serif.italic.0=-monotype-Times New Roman-medium-i-normal--*-%d-*-*-p-*-iso8859-1
serif.bold.0=-monotype-Times New Roman-bold-r-normal--*-%d-*-*-p-*-iso8859-1
serif.bolditalic.0=-monotype-Times New Roman-bold-i-normal--*-%d-*-*-p-*-iso8859-1
sansserif.0=-microsoft-Verdana-medium-r-normal--*-%d-*-*-p-*-iso8859-1
sansserif.italic.0=sansserif.0=-microsoft-Verdana-medium-i-normal--*-%d-*-*-p-*-iso8859-1
sansserif.bold.0=-microsoft-Verdana-bold-r-normal--*-%d-*-*-p-*-iso8859-1
sansserif.bolditalic.0=-microsoft-Verdana-bold-i-normal--*-%d-*-*-p-*-iso8859-1

monospaced.0=-monotype-courier new-medium-r-normal--*-%d-*-*-m-*-iso8859-1
monospaced.italic.0=-monotype-courier new-medium-i-normal--*-%d-*-*-m-*-iso8859-1
monospaced.bold.0=-monotype-courier new-bold-r-normal--*-%d-*-*-m-*-iso8859-1
monospaced.bolditalic.0=-monotype-courier new-bold-i-normal--*-%d-*-*-m-*-iso8859-1

dialog.0=-microsoft-Verdana-medium-r-normal--*-%d-*-*-p-*-iso8859-1
dialog.italic.0=-microsoft-Verdana-medium-i-normal--*-%d-*-*-p-*-iso8859-1
dialog.bold.0=-microsoft-Verdana-bold-r-normal--*-%d-*-*-p-*-iso8859-1
dialog.bolditalic.0=-microsoft-Verdana-bold-i-normal--*-%d-*-*-p-*-iso8859-1
dialoginput.0=-monotype-courier new-medium-r-normal--*-%d-*-*-m-*-iso8859-1
dialoginput.italic.0=-monotype-courier new-medium-i-normal--*-%d-*-*-m-*-iso8859-1
dialoginput.bold.0=-monotype-courier new-bold-r-normal--*-%d-*-*-m-*-iso8859-1
dialoginput.bolditalic.0=-monotype-courier new-bold-i-normal--*-%d-*-*-m-*-iso8859-1

alias.dialoginput=monospaced

# default char definition
default.char=02ff


fontcharset.serif.0=sun.io.CharToByteISO8859_1
fontcharset.serif.italic.0=sun.io.CharToByteISO8859_1
fontcharset.serif.bold.0=sun.io.CharToByteISO8859_1
fontcharset.serif.bolditalic.0=sun.io.CharToByteISO8859_1

fontcharset.sansserif.0=sun.io.CharToByteISO8859_1
fontcharset.sansserif.italic.0=sun.io.CharToByteISO8859_1
fontcharset.sansserif.bold.0=sun.io.CharToByteISO8859_1
fontcharset.sansserif.bolditalic.0=sun.io.CharToByteISO8859_1

fontcharset.monospaced.0=sun.io.CharToByteISO8859_1
fontcharset.monospaced.italic.0=sun.io.CharToByteISO8859_1
fontcharset.monospaced.bold.0=sun.io.CharToByteISO8859_1
fontcharset.monospaced.bolditalic.0=sun.io.CharToByteISO8859_1

fontcharset.dialog.0=sun.io.CharToByteISO8859_1
fontcharset.dialog.italic.0=sun.io.CharToByteISO8859_1
fontcharset.dialog.bold.0=sun.io.CharToByteISO8859_1
fontcharset.dialog.bolditalic.0=sun.io.CharToByteISO8859_1

fontcharset.dialoginput.0=sun.io.CharToByteISO8859_1
fontcharset.dialoginput.italic.0=sun.io.CharToByteISO8859_1
fontcharset.dialoginput.bold.0=sun.io.CharToByteISO8859_1
fontcharset.dialoginput.bolditalic.0=sun.io.CharToByteISO8859_1

2001-Jan-31 4:24pm gyles19@visi.com
From: "Gerald D. Anderson"

Hello all,

  Well, after playing and playing, and trashing my JB install a couple times, I have
found a way to do this.  The platform I used was RH7.0 (on i386/fully updated), using
the Ximian (gnome-helix) desktop (shouldn't matter though), and JBuilder 4 Pro.  I'll
try to give you a step x step idea of what I did to get this to work for me.  The
disclaimer for this would be that. . .it seems to be working for me so far, I'm not
seeing any instability, the fonts seem to scale fine, and they display and act
correctly.  However,  if you do display the little margin in the editor, that seems
to break, sort of, and while taking the many paths and spending many hours just
playing, I've trashed my JB environment a couple times.   So, if you are NOT
comfortable re-installing JB, or you're NOT comfortable using the utilities, editing
files, etc.  Do not try this.  I think it'll work for everybody, but absolutely no
guarantees.

Through out the document I use the directories that I installed stuff in, it may not
be the same for you, so pay attention and put your correct dirs in.

That being said, here goes. . .

1)  Move your ttf into your linux fs, I personally copied them into /usr/local/fonts
2) Make xfs (X Font Server) aware of the dir, and create a fonts.dir file for xfs
        # chkfontpath --add /usr/local/fonts
        # chkfontpath --list  [make sure your dir is listed]
        # ttmkfdir -d /usr/local/fonts  >> /usr/local/fonts/fonts.dir
                [will create a fonts.dir file for you, leave off append stuff to see
on stdout]
3)  Move these files to the java environment  [ # cp -arv /usr/local/fonts/*ttf
/usr/jbuilder4/jdk1.3/jre/lib/fonts/]  (do not overwrite fonts.dir)
4)  Append the fonts dir  [# cat /usr/local/fonts.dir >>
/usr/jbuilder4/jdk1.3/jre/lib/fonts/fonts.dir]
5)  Start up JBuilder and go to Tools/Editor Options/Display pane, when you get
there, you should see jbuilder suck in the new fonts.  Also, DO change your font here
to anything else
6)  Shutdown jbuilder
7)  examine the file ~username/.jbuilder4/user.properties, go down a bit and you
should see . . .
        a) a section of fixed_fonts
        then
        b) a section of known_fonts that contain your new fonts
        you can see an example of this at the bottom of this doc
8)  Make the fonts you want available in JBuilder editor into fixed_fonts, so say
I have
        editor.display;known_fonts.2=Century Schoolbook L
        And I want to make Century Schoolbook L a fixed font, I'd add
        editor.display;fixed_fonts.xx=Century Schoolbook L  [Where xx is the next
consecutive number in fixed_fonts, watch the sorting on this, it does 1, 10, 11, 12.
. .19, 2, 20 , 21. . .]
        I didn't remove the known_font entry for the fonts I used, so don't worry
about deleting the known entry, if you do RENUMBER THEM to keep 'em consecutive!!
9)  Once this is done, if you followed these directions, and IF it happens to work
for others you should be able to start jb and see the new fonts
        in the Tools/Editor Options/Display panel/ Font Family drop down.  They
should be perfectly usable at this point.

10)  I've noticed that SOME fonts will still cause Havoc, most "standardish" fonts
seem to be fine, I'm using MS Sans Serif, Arial, and MS Comic Sans without any
problem,
         I'd avoid any real weird fonts, laraeable fonts, etc.  But play, if you're
willing to risk it.

11)  Below is an annotated partial copy of my user.properties file so you can see the
changes in action, all comments in brackets [ ]  are mine and don't belong in the
file. . .

editor.display;fixed_fonts.1=Courier
editor.display;fixed_fonts.10=Lucida Console
editor.display;fixed_fonts.11=Marlett
editor.display;fixed_fonts.12=sshlinedraw
editor.display;fixed_fonts.13=Webdings
editor.display;fixed_fonts.14=Arial  [I added this, 13 was the last standard
fixed_font]
editor.display;fixed_fonts.15=Arial Narrow  [and this]
editor.display;fixed_fonts.16=Arial Black [same]
editor.display;fixed_fonts.17=Comic Sans MS  [same
editor.display;fixed_fonts.18=Microsoft Sans Serif [same]
editor.display;fixed_fonts.2=Courier 10 Pitch  [Notice the sorting on the numbers
here, careful of that]
editor.display;fixed_fonts.3=CourierThai
editor.display;fixed_fonts.4=DialogInput
editor.display;fixed_fonts.5=Lucida Sans Typewriter
editor.display;fixed_fonts.6=LuciduxMono
editor.display;fixed_fonts.7=Monospaced
editor.display;fixed_fonts.8=Nimbus Mono L
editor.display;fixed_fonts.9=Courier New
editor.display;font_family=Comic Sans MS  [This property is the name of the font
currently used, there's also editor.display;font_size=xx, if you change the size]
editor.display;known_fonts.1=Bitstream Charter  [All of these are the newly installed
ttf fonts, it's a long list, so I only pasted a few of them here, you should have the
idea by now]
editor.display;known_fonts.10=DialogInput
editor.display;known_fonts.11=Dingbats
editor.display;known_fonts.12=Lucida Bright
editor.display;known_fonts.13=Lucida Sans
editor.display;known_fonts.14=Lucida Sans Typewriter
editor.display;known_fonts.15=LuciduxMono
editor.display;known_fonts.16=LuciduxSans
editor.display;known_fonts.17=LuciduxSerif
editor.display;known_fonts.18=Monospaced
editor.display;known_fonts.19=Nimbus Mono L
editor.display;known_fonts.2=Century Schoolbook L
editor.display;known_fonts.20=Nimbus Roman No9 L
editor.display;known_fonts.21=Nimbus Sans L
editor.display;known_fonts.22=SansSerif
editor.display;known_fonts.23=Serif
editor.display;known_fonts.24=Standard Symbols L
editor.display;known_fonts.25=Thonburi
editor.display;known_fonts.26=URW Bookman L
editor.display;known_fonts.27=URW Chancery L
editor.display;known_fonts.28=URW Gothic L
editor.display;known_fonts.29=URW Palladio L


Well, that's my speil, it's not pretty, and there are risks involved, be especially
careful that you don't move any "weird" fonts to fixed_fonts, it can screw your jb
install.  Also, all of the known_fonts WILL show up in your printer font selection,
I think that's the only reason it really stores them, but who knows. . .

I really do hope this works for you guys, the default JVM fonts for linux/X are
completely unusable as a regular dev platform, this helps out tremendiously
(IMnsHO), I'd love to hear
about success and failures if anybody else tries this, if you fail, try to get as
much information as possible, I'd like to get this tight enough that perhaps Borland
will stick it on their
support site somewhere so our future brethren don't have to deal with this as we
have.  Though I will accept personal email, try to keep everything on the newsgroup
so others
can benefit, especially if you have problems!
2001-Jan-31 5:02pm gyles19@visi.com
Cynthia Jeness writes:


I installed j2sdk1.3.0 from Sun, but had a very similar error message.  In
order to fix this, I changed  the various symbol lines in the
font.properties file like this;


FROM:

  --symbol-medium-r-normal--*-%d-*-*p-*-adobe-fontspecific


TO:

  -urw-symbol-medium-r-normal--*-%d-*-*p-*-urw-fontspecific


This change was made based on examining the fonts that I actually have
available on my system which is a stock RedHat 7.0 plus necessry patches.
So basically, you need to make the font.properties match what you actually
have avaialble.
2001-Mar-29 7:39pm gyles19@visi.com
Blackdown has some information about Java Linux font handling and TrueType support in X11:


  http://www.blackdown.org/java-linux/docs/support/faq-release/FAQ-java-linux-6.html#ss6.4
2001-Jun-08 2:11pm gyles19@visi.com
[Append to This Answer]
2001-Jun-08 2:11pm
Previous: (Answer) Sun JDK 1.3 screws up non-English keyboards?
Next: (Answer) "Warning: Cannot convert string "Home,_Key_Begin" to type VirtualBinding"
This document is: http://www.visi.com/~gyles19/cgi-bin/fom.cgi?file=69
[Search] [Appearance]
This is a Faq-O-Matic 2.709.
This FAQ administered by gyles19@visi.com.

Other JBuilder Links

Java Community
Java Tools
Code Central
JB OpenTools
Community
Recent
Threads
Borland Chat
Chat FAQ
Feature Matrices
3.0 |  3.5 |  4.0
5.0 |  6.0 |  7.0
Shop for
JBuilder
JBuilder
Downloads
and reg keys
Report Piracy
Online Manuals
4.0 |  5.0 |  6.0
7.0
Borland
DevSupport's
Bug/RFE Form

Quality Central Client
JB Patches &
Updates
JBuilder FAQs TIs
JBuilder
Newsgroups
Tamaracka's
News Archive
Mr. Haki's
JBuilder Machine
JGuru's
JBuilder FAQ
Sun's Bug
Parade
Netring Home - About - Privacy
The
JBuilder Netring Logo
The Borland JBuilder Netring by JBuilder FAQ-O-Matic
[ Join Now | List Sites | Random | << Prev | Next >> ]
[ Previous 5 Sites | Skip Previous | Skip Next | Next 5 Sites ]