Show TrueType Chinese characters in OpenGL

xiaoxiao2021-03-06  41

To display Chinese characters in OpenGL, you must use the TrueType font (TTF). The basic idea is to use the GDI function TextOut to output TTF to the temporary DC, and then saved as DDB bitmap, then convert to DIB bitmap, and finally draw with GLBITMAP.

Snapshot:

Program source code and executable (.exe) Download:

Chinesefont.rar

转载请注明原文地址:https://www.9cbs.com/read-71549.html

New Post(0)