Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Open type font "Myriad Pro" support in Java AWT

843807Mar 16 2009 — edited Mar 16 2009
Hi

I have installed open type font "Myriad Pro" on my machine.

When I use the following AWT APIs on jre 1.6, I dont get the open type font "Myriad Pro" in the font list.

Code snippet
--------------
java.awt.GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
if (ge != null) {
java.awt.Font[] fontList = ge.getAllFonts();

}

The fontList variable doesnt have "Myriad Pro" font.

My question is

1) Is the open type font "Myriad Pro" supported by java AWT?
2) Is there a workaround to get that particular font?


Thanks
Vikas
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 13 2009
Added on Mar 16 2009
1 comment
370 views