Skip navigation
Currently Being Moderated

Access a font's unicode range

Jun 26, 2012 2:42 PM

Tags: #font #actionscript #actionscript_3.0

Hello,

 

Is it possible to access a font (local, not embeded) and fill an array with every unicode character present within the font?

 

I'm thinking in terms of this as a tool similar to how Illustrator's glyphs panel works. You select a font and get a list of all the Glyphs in the font.

 

Thanks for any help,

Cameron

 
Replies
  • Currently Being Moderated
    Jun 26, 2012 3:14 PM   in reply to cameronmcefee

    Try font.hasGlyphs.  Not sure if it works on device fonts or not.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 26, 2012 3:21 PM   in reply to cameronmcefee

    You could try capturing a bitmap of each glyph and see what is in the bitmap.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 26, 2012 11:17 PM   in reply to cameronmcefee

    Also possiblity is rendering it in a TextField and see if missing glyphs report a textWidth of 0 or some other tell-tale value.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 27, 2012 7:58 AM   in reply to cameronmcefee

    See my blog post on pseuothreading

     

    --

    Alex Harui

    Flex SDK Team

    Adobe Systems, Inc.

    http://blogs.adobe.com/aharui

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points