Note that there are some explanatory texts on larger screens.

plurals
  1. POMultilangual Unicode rendering in opengl
    primarykey
    data
    text
    <p>I have to extend an OpenGL-Rendering system to support international characters (especially Hebrew, Arabic and cyrillic).</p> <p>Development platform is Windows(XP|Vista|7), alas using Embercardero Delphi 2010.</p> <p>I currently use wglOutLineFont(...) to build my font's display list and <code>glCallLists(length(m_Text), UNSIGNED_SHORT, PWchar(m_Text) )</code> to render my strings.</p> <p>While this is feasible for Latin-1 Characters, building the full Unicode character set in advance 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, Arabic and Hebrew) to include just the glyphs I need, but that would just be a solution for my current needs, and will become insufficient once other encoding is needed. </p> <p>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.</p> <p>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? </p> <p><strong>Edit</strong> A clarification: I use a polygonal font representations. Each Font is constructed at unit size (1.0) in advance and scaled appropriately using <code>glScalef(...)</code> before rendering. I did decide against pre-rasterizing since the users might zoom in quite closely (The application is used for CAD), so rastering artifacts would become visible. </p> <p>Additionally, since a scene seldom exceeds more then a few hundred characters (mainly labels and measurements), the speed gain from pre-rasterization is negligible.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload