Re: CGContextShowTextAtPoint doesn't show text

2011-08-09 Thread Graham Cox
On 10/08/2011, at 2:06 AM, Gabriel Zachmann wrote: > 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? I doesn't. But it falls back gracefully, AFAIK. If you need a specific non-standard font, yo

Re: CGContextShowTextAtPoint doesn't show text

2011-08-09 Thread Gabriel Zachmann
>>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 f

Re: CGContextShowTextAtPoint doesn't show text

2011-08-09 Thread glenn andreas
On Aug 9, 2011, at 9:48 AM, Gabriel Zachmann wrote: > Thanks a lot for your response ... > >> I've found the Core Graphics text handling methods to be gnarly and awkward >> the few times I've attempted to use them, and always ended up going some >> other route to render text. > > Could you pl

Re: CGContextShowTextAtPoint doesn't show text

2011-08-09 Thread Graham Cox
On 10/08/2011, at 12:48 AM, Gabriel Zachmann wrote: > Could you please point me to a few of them? NSString, NSAttributedString, Core Text > Can CATextLayer render text with a shadow? > Like this: > CGContextSetShadowWithColor( ctxt, CGSizeMake(0,0), 10, blue ); > > I really need the shadow t

Re: CGContextShowTextAtPoint doesn't show text

2011-08-09 Thread Gabriel Zachmann
Thanks a lot for your response ... > I've found the Core Graphics text handling methods to be gnarly and awkward > the few times I've attempted to use them, and always ended up going some > other route to render text. Could you please point me to a few of them? > > In your case, the choice se

Re: CGContextShowTextAtPoint doesn't show text

2011-08-09 Thread Graham Cox
On 09/08/2011, at 10:43 PM, Gabriel Zachmann wrote: > I have checked that 'str' does actually hold a valid string at the user's > instance. (I logged it and had him send me the log file.) >CGContextSelectFont( ctxt, "AndaleMono", 14, kCGEncodingMacRoman ); // > "Andale Mono" doesn't wo

Re: CGContextShowTextAtPoint doesn't show text

2011-08-09 Thread Graham Cox
On 09/08/2011, at 10:43 PM, Gabriel Zachmann wrote: > I have checked that 'str' does actually hold a valid string at the user's > instance. (I logged it and had him send me the log file.) > I have also tried different font sizes. > I have also googled around. > All to no avail. > > > Does anyb