diff --git a/dlls/riched20/para.c b/dlls/riched20/para.c index 8380a79..f78cad3 100644 --- a/dlls/riched20/para.c +++ b/dlls/riched20/para.c @@ -52,7 +52,8 @@ void ME_MakeFirstParagraph(ME_TextEditor *editor) cf.dwEffects = CFE_AUTOCOLOR | CFE_AUTOBACKCOLOR; lstrcpyW(cf.szFaceName, lf.lfFaceName); - cf.yHeight = ME_twips2pointsY(&c, lf.lfHeight); + /* Convert system font height from logical units to twips for cf.yHeight */ + cf.yHeight = (lf.lfHeight * 72 * 1440) / (c.dpi.cy * c.dpi.cy); if (lf.lfWeight > FW_NORMAL) cf.dwEffects |= CFE_BOLD; cf.wWeight = lf.lfWeight; if (lf.lfItalic) cf.dwEffects |= CFE_ITALIC;