Modifying font objects
Dmitry Timoshkov
dmitry at baikal.ru
Sat Feb 21 20:24:18 CST 2004
"Chris Seaton" <chris at chrisseaton.com> wrote:
> Is it possible to modify a font object's size? I want an N point version
> of the SYSTEM_FONT. I thought that perhaps I could get an instance of
> SYSTEM_FONT, and then set some attribute for the point size. That didn't
> seem to be possible so I thought that perhaps I could call CreateFont,
> using attributes from the other font object, just using my own size, but
> there doesn't seem to be anyway to get attributes like the char set from
> a font object.
LOGFONT lf;
GetObject(hFont, sizeof(LOGFONT), &lf);
//lf.lfCharSet is what you need
lf.lfHeight = 500;
hFontNew = CreateFontIndirect(&lf);
--
Dmitry.
More information about the wine-devel
mailing list