Re: Detect/Disable Font Fallbacks in NSLayoutManager

2008-07-15 Thread Chip Bradford
On Jul 15, 2008, at 2:13 PM, Douglas Davidson wrote: On Jul 15, 2008, at 10:54 AM, Chip Bradford wrote: What seems to be happening is the [NSString drawAtPoint:withAttributes:] method is happily performing font substitution to render the missing glyphs, and [NSLayoutManager glyphAtIndex:

Re: Detect/Disable Font Fallbacks in NSLayoutManager

2008-07-15 Thread Douglas Davidson
On Jul 15, 2008, at 10:54 AM, Chip Bradford wrote: What seems to be happening is the [NSString drawAtPoint:withAttributes:] method is happily performing font substitution to render the missing glyphs, and [NSLayoutManager glyphAtIndex:] method is giving me the glyphID in that fallback font

Detect/Disable Font Fallbacks in NSLayoutManager

2008-07-15 Thread Chip Bradford
I'm working on a program to generate bitmap font textures to use with OpenGL to render text. I have things mostly working, but I seem to run into issues when a font doesn't contain a glyph for a certain character and OS X uses a fallback font to render the glyph (at least, I believe this is