Re: Finding Glyphs for String
Re: Finding Glyphs for String
- Subject: Re: Finding Glyphs for String
- From: Andre Lipinski <email@hidden>
- Date: Tue, 27 Nov 2001 22:29:37 -0500
On Monday, November 26, 2001, at 07:55 PM, Charles Jolley wrote:
Hi everybody,
Does anyone know how to find the corresponding glyphs for characters
in a string? It appears that the mechanism used by the text system and
even ATSUI is all internal...
If you're looking for a quick bare-bones method for simple strings,
something like this works:
Enumerate through your string and check each and get a glyph:
for "" use: glyph=[font glyphWithName:@"bullet"];
for numbers and etc. use: glyph=[font glyphWithName:@"zero"];
See NSFont for more info, nevertheless a layout manager is a more
heavyweight/comprehensive solution.
Andre.