Re: Loading a TTF font
Re: Loading a TTF font
- Subject: Re: Loading a TTF font
- From: Aki Inoue <email@hidden>
- Date: Fri, 10 Oct 2003 09:53:54 -0700
John,
According to the ATS group, ATSFontActivateFromMemory() only works with
the "sfnt" format.
Since dfont is a data fork font suite case, the function doesn't work
with the format right now.
You can either extract the "sfnt" resource or use
ATSFontActivateFromFileSpecification().
They're recommending to use ATSFontActivateFromFileSpecification.
Aki
On 2003/10/09, at 22:19, John Stiles wrote:
No idea; I don't have a font panel in my app.
Everything returns a "noErr" OSStatus though.
On Thursday, October 9, 2003, at 10:10 PM, Andrew Thompson wrote:
On Thursday, Oct 9, 2003, at 18:41 America/New_York, John Stiles
wrote:
Unfortunately, I get NULL back from ATSFontGetPostScriptName when I
use Papyrus.dfont. It is the same result as ATSFontGetName.
(FrizQuadrata.ttf continues to work. It reports its name as
"FrizQuadrataTT".)
After you activate the font, it should show up in the list managed by
NSFontManager?
Or is it not added?
AndyT (lordpixel - the cat who walks through walls)
A little bigger on the inside
(see you later space cowboy ...)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.