mirror of
https://github.com/reactos/reactos.git
synced 2024-09-15 07:05:04 +00:00
[GDI32]
- Use default LOGFONT in EnumFontFamilies. + ~3000 gdi32:font winetests svn path=/branches/reactos-yarotows/; revision=47800
This commit is contained in:
parent
3dbb216746
commit
256a4e1060
|
@ -154,6 +154,7 @@ IntEnumFontFamilies(HDC Dc, LPLOGFONTW LogFont, PVOID EnumProc, LPARAM lParam,
|
|||
int i;
|
||||
ENUMLOGFONTEXA EnumLogFontExA;
|
||||
NEWTEXTMETRICEXA NewTextMetricExA;
|
||||
LOGFONTW lfW;
|
||||
|
||||
Info = RtlAllocateHeap(GetProcessHeap(), 0,
|
||||
INITIAL_FAMILY_COUNT * sizeof(FONTFAMILYINFO));
|
||||
|
@ -161,6 +162,15 @@ IntEnumFontFamilies(HDC Dc, LPLOGFONTW LogFont, PVOID EnumProc, LPARAM lParam,
|
|||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!LogFont)
|
||||
{
|
||||
lfW.lfCharSet = DEFAULT_CHARSET;
|
||||
lfW.lfPitchAndFamily = 0;
|
||||
lfW.lfFaceName[0] = 0;
|
||||
LogFont = &lfW;
|
||||
}
|
||||
|
||||
FontFamilyCount = NtGdiGetFontFamilyInfo(Dc, LogFont, Info, INITIAL_FAMILY_COUNT);
|
||||
if (FontFamilyCount < 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue