dwrite: Use system default locale when filling LOGFONT.lfFaceName.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
547d9491af
commit
bf23b8a529
|
@ -1645,7 +1645,7 @@ HRESULT opentype_get_font_facename(struct file_stream_desc *stream_desc, WCHAR *
|
|||
BOOL exists;
|
||||
|
||||
exists = FALSE;
|
||||
if (GetUserDefaultLocaleName(localeW, sizeof(localeW)/sizeof(WCHAR)))
|
||||
if (GetSystemDefaultLocaleName(localeW, sizeof(localeW)/sizeof(WCHAR)))
|
||||
IDWriteLocalizedStrings_FindLocaleName(lfnames, localeW, &index, &exists);
|
||||
|
||||
if (!exists)
|
||||
|
|
|
@ -3544,7 +3544,7 @@ static void get_logfont_from_font(IDWriteFont *font, LOGFONTW *logfont)
|
|||
|
||||
/* Fallback to en-us if there's no string for user locale. */
|
||||
exists = FALSE;
|
||||
if (GetUserDefaultLocaleName(localeW, sizeof(localeW)/sizeof(WCHAR)))
|
||||
if (GetSystemDefaultLocaleName(localeW, sizeof(localeW)/sizeof(WCHAR)))
|
||||
IDWriteLocalizedStrings_FindLocaleName(names, localeW, &index, &exists);
|
||||
|
||||
if (!exists)
|
||||
|
|
|
@ -915,6 +915,7 @@ WINBASEAPI BOOL WINAPI GetStringTypeExA(LCID,DWORD,LPCSTR,INT,LPWORD);
|
|||
WINBASEAPI BOOL WINAPI GetStringTypeExW(LCID,DWORD,LPCWSTR,INT,LPWORD);
|
||||
#define GetStringTypeEx WINELIB_NAME_AW(GetStringTypeEx)
|
||||
WINBASEAPI LANGID WINAPI GetSystemDefaultLangID(void);
|
||||
WINBASEAPI INT WINAPI GetSystemDefaultLocaleName(LPWSTR,int);
|
||||
WINBASEAPI LCID WINAPI GetSystemDefaultLCID(void);
|
||||
WINBASEAPI LANGID WINAPI GetSystemDefaultUILanguage(void);
|
||||
WINBASEAPI BOOL WINAPI GetSystemPreferredUILanguages(DWORD,ULONG*,WCHAR*,ULONG*);
|
||||
|
|
Loading…
Reference in New Issue