Multilangual Unicode rendering in opengl
- by sum1stolemyname
Hi Folks,
I have to extend an OpenGL-Rendering System to support international characters (especially Hebrew, Arabic and cyrillic).
Development Platform is Windows(XP|Vista|7), Alas using Embercardero Delphi 2010.
I currently use wglOutLineFont(...) to build my font's display list and glCallLists(length(m_Text), UNSIGNED_SHORT, PWchar(m_Text) ) to render my strings.
While this is feasable for Latin-1 Characters, building the full unicode character set in advanced is pretty time-consuming (about 8.5 minutes on my machine), so i am looking for a more efficient solution. I thought about limiting the range from u+0020 - u+077f (latin, greek, cyrillic, arbaic and hebrew) to include just the glyphs i need, but that would just be a solution for my current needs, and will become insufficent once other encoding is needed.
On the upside, i do not have to worry about left-to right or right-to left direction as our application can handle this already.
I would expect this to be a well-known problem, so i would like to ask if there is any reference material on this on the web, or if you could share some insight on this?