Re: Low-level text, why so hard?

2012-12-24 Thread Jeff Schriebman
On Sun, Dec 23, 2012, at 09:32 PM, Graham Cox wrote: I need to use Quartz to draw a single character - a check mark - in a graphics context. I don't need anything elaborate, no typesetting etc, I just want to draw a single checkmark. I use the following code to put an arbitrary unicode

Low-level text, why so hard?

2012-12-23 Thread Graham Cox
I need to use Quartz to draw a single character - a check mark - in a graphics context. I don't need anything elaborate, no typesetting etc, I just want to draw a single checkmark. However, Quartz seemingly makes the trivial very difficult. Why for example, does this code not work?

Re: Low-level text, why so hard?

2012-12-23 Thread Quincey Morris
On Dec 23, 2012, at 21:32 , Graham Cox graham@bigpond.com wrote: C'mon, this has got to be easy, hasn't it? Before iOS 6, the go-to cross-platform string drawing would be CoreText. For something like what you described, I'd suggest you look here:

Re: Low-level text, why so hard?

2012-12-23 Thread Jens Alfke
On Dec 23, 2012, at 9:32 PM, Graham Cox graham@bigpond.com wrote: However, Quartz seemingly makes the trivial very difficult. Why for example, does this code not work? Specifically, it returns 0 from CGFontGetGlyphWithGlyphName meaning that the glyph name is unknown. The CGText APIs

Re: Low-level text, why so hard?

2012-12-23 Thread Kyle Sluder
On Sun, Dec 23, 2012, at 09:32 PM, Graham Cox wrote: I need to use Quartz to draw a single character - a check mark - in a graphics context. I don't need anything elaborate, no typesetting etc, I just want to draw a single checkmark. By far the simplest approach here is going to be to make an