dwrite: Ignore fonts with dot-prefixed names.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
778faedbae
commit
3fa7ff671c
|
@ -3593,6 +3593,14 @@ HRESULT create_font_collection(IDWriteFactory3 *factory, IDWriteFontFileEnumerat
|
||||||
|
|
||||||
fontstrings_get_en_string(family_name, familyW, sizeof(familyW)/sizeof(WCHAR));
|
fontstrings_get_en_string(family_name, familyW, sizeof(familyW)/sizeof(WCHAR));
|
||||||
|
|
||||||
|
/* ignore dot named faces */
|
||||||
|
if (familyW[0] == '.') {
|
||||||
|
WARN("Ignoring face %s\n", debugstr_w(familyW));
|
||||||
|
IDWriteLocalizedStrings_Release(family_name);
|
||||||
|
release_font_data(font_data);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
index = collection_find_family(collection, familyW);
|
index = collection_find_family(collection, familyW);
|
||||||
if (index != ~0u)
|
if (index != ~0u)
|
||||||
hr = fontfamily_add_font(collection->family_data[index], font_data);
|
hr = fontfamily_add_font(collection->family_data[index], font_data);
|
||||||
|
|
Loading…
Reference in New Issue