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
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?
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:
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
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