mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
gdi32: Add multiple font replacement support.
This commit is contained in:
parent
cb59350ed9
commit
c015447d07
1 changed files with 16 additions and 4 deletions
|
@ -2292,12 +2292,24 @@ static void LoadReplaceList(void)
|
|||
|
||||
dlen = datalen;
|
||||
vlen = valuelen;
|
||||
while(RegEnumValueW(hkey, i++, value, &vlen, NULL, &type, data,
|
||||
&dlen) == ERROR_SUCCESS) {
|
||||
TRACE("Got %s=%s\n", debugstr_w(value), debugstr_w(data));
|
||||
while(RegEnumValueW(hkey, i++, value, &vlen, NULL, &type, data, &dlen) == ERROR_SUCCESS)
|
||||
{
|
||||
/* "NewName"="Oldname" */
|
||||
if(!find_family_from_any_name(value))
|
||||
map_font_family(value, data);
|
||||
{
|
||||
if (type == REG_MULTI_SZ)
|
||||
{
|
||||
WCHAR *replace = data;
|
||||
while(*replace)
|
||||
{
|
||||
if (map_font_family(value, replace))
|
||||
break;
|
||||
replace += strlenW(replace) + 1;
|
||||
}
|
||||
}
|
||||
else
|
||||
map_font_family(value, data);
|
||||
}
|
||||
else
|
||||
TRACE("%s is available. Skip this replacement.\n", debugstr_w(value));
|
||||
|
||||
|
|
Loading…
Reference in a new issue