mirror of
https://github.com/reactos/wine.git
synced 2025-02-12 23:58:56 +00:00
gdiplus: Use Liberation Mono as a fallback for Courier New for the monospace family.
This commit is contained in:
parent
bcd793bf3b
commit
4c13e84a7c
@ -816,10 +816,20 @@ GpStatus WINGDIPAPI GdipIsStyleAvailable(GDIPCONST GpFontFamily* family,
|
||||
GpStatus WINGDIPAPI GdipGetGenericFontFamilyMonospace(GpFontFamily **nativeFamily)
|
||||
{
|
||||
static const WCHAR CourierNew[] = {'C','o','u','r','i','e','r',' ','N','e','w','\0'};
|
||||
static const WCHAR LiberationMono[] = {'L','i','b','e','r','a','t','i','o','n',' ','M','o','n','o','\0'};
|
||||
GpStatus stat;
|
||||
|
||||
if (nativeFamily == NULL) return InvalidParameter;
|
||||
|
||||
return GdipCreateFontFamilyFromName(CourierNew, NULL, nativeFamily);
|
||||
stat = GdipCreateFontFamilyFromName(CourierNew, NULL, nativeFamily);
|
||||
|
||||
if (stat == FontFamilyNotFound)
|
||||
stat = GdipCreateFontFamilyFromName(LiberationMono, NULL, nativeFamily);
|
||||
|
||||
if (stat == FontFamilyNotFound)
|
||||
ERR("Missing 'Courier New' font\n");
|
||||
|
||||
return stat;
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
|
Loading…
x
Reference in New Issue
Block a user