Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: How to specify font-path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to specify font-path



I very recently wrote:

>>I understand that I want to instantiate a Font object, what I'm not clear on
>>is how I specify that:
>>
>> Font thatFont = new Font ("MyFont", Font.PLAIN, 12);
>>
>>should look for "MyFont" in the app's .jar file (or a separate one, I'm not
>>that way), rather than in the system font path.
>
>AFAIK, Java does not offer that capability. Fonts and font-management are
>platform-dependent.

What *WAS* I thinking.

See Font.createFont(). It exists since 1.3.

-- GG
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.