gfx: fix font selection in NT 3.51
This commit is contained in:
parent
7441449908
commit
9c7cb17823
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue