R
Roedy Green
If you use a font that does not exist on the target machine, Java just
reverts to the default.
What you would like is something like you have in CSS or HTML where
you can specify a list of fonts in preference order.
However, Java does not directly support that.
It would be fairly easy to implement font factory that took an array
of strings for the font name argument.
If you get it going, I would be happy to post it at
http://mindprod.com/jgloss/font.html for the world to use.
Everything you need to know to implement it is at that URL.
Fame, but alas, no fortune awaits you.
(make sure you consider the problem of case sensitivity).
reverts to the default.
What you would like is something like you have in CSS or HTML where
you can specify a list of fonts in preference order.
However, Java does not directly support that.
It would be fairly easy to implement font factory that took an array
of strings for the font name argument.
If you get it going, I would be happy to post it at
http://mindprod.com/jgloss/font.html for the world to use.
Everything you need to know to implement it is at that URL.
Fame, but alas, no fortune awaits you.
(make sure you consider the problem of case sensitivity).