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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to