We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › Unicode Font / Non-latin characters in OpenGL
Page Index Toggle Pages: 1
Unicode Font / Non-latin characters in OpenGL (Read 444 times)
Unicode Font / Non-latin characters in OpenGL
Oct 7th, 2008, 9:25pm
 
Hey folks,

I'm trying to display characters of any language that exists on this world (Chinese, Hebrew, Arabic, ...). I decided to implement it with the OpenGL renderer.

So here's the problem: within JAVA2D you can display any character of for example the Arial Unicode font:
createFont( "Arial Unicode", 48 );

This works fine, but when using OpenGL the non-latin characters won't be displayed.

I tried geomerative (http://www.ricardmarxer.com/geomerative/). This renders some fonts, but performs very badly and crashes with the big Arial Unicode font. I tried drawing directly in GL and JAVA2D-off-screen-rendering (creates a background on each letter). None of them worked Sad

Has anybody some tips that could solve this problem? Anything that works and runs well Smiley

Merci!
Re: Unicode Font / Non-latin characters in OpenGL
Reply #1 - Oct 8th, 2008, 9:28pm
 
Or is there a way to use the com.sun.opengl.util.j2d.TextRenderer within Processing? It seems to work in pure JOGL.

http://download.java.net/media/jogl/builds/nightly/javadoc_public/com/sun/opengl/util/j2d/TextRenderer.html
Page Index Toggle Pages: 1