How to present unicode message in OpenGL?

Exists an excellent way for presenting unicode message in opengl under Windows? As an example, when you need to manage various languages. One of the most usual strategy like

GLuint list;
list = glGenLists(FONTLISTRANGE);
wglUseFontBitmapsW(hDC, 0, FONTLISTRANGE, list);

simply will not do due to the fact that you can not create adequate checklists for all unicode personalities.

2019-05-18 21:30:03
Source Share
Answers: 2

You might need to create you possess "glyph cache" in appearance memory as you go, possibly with some type of LRU plan to stay clear of damaging every one of the appearance memory. Not virtually as very easy as your existing method, yet might be the only means offered the variety of unicode chars

2019-05-21 04:56:48

You can additionally organize the personalities by language. Load each language table as required, and also when you require to switch over languages, unload the previous language table and also load the new one.

2019-05-19 09:08:10