Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aleksandr Isakov
wine-fonts
Commits
15a6aefb
Commit
15a6aefb
authored
Feb 15, 2012
by
Kusanagi Kouichi
Committed by
Alexandre Julliard
Feb 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Use find_family_from_any_name to find a replacement family.
parent
d581f1bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
16 deletions
+12
-16
freetype.c
dlls/gdi32/freetype.c
+12
-16
No files found.
dlls/gdi32/freetype.c
View file @
15a6aefb
...
...
@@ -1880,9 +1880,6 @@ static void LoadReplaceList(void)
DWORD
valuelen
,
datalen
,
i
=
0
,
type
,
dlen
,
vlen
;
LPWSTR
value
;
LPVOID
data
;
Family
*
family
;
Face
*
face
;
struct
list
*
family_elem_ptr
,
*
face_elem_ptr
;
CHAR
familyA
[
400
];
/* @@ Wine registry key: HKCU\Software\Wine\Fonts\Replacements */
...
...
@@ -1907,19 +1904,18 @@ static void LoadReplaceList(void)
{
/* Find the old family and hence all of the font files
in that family */
LIST_FOR_EACH
(
family_elem_ptr
,
&
font_list
)
{
family
=
LIST_ENTRY
(
family_elem_ptr
,
Family
,
entry
);
if
(
!
strcmpiW
(
family
->
FamilyName
,
data
)
||
(
family
->
EnglishName
&&
!
strcmpiW
(
family
->
EnglishName
,
data
)))
{
LIST_FOR_EACH
(
face_elem_ptr
,
&
family
->
faces
)
{
face
=
LIST_ENTRY
(
face_elem_ptr
,
Face
,
entry
);
TRACE
(
"mapping %s %s to %s
\n
"
,
debugstr_w
(
family
->
FamilyName
),
debugstr_w
(
face
->
StyleName
),
familyA
);
/* Now add a new entry with the new family name */
AddFontToList
(
face
->
file
,
face
->
font_data_ptr
,
face
->
font_data_size
,
familyA
,
family
->
FamilyName
,
ADDFONT_FORCE_BITMAP
|
(
face
->
external
?
ADDFONT_EXTERNAL_FONT
:
0
));
}
break
;
const
Family
*
const
family
=
find_family_from_any_name
(
data
);
if
(
family
!=
NULL
)
{
const
struct
list
*
face_elem_ptr
;
LIST_FOR_EACH
(
face_elem_ptr
,
&
family
->
faces
)
{
const
Face
*
const
face
=
LIST_ENTRY
(
face_elem_ptr
,
Face
,
entry
);
TRACE
(
"mapping %s %s to %s
\n
"
,
debugstr_w
(
family
->
FamilyName
),
debugstr_w
(
face
->
StyleName
),
familyA
);
/* Now add a new entry with the new family name */
AddFontToList
(
face
->
file
,
face
->
font_data_ptr
,
face
->
font_data_size
,
familyA
,
family
->
FamilyName
,
ADDFONT_FORCE_BITMAP
|
(
face
->
external
?
ADDFONT_EXTERNAL_FONT
:
0
));
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment