• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CGContextShowTextAtPoint doesn't show text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: CGContextShowTextAtPoint doesn't show text
      • From: Graham Cox <email@hidden>
References: 
 >CGContextShowTextAtPoint doesn't show text (From: Gabriel Zachmann <email@hidden>)
 >Re: CGContextShowTextAtPoint doesn't show text (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Scanning images
  • Next by Date: Verify my Understanding
  • Previous by thread: Re: CGContextShowTextAtPoint doesn't show text
  • Next by thread: Re: CGContextShowTextAtPoint doesn't show text
  • Index(es):
    • Date
    • Thread