[GD-Windows] CreateFont question
Brought to you by:
vexxed72
From: Brian H. <bri...@py...> - 2002-04-18 23:18:46
|
I'm using CreateFont() to make a font for high scores, statistics, etc. I'm doing a pretty vanilla call: hFont = CreateFont( -MulDiv( kiPointSize, GetDeviceCaps( hDC, LOGPIXELSY ), 72 ),// nHeight 0, // nWidth 0, // nEscapement 0, // nOrientation FW_BOLD, // fnWeight FALSE, // fdwItalic FALSE, // fdwUnderline FALSE, // fdwStrikeout OEM_CHARSET, // fdwCharSet OUT_DEFAULT_PRECIS, // fdwOutputPrecision CLIP_DEFAULT_PRECIS, // fdwClipPrecision DEFAULT_QUALITY, // fdwQuality FF_MODERN | FIXED_PITCH, // fdwPitchAndFamily NULL ); // typeface name The problem is that on systems where the user has selected "Big Fonts", I always get vastly oversized fonts that don't fit in my various text boxes. Anyone have suggestions on what to do in such cases? The obvious alternative is to do my own font handling, but for various reasons I'd prefer to avoid that (specifically, internationalization issues). Brian |