• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Cocoa Typography: wrong presentation of space unicode characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: iOS nib weirdness...
  • Next by Date: custom view for 'page setup' dialog
  • Previous by thread: Re: NSTextView and NSTextContainer size & clipping area
  • Next by thread: custom view for 'page setup' dialog
  • Index(es):
    • Date
    • Thread