Re: CGContextShowTextAtPoint doesn't show text
Re: CGContextShowTextAtPoint doesn't show text
- Subject: Re: CGContextShowTextAtPoint doesn't show text
- From: Gabriel Zachmann <email@hidden>
- Date: Tue, 09 Aug 2011 18:06:48 +0200
>> 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 (email@hidden)
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:
This email sent to email@hidden