Thanks for the quick response Vincent. I can now get the demos running, at
least on Windows XP.

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.

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?

Thanks!

Rob

----- Original Message -----
From: "Vincent Hardy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 05, 2004 11:37 PM
Subject: Re: [JAVA2D] Java 2D Api Graphics by Vincent Hardy


> Hi Rob,
>
> The following should fix your problem on XP.
>

===========================================================================
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".

Reply via email to