• 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
is glyph halfwidth or fullwidth
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: is glyph halfwidth or fullwidth
      • From: John Stiles <email@hidden>
  • Prev by Date: Finding number of processors
  • Next by Date: Re: Finding number of processors
  • Previous by thread: Re: Finding number of processors
  • Next by thread: Re: is glyph halfwidth or fullwidth
  • Index(es):
    • Date
    • Thread