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

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.


References: 
 >Finding Glyphs for String (From: Charles Jolley <email@hidden>)

  • Prev by Date: NSURL/NSURLHandle and caching
  • Next by Date: finding sort arrows for NSTableView
  • Previous by thread: Re: Finding Glyphs for String
  • Next by thread: Java, NSApplication, & NSWindow
  • Index(es):
    • Date
    • Thread