Cocoa Typography: wrong presentation of space unicode characters
Cocoa Typography: wrong presentation of space unicode characters
- Subject: Cocoa Typography: wrong presentation of space unicode characters
- From: Дмитрий Николаев <email@hidden>
- Date: Fri, 06 May 2011 12:54:00 +0400
Hello!
It seems that something wrong with typography system in Cocoa.
When i try to draw string over the screen with drawInRect (Helvetica):
--- code ---
NSString *tot = [NSString stringWithFormat:@"MMM%CMMM%CMMM MMM", 0x2002, 0x20];
--- code --
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 other characters, like Four-Per-Em Space Mid Space and so on.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden