• 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
Fixed pitch font - glyphs sometimes drawn fixed, sometimes variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fixed pitch font - glyphs sometimes drawn fixed, sometimes variable


  • Subject: Fixed pitch font - glyphs sometimes drawn fixed, sometimes variable
  • From: Simon Liu <email@hidden>
  • Date: Tue, 8 Mar 2005 17:41:13 +0000

Hi,
Using an NSAttributedString, with a fixed pitch font (Courier New,
Size 11.0)  I am trying to display black stars and centre blocks to
simulate an iTunes style rating cell.  This works okay, except for the
case where no stars are displayed and only 5 centre blocks are
displayed.

// Case 1 --> 3 stars with 2 blocks [OK]
stringWithFormat:@"%C%C%C%C%C",0x2605, 0x2605, 0x2605, 0x25aa, 0x25aa];

// Case 2 --> 0 stars with 5 blocks [FAILS , the blocks are not
displayed in fixed width, and are bunched up]
stringWithFormat:@"%C%C%C%C%C",0x25aa, 0x25aa, 0x25aa, 0x25aa, 0x25aa];

I am not sure why Case 2 fails.  Can anybody shed some light on this?  Thanks.

Regards,
Simon
 _______________________________________________
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: Fixed pitch font - glyphs sometimes drawn fixed, sometimes variable
      • From: Douglas Davidson <email@hidden>
    • Re: Fixed pitch font - glyphs sometimes drawn fixed, sometimes variable
      • From: John Stiles <email@hidden>
  • Prev by Date: Re: Finder visibility flag
  • Next by Date: [Moderator] EOT: Re: New game on ADC Web site?
  • Previous by thread: Re: NSEnumerator retaining objects?
  • Next by thread: Re: Fixed pitch font - glyphs sometimes drawn fixed, sometimes variable
  • Index(es):
    • Date
    • Thread