> -----Original Message-----
> From: J.Pietschmann [mailto:[EMAIL PROTECTED]
>

Hi,

> [EMAIL PROTECTED] wrote:
> > step 2. + 3. are quite simple AFAICS, but step 1. is more tricky - is
> > there any way to obtain this information from AWT or somewhere else ????
>
> No, the AWT doesn't provide an interface to get the font directory
> or for resolving a font name into a file.
>
> You can search some standard directories (C:/Windows/fonts,
> /usr/X11R6/fonts etc.), which is not very robust. Unfortunately,
> Java deprecated access to environment variables...

Deprecated? Well, it's a bit confusing: in 1.4.2 indeed they are. I don't
get that impression when browsing through the 1.5 API docs though...
System.getenv($varname) is a non-deprecated method call (and in 1.5 Sun has
even added a variant without parameter, which returns a generic
String-String Map containing all defined environment vars).
One can only wonder what their intention was...

Anyway, it seems Mikael can use System.getenv(...) without concern.


Greetz,

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to