gdi32: Initialize font signature of "System" font link.
This commit is contained in:
parent
7249cd4a90
commit
4dc04ae867
|
@ -2212,6 +2212,7 @@ skip_internal:
|
||||||
system_font_link = HeapAlloc(GetProcessHeap(), 0, sizeof(*system_font_link));
|
system_font_link = HeapAlloc(GetProcessHeap(), 0, sizeof(*system_font_link));
|
||||||
system_font_link->font_name = strdupW(System);
|
system_font_link->font_name = strdupW(System);
|
||||||
list_init(&system_font_link->links);
|
list_init(&system_font_link->links);
|
||||||
|
memset(&fs, 0, sizeof(fs));
|
||||||
|
|
||||||
face = find_face_from_filename(tahoma_ttf, Tahoma);
|
face = find_face_from_filename(tahoma_ttf, Tahoma);
|
||||||
if(face)
|
if(face)
|
||||||
|
@ -2219,6 +2220,8 @@ skip_internal:
|
||||||
child_font = HeapAlloc(GetProcessHeap(), 0, sizeof(*child_font));
|
child_font = HeapAlloc(GetProcessHeap(), 0, sizeof(*child_font));
|
||||||
child_font->face = face;
|
child_font->face = face;
|
||||||
child_font->font = NULL;
|
child_font->font = NULL;
|
||||||
|
fs.fsCsb[0] |= face->fs.fsCsb[0];
|
||||||
|
fs.fsCsb[1] |= face->fs.fsCsb[1];
|
||||||
TRACE("Found Tahoma in %s index %ld\n", child_font->face->file, child_font->face->face_index);
|
TRACE("Found Tahoma in %s index %ld\n", child_font->face->file, child_font->face->face_index);
|
||||||
list_add_tail(&system_font_link->links, &child_font->entry);
|
list_add_tail(&system_font_link->links, &child_font->entry);
|
||||||
}
|
}
|
||||||
|
@ -2233,11 +2236,21 @@ skip_internal:
|
||||||
new_child = HeapAlloc(GetProcessHeap(), 0, sizeof(*new_child));
|
new_child = HeapAlloc(GetProcessHeap(), 0, sizeof(*new_child));
|
||||||
new_child->face = font_link_entry->face;
|
new_child->face = font_link_entry->face;
|
||||||
new_child->font = NULL;
|
new_child->font = NULL;
|
||||||
|
fs.fsCsb[0] |= font_link_entry->face->fs.fsCsb[0];
|
||||||
|
fs.fsCsb[1] |= font_link_entry->face->fs.fsCsb[1];
|
||||||
list_add_tail(&system_font_link->links, &new_child->entry);
|
list_add_tail(&system_font_link->links, &new_child->entry);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
family = find_family_from_name(system_font_link->font_name);
|
||||||
|
if(family)
|
||||||
|
{
|
||||||
|
LIST_FOR_EACH_ENTRY(face, &family->faces, Face, entry)
|
||||||
|
{
|
||||||
|
face->fs_links = fs;
|
||||||
|
}
|
||||||
|
}
|
||||||
list_add_tail(&system_links, &system_font_link->entry);
|
list_add_tail(&system_links, &system_font_link->entry);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue