Commit eec01270 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

wineps: Use only TrueType fonts in print processor.

parent 857b25e5
......@@ -185,8 +185,21 @@ static BOOL CDECL font_GetTextMetrics(PHYSDEV dev, TEXTMETRICW *metrics)
static HFONT CDECL font_SelectFont(PHYSDEV dev, HFONT hfont, UINT *aa_flags)
{
HFONT tt_font, old_font;
LOGFONTW lf;
*aa_flags = GGO_BITMAP;
return SelectObject(dev->hdc, hfont) ? hfont : 0;
if (!GetObjectW(hfont, sizeof(lf), &lf))
return 0;
lf.lfOutPrecision = OUT_TT_ONLY_PRECIS;
tt_font = CreateFontIndirectW(&lf);
if (!tt_font)
return 0;
old_font = SelectObject(dev->hdc, tt_font);
DeleteObject(tt_font);
return old_font ? hfont : 0;
}
static const struct gdi_dc_funcs font_funcs =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment