• 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
Re: Invisible Characters & Specifying Their "Width"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invisible Characters & Specifying Their "Width"


  • Subject: Re: Invisible Characters & Specifying Their "Width"
  • From: Martin Wierschin <email@hidden>
  • Date: Thu, 2 Nov 2006 19:48:10 -0800

But with many invisible characters (like, all others - the null character for example), they have no width at all, so drawing a character at the location where they normally would be just draws on top of the next character.

You'll want to create an NSTypesetter subclass that overrides:

- actionForControlCharacterAtIndex:
- boundingBoxForControlGlyphAtIndex:etc:

If its idea of a control glyph is different than your own, then you'll have to look to modifying the NSGlyphGenerator.

~Martin
_______________________________________________
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: Invisible Characters & Specifying Their "Width"
      • From: Seth Willits <email@hidden>
References: 
 >Invisible Characters & Specifying Their "Width" (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: Re: Problem overriding a factory class mehtod
  • Next by Date: Re: Open my Application via safari
  • Previous by thread: Invisible Characters & Specifying Their "Width"
  • Next by thread: Re: Invisible Characters & Specifying Their "Width"
  • Index(es):
    • Date
    • Thread