• 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: Valid glyphs in NSLayoutManager
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Valid glyphs in NSLayoutManager


  • Subject: Re: Valid glyphs in NSLayoutManager
  • From: Brock Brandenberg <email@hidden>
  • Date: Tue, 10 Sep 2002 16:05:04 -0500

> No. NSControlGlyph is the stand-in in the glyph stream for control
> characters, notably line breaks and tabs. It is not a displayable
> glyph; it is a signal to the typesetter to perform some special layout,
> such as moving to the next tab stop.

So the final result is that the following code would be an acceptable test
for a displayable glyph:

glyph = [layoutManager glyphAtIndex:i isValidIndex:&isValid];
if( isValid && ( NSNullGlyph != glyph || NSControlGlyph != glyph ) )
{
// should have something to display or retrieve geometry from
}

If it passes these tests, there should be a displayable glyph, assuming that
the font is being properly considered. Correct?

Thanks,
Brock

----- industrial design @ www.bergdesign.com ------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Valid glyphs in NSLayoutManager
      • From: Douglas Davidson <email@hidden>
References: 
 >Re: Valid glyphs in NSLayoutManager (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Learning lex/yacc (was: Book- Building cocoa applications) (Mel Walker)
  • Next by Date: Re: Valid glyphs in NSLayoutManager
  • Previous by thread: Re: Valid glyphs in NSLayoutManager
  • Next by thread: Re: Valid glyphs in NSLayoutManager
  • Index(es):
    • Date
    • Thread