Rev 11 | Rev 14 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 11 | Rev 12 | ||
|---|---|---|---|
| Line 1005... | Line 1005... | ||
| 1005 | // reallocate space to hold one font more |
1005 | // reallocate space to hold one font more |
| 1006 | fonts = (font_t *) SAFE_realloc (fonts, font_count, font_count + 1, sizeof (font_t), false); |
1006 | fonts = (font_t *) SAFE_realloc (fonts, font_count, font_count + 1, sizeof (font_t), false); |
| 1007 | 1007 | ||
| 1008 | // create a Direct3D font object and record font data |
1008 | // create a Direct3D font object and record font data |
| 1009 | if (FAILED (D3DXCreateFont (d3ddev, font_size, // font height |
1009 | if (FAILED (D3DXCreateFont (d3ddev, font_size, // font height |
| 1010 |
|
1010 | 2 * font_size / 5, // font width |
| 1011 | (is_bold ? FW_BOLD : FW_NORMAL), // font weight (bold, etc) |
1011 | (is_bold ? FW_BOLD : FW_NORMAL), // font weight (bold, etc) |
| 1012 | 0, // miplevels |
1012 | 0, // miplevels |
| 1013 | is_italic, // is italic |
1013 | is_italic, // is italic |
| 1014 | DEFAULT_CHARSET, // charset |
1014 | DEFAULT_CHARSET, // charset |
| 1015 | OUT_DEFAULT_PRECIS, // precision |
1015 | OUT_DEFAULT_PRECIS, // precision |