Re: -glyphWithName:

2014-08-23 Thread Holmberg Bertil
The first part of this method shows how to get the glyph from any character Works fine with non-Latin characters such as Japanese too - (UIBezierPath *)bezierPathFromChar:(NSString *)aChar inFont:(CTFontRef)aFont { // Buffers unichar chars[1]; CGGlyph glyphs[1]; // Copy the ch

Re: Autolayout wrt Cassowary

2013-10-25 Thread Holmberg Bertil
WWDC 2012 offered three good sessions on auto layout. The first one, Introduction to Auto Layout for iOS and OS X also has a link to the Cassowary article. WWDC 2013 session 406 has an update to Auto Layout in Xcode 5 which is much improved. You should watch this. Although Apple quite naturally