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

Accented letters?

Posted by Javier Ruiz on Feb 1, 2007

Hola/Hello

Is there a way to use accented (diacritic?) letters with Nodebox? I am trying to redo some of my poetry with it but I can not get the accented vowels on screen.

Thanks for this wonderful tool!

Javier Ruiz,
Tenerife, Spain



Posted by Tom De Smedt on Feb 1, 2007

Accents are always a bit difficult, but normally you should be able to use them in NodeBox by prepending a string of characters by a "u":

str = u"ā ä ǟ ḑ ē ī ļ ņ ō ȯ ȱ õ ȭ ŗ š ț ū ž"
text(str, 50, 50)


The "u" stands for Unicode. Naturally, you need to draw your text on the canvas in a font that supports unicode characters. Most large font families like Times and Helvetica support unicode, but smaller fonts might not.

Hope that helps!



Posted by Javier Ruiz on Feb 2, 2007

Dear Tom,

Thanks for your fast reply and yep! It worked nicely.

Many thanks.

Javier Ruiz