|
|
| version 1.6, 2005/03/11 15:12:58 | version 1.7, 2006/12/23 12:49:22 |
|---|---|
| Line 35 void *fontmng_create(int size, UINT type | Line 35 void *fontmng_create(int size, UINT type |
| int fontwidth; | int fontwidth; |
| int fontheight; | int fontheight; |
| int weight; | int weight; |
| UINT pitch; | DWORD pitch; |
| DWORD charset; | |
| if (size < 0) { | if (size < 0) { |
| size *= -1; | size *= -1; |
| Line 105 void *fontmng_create(int size, UINT type | Line 106 void *fontmng_create(int size, UINT type |
| if (fontface == NULL) { | if (fontface == NULL) { |
| fontface = (type & FDAT_PROPORTIONAL)?deffontface2:deffontface; | fontface = (type & FDAT_PROPORTIONAL)?deffontface2:deffontface; |
| } | } |
| charset = (type & FDAT_SHIFTJIS)?SHIFTJIS_CHARSET:DEFAULT_CHARSET; | |
| ret->hfont = CreateFont(size, 0, | ret->hfont = CreateFont(size, 0, |
| FW_DONTCARE, FW_DONTCARE, weight, | FW_DONTCARE, FW_DONTCARE, weight, |
| FALSE, FALSE, FALSE, SHIFTJIS_CHARSET, | FALSE, FALSE, FALSE, charset, |
| OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, | OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, |
| NONANTIALIASED_QUALITY, pitch, fontface); | NONANTIALIASED_QUALITY, pitch, fontface); |
| ret->hfont = (HFONT)SelectObject(ret->hdcimage, ret->hfont); | ret->hfont = (HFONT)SelectObject(ret->hdcimage, ret->hfont); |