>>        CGContextSelectFont( ctxt, "AndaleMono", 14, kCGEncodingMacRoman ); 
>> // "Andale Mono" doesn't work either
> 
> Perhaps he doesn't have "Andale Mono" on his machine? I'm not sure what CG 
> does with text if the font isn't there, does it fall back to something else 
> or just silently fail?
> I think the way your code assumes this font is going to be there is a bit 
> flaky.

I didn't find an easy way to check whether a font is installed - do you know 
how to do it?

> But anyway, CATextLayer takes all this pain away for you.

Just checked the doc of CATextLayer but couldn't find a hint on how it helps me 
determine whether or not a font is installed ... can you tell me?

Best regards,
Gabriel.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to