I need to expand the OpenGL rendering system to support international characters (especially in Hebrew, Arabic and Cyrillic).
The development platform is Windows (XP | Vista | 7), alas, using Embercardero Delphi 2010.
I am currently using wglOutLineFont (...) to create a font display list and glCallLists(length(m_Text), UNSIGNED_SHORT, PWchar(m_Text) ) to render my lines.
Although it is possible for Latin-1 characters, building a complete Unicode character set in advance is quite time-consuming (about 8.5 minutes on my machine), so I'm looking for a more efficient solution. I was thinking of limiting the range from U + 0020 - and + 077f (Latin, Greek, Cyrillic, Arabic and Hebrew) to include only the glyphs I need, but it would just be a solution for my current needs, and it would not be enough once more coding.
On the other hand, I donβt need to worry about the direction from left to right or right-left, as our application can already handle this.
I would expect this to be a well-known issue, so I would like to ask if there is any background material on this issue on the Internet, or if you could share some insights on this issue?
Edit Explanation: I use polygonal representations of fonts. Each font is created with a block size (1.0) in advance and scaled accordingly using glScalef(...) before rendering. I decided against preliminary rasterization, since users can get much closer (the application is used for CAD), so raster artifacts become noticeable.
In addition, since the scene rarely exceeds more than a few hundred characters (mainly labels and measurements), the increase in speed from preliminary rasterization is negligible.
winapi unicode delphi opengl
sum1stolemyname
source share