1. NodeBox 1
    1. Homepage
    2. NodeBox 3Node-based app for generative design and data visualization
    3. NodeBox OpenGLHardware-accelerated cross-platform graphics library
    4. NodeBox 1Generate 2D visuals using Python code (Mac OS X only)
  2. Gallery
  3. Documentation
  4. Forum
  5. Blog

font repertoire

Posted by alexander on Nov 30, 2008

hello everyone,

i'm searching for a way to give out all the characters of a font.
is there something like a function to do that?

kind regards and thanks,

alexander


 
Posted by Josh Caswell on Dec 13, 2008

Check out the NodeBox PyObjC tutorial, and Apple's AppKit docs.
The NB tutorial shows how you can get access to NSFontManager, which can give you an NSFont object for whichever font you like. An NSFont instance has a method called -coveredCharacterSet which may give you the information you need.
Hope that points you in the right direction!



Posted by alexander on Dec 15, 2008

Hey josh,

thank you very much! you pointed me in the right direction