25th October 23:46
Using Java Web Start to ensure fonts are available
I would like my Java application to take advantage of a particular
Lucida font that comes with the JRE: LucidaTypewriterRegular.ttf. Let's
assume for the sake of this thread that it is a REQUIREMENT that I use
Unfortunately, the following reference:
indicates that, although Lucida fonts are installed as part of the JRE,
there is no guarantee regarding which ones will be installed. So, I
can't assume that LucidaTypewriterRegular.ttf will be there.
It seems one solution is just to package the JRE with my application,
but this bloats my download since I must include the entire JRE. Since
these fonts are listed in the license as SDK components that I am
allowed to add, this approach would allow me to bundle in this font for
JRE's that do not provide it by default.
I was hoping a better solution might be to use Java Web Start, and
somehow detect if this font was not available on the user's system, and
if so, to make it available. Does this violate the licensing agreement?
If not, is it technically possible via JWS, or perhaps some other