How to use helvetica in Java?

Helvetica is available in one form or another on windows, Mac OS X, and Linux Under windows, I can see it from Microsoft Word On both UNIX platforms, I can use xlsfonts | to find it grep - I Helvetica; The name seems to be Adobe helvetica

But JDK can't find it! It is not from graphicsenvironment As listed in getallfonts(), it will not appear when I call new font ("Helvetica",...) [use multiple name variants, such as "Adobe Helvetica"]; Instead, I default to the "dialog" font, which seems to be named after anything I've ever used

This font is now available for each relevant Java target platform How do I use it in Java?

Solution

I realized that this didn't actually answer the question, but

On windows, helvetica.com is not always installed My machine is working (the one I use now) no, despite Microsoft Office XP

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>