mirror of
https://github.com/glest/glest-source.git
synced 2025-08-28 10:19:55 +02:00
Added initial code changes to support Chinese Fonts
This commit is contained in:
@@ -193,8 +193,8 @@ void createGlFontBitmaps(uint32 &base, const string &type, int size, int width,
|
||||
if(systemFontList.size() == 0) {
|
||||
LOGFONT lf;
|
||||
//POSITION pos;
|
||||
|
||||
lf.lfCharSet = ANSI_CHARSET;
|
||||
//lf.lfCharSet = ANSI_CHARSET;
|
||||
lf.lfCharSet = (BYTE)charSet;
|
||||
lf.lfFaceName[0]='\0';
|
||||
|
||||
HDC hDC = wglGetCurrentDC();
|
||||
@@ -222,9 +222,8 @@ void createGlFontBitmaps(uint32 &base, const string &type, int size, int width,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
HFONT font= CreateFont(
|
||||
size, 0, 0, 0, width, FALSE, FALSE, FALSE, DEFAULT_CHARSET,
|
||||
size, 0, 0, 0, width, FALSE, FALSE, FALSE, charSet,
|
||||
OUT_TT_ONLY_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY,
|
||||
DEFAULT_PITCH| (useRealFontName.c_str() ? FF_DONTCARE:FF_SWISS), useRealFontName.c_str());
|
||||
|
||||
|
Reference in New Issue
Block a user