Cocoa Typography: wrong presentation of space unicode characters
It seems that something wrong with typography system in Cocoa.
When i try to draw string over the screen with drawInRect (Helvetica):
NSString *tot = [NSString stringWithFormat:@"MMM%CMMM%CMMM MMM", 0x2002, 0x20];
all spaces between letters are the same. But first unicode character is En Space - Width of one en (half of one em).
Same spaces with ot开发者_JAVA技巧her characters, like Four-Per-Em Space Mid Space and so on.
Even tho the glyph you want to draw ('En Space U+2002') is "just a space", it still has to be available in the font you are using.
You will need a much better font than the operating system bundled Helvetica if you want En Space, Four-Per-Em Space, etc.
精彩评论