diff --git a/dll/win32/comctl32/edit.c b/dll/win32/comctl32/edit.c index e2f47d008e..dc9c63275f 100644 --- a/dll/win32/comctl32/edit.c +++ b/dll/win32/comctl32/edit.c @@ -2718,6 +2718,21 @@ static void EDIT_EM_SetMargins(EDITSTATE *es, INT action, LONG width = GdiGetCharDimensions(dc, &tm, NULL); RECT rc; +#ifdef __REACTOS__ + BOOL bPretendRaster = FALSE; + LOGFONTW lf; + if (GetObjectW(es->font, sizeof(lf), &lf)) + { + if (lstrcmpiW(lf.lfFaceName, L"MS Shell Dlg") == 0 || + lstrcmpiW(lf.lfFaceName, L"MS Sans Serif") == 0) + { + bPretendRaster = TRUE; + } + } + if (bPretendRaster) + ; + else +#endif /* The default margins are only non zero for TrueType or Vector fonts */ if (tm.tmPitchAndFamily & ( TMPF_VECTOR | TMPF_TRUETYPE )) { if (!is_cjk(tm.tmCharSet)) { diff --git a/win32ss/user/user32/controls/edit.c b/win32ss/user/user32/controls/edit.c index 70bdd1d40d..c67b77a2e0 100644 --- a/win32ss/user/user32/controls/edit.c +++ b/win32ss/user/user32/controls/edit.c @@ -2942,6 +2942,21 @@ static void EDIT_EM_SetMargins(EDITSTATE *es, INT action, LONG width = GdiGetCharDimensions(dc, &tm, NULL); RECT rc; +#ifdef __REACTOS__ + BOOL bPretendRaster = FALSE; + LOGFONTW lf; + if (GetObjectW(es->font, sizeof(lf), &lf)) + { + if (lstrcmpiW(lf.lfFaceName, L"MS Shell Dlg") == 0 || + lstrcmpiW(lf.lfFaceName, L"MS Sans Serif") == 0) + { + bPretendRaster = TRUE; + } + } + if (bPretendRaster) + ; + else +#endif /* The default margins are only non zero for TrueType or Vector fonts */ if (tm.tmPitchAndFamily & ( TMPF_VECTOR | TMPF_TRUETYPE )) { if (!is_cjk(tm.tmCharSet)) {