• Post Reply Bookmark Topic Watch Topic
  • New Topic

JDK 1.4 and tt fonts  RSS feed

 
Tom Diamond
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello people,
I have installed jdk 1.4 on a SuSE 8.0 Pro machine. I also installed my tt fonts from the win****s partition. But when I try to use these fonts from a Java program (e.g. change editor fonts in an IDE) I cannot see them. The fonts are OK in other KDE(3) apps. Any ideas? With earlier versions of the jdk, I did not have any problems.
Tnx, in advance,
Tom.
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like you haven't had any useful answers so far. I'm not sure I can help either, as GUI setup is not my strong point. I have a few questions, though, which might help us get to the answer.
Do you have JDK1.4 on the Windows partition too, and if so can it see the fonts ?
Have you ever had 'transferred' fonts like these working with a previous version of the Java SDK ?
 
Tom Diamond
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, I do not have a JDK in Windows.
As for previous versions of JDK (1.3.1) everything was just fine ... What I haven't cleared out yet is wether this is a GUI specific problem or a general one. Still working on it ...
Tom.
 
Servin Park
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tom,
Those .tt files should go into [Your JDK Directory}/jre/lib/fonts directory. In my case it was /usr/local/JBuilder6/jdk1.3.1/jre/lib/fonts. And then you may have to recreate font.scale and font.dir. Your IDE doesn't know where those fonts are if you put them in KDE specific directory. Hope it helps
 
Tom Diamond
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, that almost works (without recreating fonts.scale or fonts.dir). Actually, I tried "ttmkfdir > fonts.dir" but after that all the GUIs were messed up. So I kept the old file. Any ideas about the fonts.dir - fonts.scale matter?
Tom.
 
Servin Park
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tom,
So you can see and use those True Type Fonts int your IDE now?
I cannot explain how fonts.scale affects, but I know you have to recreate it. Try the following:
ttmkfdir -o fonts.scale
And then
mkfontdir
The first command will create and replace current fonts.scale and mkfontdir will recreate font.dir.
 
Tom Diamond
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It deems to be OK now. Thanks.
Tom.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!