Bitmap for two byte fonts

I want to desplay 2 byte fonts like Japanese
by using OpenGL.

Is there anyone who knows how should I ?

Are there libraries for 2 byte fonts
like “wglUseFontBitmaps” ?
or is there anyone who can explain me
what “wglUseFontBitmaps” does ?

It’s all in the help files.

BOOL wglUseFontBitmaps(
HDC hdc, // device context whose font will be used
DWORD first, // glyph that is the first of a run of glyphs to
// be turned into bitmap display lists
DWORD count, // number of glyphs to turn into bitmap display
// lists
DWORD listBase // specifies starting display list
);

I found nothing what speaks against using 2 byte chars.
Parameters for ‘first’ and ‘count’ are big enough for unicode and the glCallLists() call for drawing the bitmaps can be called with GL_UNSIGNED_SHORT and an appropriate array pointer containing the symbols.

Select you font for the current HDC and give it a try.

Thank you !
I’ll try it.

Hi there,
I was just trawling the archive to see if anyone has come across this before. I need to support Japanese text in a OpenGL window. Did you manage to handle this successfully?
Matthew

Originally posted by Gune:
[b]I want to desplay 2 byte fonts like Japanese
by using OpenGL.

Is there anyone who knows how should I ?

Are there libraries for 2 byte fonts
like “wglUseFontBitmaps” ?
or is there anyone who can explain me
what “wglUseFontBitmaps” does ?

[/b]