is glyph halfwidth or fullwidth
is glyph halfwidth or fullwidth
- Subject: is glyph halfwidth or fullwidth
- From: Simon Strandgaard <email@hidden>
- Date: Wed, 16 Mar 2005 19:42:38 +0100
I'm rendering monospaced unicode text.
I want to determine if a glyph is either halfwidth of fullwidth.
On linux I have previously used wcwidth for this, but wcwidth
on macosx seems to return either -1 or 1.
I have tried alternatives such as
NSSize size = [font advancementForGlyph:glyph];
and
NSSize size = [glyphstr sizeWithAttributes:attrs];
How can I tell if a glyph is halfwidth or fullwidth ?
--
Simon Strandgaard
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden