gfx: fix font selection in NT 3.51

This commit is contained in:
Roy Tam 2020-02-01 13:31:09 +08:00
parent 7441449908
commit 9c7cb17823
1 changed files with 2 additions and 0 deletions

View File

@ -585,6 +585,8 @@ NS_IMETHODIMP nsDeviceContextWin :: CheckFontExistence(const nsString& aFontName
aFontName.ToCString(logFont.lfFaceName, LF_FACESIZE);
::EnumFontFamiliesEx(hdc, &logFont, (FONTENUMPROC)fontcallback, (LPARAM)&isthere, 0);
if (!isthere)
::EnumFontFamilies(hdc, logFont.lfFaceName, (FONTENUMPROC)fontcallback, (LPARAM)&isthere);
::ReleaseDC(hwnd, hdc);