On 1/25/05 10:07 AM, "Leos Stybnar" <email@hidden> wrote:
> I am using FMActivateFonts() to activate fonts that are placed outside
> system Fonts folder (user chooses them). It works fine for everything
> except for Postscript Type 1 fonts. The fonts are typically placed in
> two or more files (e.g., Kino and KinoMT) and calling FMActivateFonts()
> for any of them does not work (it returns noErr but font family
> iterator does not change number of iterations).
I usually call ATSFontActivateFromFileSpecification instead of
FMActivateFonts; have you tried that, just out of curiosity? Also, the file
that ATSFontActivateFromFileSpecification expects is the suitcase (of
resource type 'FFIL' if you're on an HFS+ volume); it will find the related
Type 1 files and AFM files (if any) automatically, as long as they're in the
same folder.
Once you have the activated container you can get all the ATSFontRefs from
it using the ATSFontFindFromContainer call.
Dave Opstad
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden