--- np2/win9x/fontmng.cpp 2006/12/23 12:49:22 1.7 +++ np2/win9x/fontmng.cpp 2006/12/24 00:52:29 1.9 @@ -22,7 +22,12 @@ typedef struct { static const OEMCHAR deffontface[] = OEMTEXT("£Í£Ó ¥´¥·¥Ã¥¯"); static const OEMCHAR deffontface2[] = OEMTEXT("£Í£Ó £Ð¥´¥·¥Ã¥¯"); +static const OEMCHAR edeffontface[] = OEMTEXT("MS Gothic"); +static const OEMCHAR edeffontface2[] = OEMTEXT("MS PGothic"); +static const OEMCHAR *deffont[4] = { + deffontface, deffontface2, + edeffontface, edeffontface2}; void *fontmng_create(int size, UINT type, const OEMCHAR *fontface) { @@ -35,6 +40,7 @@ void *fontmng_create(int size, UINT type int fontwidth; int fontheight; int weight; + int deffontnum; DWORD pitch; DWORD charset; @@ -104,7 +110,11 @@ void *fontmng_create(int size, UINT type weight = (type & FDAT_BOLD)?FW_BOLD:FW_REGULAR; pitch = (type & FDAT_PROPORTIONAL)?VARIABLE_PITCH:FIXED_PITCH; if (fontface == NULL) { - fontface = (type & FDAT_PROPORTIONAL)?deffontface2:deffontface; + deffontnum = (type & FDAT_PROPORTIONAL)?1:0; + if (GetOEMCP() != 932) { // !Japanese + deffontnum += 2; + } + fontface = deffont[deffontnum]; } charset = (type & FDAT_SHIFTJIS)?SHIFTJIS_CHARSET:DEFAULT_CHARSET; ret->hfont = CreateFont(size, 0,