• 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: Hiding Glyphs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hiding Glyphs


  • Subject: Re: Hiding Glyphs
  • From: Philip White <email@hidden>
  • Date: Fri, 05 Jun 2009 17:13:54 -0600


On Jun 5, 2009, at 4:58 PM, Martin Wierschin wrote:

Is there any easy way, maybe using NSGlyphInfoAttributeName, to have a glyph not be drawn at all? Like maybe replacing it with some kind of empty glyph?

You might read this post (and Aki's followup):

	http://www.cocoabuilder.com/archive/message/cocoa/2008/3/10/200928

The link for source code still seems to be working.

Thanks Martin,
You know, that's the post I found a few months ago. Something is wrong with the linked file, of three compression program, one was able to decompress it but the result contained no source code.




I should point out that I want to hide characters in a text view that do not cause any advancement: diacriticals and such.

Since that's the case, and your text isn't editable, it might be simplest to add a color attribute that matches the background color (eg: white) to all these characters. Certainly that would be easier than messing with the typesetter.


~Martin



Your idea is cleverly simple. It just might work. It might act funny if the text is selectable though, I'll give it a try. I may also end up doing what some others have suggested and replace the marks with a zero width space. That's not ideal for my program, but it might be easiest.

Thanks everyone,
  Philip

_______________________________________________

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


  • Follow-Ups:
    • Re: Hiding Glyphs
      • From: Martin Wierschin <email@hidden>
References: 
 >Hiding Glyphs (From: Philip White <email@hidden>)
 >Re: Hiding Glyphs (From: Martin Wierschin <email@hidden>)

  • Prev by Date: Replacing a tableView Cell with null
  • Next by Date: Re: Hiding Glyphs
  • Previous by thread: Re: Hiding Glyphs
  • Next by thread: Re: Hiding Glyphs
  • Index(es):
    • Date
    • Thread