if you are using jdk1.2 or above, the Toolkit operation of selecting fonts
are deprecated.
you can use the following code to ask the system
Font fonts[] =
java.awt.GraphicsEnvironment().getLocalGraphicsEnvironment().getAllFonts();
notice that also you can see that your special font is available, you might
have to add a reference
to your font in your font.properties file
/Lars Hansen.
"Jacob Møller" <jacob@jvector.dk> wrote in message
news:9hucp6$20cc$1@news.cybercity.dk...
>
> "somez72" <somez72@chollian.net> wrote in message
> news:9hti6t$ii1$1@news1.kornet.net...
> > Hi,all
> >
> > to get fonts available in a system,how can I do?
> > what function can I use to get font set in Java?
> >
>
> Look in java.awt.Toolkit for:
>
> getFontList()
>
> -Jacob
>
www.kiloo.dk
>
>
>