mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
gdi32: Append "TrueType" suffix to registry key names.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
492b10ef6c
commit
fcd0f6b074
1 changed files with 13 additions and 12 deletions
|
@ -3131,20 +3131,21 @@ static void update_reg_entries(void)
|
||||||
LIST_FOR_EACH_ENTRY( family, &font_list, Family, entry ) {
|
LIST_FOR_EACH_ENTRY( family, &font_list, Family, entry ) {
|
||||||
LIST_FOR_EACH_ENTRY( face, &family->faces, Face, entry ) {
|
LIST_FOR_EACH_ENTRY( face, &family->faces, Face, entry ) {
|
||||||
char *buffer;
|
char *buffer;
|
||||||
|
WCHAR *name;
|
||||||
|
|
||||||
if (!(face->flags & ADDFONT_EXTERNAL_FONT)) continue;
|
if (!(face->flags & ADDFONT_EXTERNAL_FONT)) continue;
|
||||||
|
|
||||||
if(face->FullName)
|
name = face->FullName ? face->FullName : family->FamilyName;
|
||||||
{
|
|
||||||
len = strlenW(face->FullName) + sizeof(TrueType) / sizeof(WCHAR) + 1;
|
len = strlenW(name) + 1;
|
||||||
valueW = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
|
if (face->scalable)
|
||||||
strcpyW(valueW, face->FullName);
|
len += sizeof(TrueType) / sizeof(WCHAR);
|
||||||
}
|
|
||||||
else
|
valueW = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
|
||||||
{
|
strcpyW(valueW, name);
|
||||||
len = strlenW(family->FamilyName) + sizeof(TrueType) / sizeof(WCHAR) + 1;
|
|
||||||
valueW = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
|
if (face->scalable)
|
||||||
strcpyW(valueW, family->FamilyName);
|
strcatW(valueW, TrueType);
|
||||||
}
|
|
||||||
|
|
||||||
buffer = strWtoA( CP_UNIXCP, face->file );
|
buffer = strWtoA( CP_UNIXCP, face->file );
|
||||||
path = wine_get_dos_file_name( buffer );
|
path = wine_get_dos_file_name( buffer );
|
||||||
|
|
Loading…
Reference in a new issue