Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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
wine
wine-cw
Commits
fc03398c
Commit
fc03398c
authored
Mar 08, 2012
by
Kusanagi Kouichi
Committed by
Alexandre Julliard
Mar 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add a helper function to create a full name from a family name and a style name.
parent
d696d5fe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
freetype.c
dlls/gdi32/freetype.c
+11
-8
No files found.
dlls/gdi32/freetype.c
View file @
fc03398c
...
...
@@ -4626,6 +4626,15 @@ static void GetEnumStructs(Face *face, LPENUMLOGFONTEXW pelf,
free_font
(
font
);
}
static
void
create_full_name
(
WCHAR
*
full_name
,
const
WCHAR
*
family_name
,
const
WCHAR
*
style_name
)
{
static
const
WCHAR
spaceW
[]
=
{
' '
,
0
};
strcpyW
(
full_name
,
family_name
);
strcatW
(
full_name
,
spaceW
);
strcatW
(
full_name
,
style_name
);
}
static
BOOL
family_matches
(
Family
*
family
,
const
LOGFONTW
*
lf
)
{
struct
list
*
face_elem_ptr
;
...
...
@@ -4634,7 +4643,6 @@ static BOOL family_matches(Family *family, const LOGFONTW *lf)
LIST_FOR_EACH
(
face_elem_ptr
,
&
family
->
faces
)
{
static
const
WCHAR
spaceW
[]
=
{
' '
,
0
};
WCHAR
full_family_name
[
LF_FULLFACESIZE
];
Face
*
face
=
LIST_ENTRY
(
face_elem_ptr
,
Face
,
entry
);
...
...
@@ -4645,9 +4653,7 @@ static BOOL family_matches(Family *family, const LOGFONTW *lf)
continue
;
}
strcpyW
(
full_family_name
,
family
->
FamilyName
);
strcatW
(
full_family_name
,
spaceW
);
strcatW
(
full_family_name
,
face
->
StyleName
);
create_full_name
(
full_family_name
,
family
->
FamilyName
,
face
->
StyleName
);
if
(
!
strcmpiW
(
lf
->
lfFaceName
,
full_family_name
))
return
TRUE
;
}
...
...
@@ -4656,7 +4662,6 @@ static BOOL family_matches(Family *family, const LOGFONTW *lf)
static
BOOL
face_matches
(
Face
*
face
,
const
LOGFONTW
*
lf
)
{
static
const
WCHAR
spaceW
[]
=
{
' '
,
0
};
WCHAR
full_family_name
[
LF_FULLFACESIZE
];
if
(
!
strcmpiW
(
lf
->
lfFaceName
,
face
->
family
->
FamilyName
))
return
TRUE
;
...
...
@@ -4668,9 +4673,7 @@ static BOOL face_matches(Face *face, const LOGFONTW *lf)
return
FALSE
;
}
strcpyW
(
full_family_name
,
face
->
family
->
FamilyName
);
strcatW
(
full_family_name
,
spaceW
);
strcatW
(
full_family_name
,
face
->
StyleName
);
create_full_name
(
full_family_name
,
face
->
family
->
FamilyName
,
face
->
StyleName
);
return
!
strcmpiW
(
lf
->
lfFaceName
,
full_family_name
);
}
...
...
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