Good.Thanks for the quick response Vincent. I can now get the demos running, at least on Windows XP.
This is the right place.I wasn't sure where I was supposed to place the "demos.properties" file, as I couldn't find an existing file with that name. I placed it in the root directory of the examples folder, at the same level where I copied the new demorunner.bat file.
Thanks!So, I am now trying out the various demos as I read through the book. (Great book btw!)
But I have run into a new problem/question with the FontAttribute example.
I can't seem to get the demo to use the custom fonts as described in the book or in the sample source code. Here are the fonts being used: ... Font scriptFont = new Font("French Script MT", Font.PLAIN, 40); Font funFont = new Font("Curlz MT", Font.PLAIN, 40); ...
But I just get regular plain boring text showing up. The first thing to point out is there are no font files with these names anywhere in the example code. In the res/fonts folder, the closest files with these names are "crl_____.ttf" and "frs_____.ttf". So I don't know if that's a problem, or if there is some logical mapping that takes the label "Curlz MT" and knows to use the "crl______.ttf" file for that font.
I have copied all the files in the res/fonts directory to just about anywhere I could find a font folder. (I started out with the jre/lib/fonts folder as the readme file instructs, but since that didn't seem to do anything,even after I rebooted the machine, I have since copied all the files to my %JAVA_HOME%\jre\lib\fonts folder as well, and that didn't make a difference.
Am I missing something simple here?
I am not sure. The instructions in the readme should work on Mac OS X as well which means that copying the fonts in <jdk_dir>/jre/lib/fonts should be enough to make the fonts visible. One thing you can do is check the list of available fonts is to run the FontLister demo in Part I, Chapter 5. Also, is there any chance you would run a different VM with the 'java' command than when you start demorunner? In that case, it might be that you copied the fonts in the wrong jre, but that is a wild guess.
Vincent.
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
