Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
df8be7b8
Commit
df8be7b8
authored
Sep 12, 2012
by
Qian Hong
Committed by
Alexandre Julliard
Sep 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Prepend at in get_outline_text_metrics for vertical fonts.
parent
2f76f35e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
freetype.c
dlls/gdi32/freetype.c
+1
-0
font.c
dlls/gdi32/tests/font.c
+2
-6
No files found.
dlls/gdi32/freetype.c
View file @
df8be7b8
...
...
@@ -6579,6 +6579,7 @@ static BOOL get_outline_text_metrics(GdiFont *font)
FIXME
(
"failed to read face_nameW for font %s!
\n
"
,
wine_dbgstr_w
(
font
->
name
));
face_nameW
=
strdupW
(
font
->
name
);
}
if
(
font
->
name
[
0
]
==
'@'
)
face_nameW
=
prepend_at
(
face_nameW
);
lenface
=
(
strlenW
(
face_nameW
)
+
1
)
*
sizeof
(
WCHAR
);
full_nameW
=
get_face_name
(
ft_face
,
TT_NAME_ID_UNIQUE_ID
,
GetSystemDefaultLangID
()
);
...
...
dlls/gdi32/tests/font.c
View file @
df8be7b8
...
...
@@ -4131,9 +4131,7 @@ static void test_fullname2_helper(const char *Family)
WideCharToMultiByte
(
CP_ACP
,
0
,
bufW
,
-
1
,
bufA
,
buf_size
,
NULL
,
FALSE
);
ok
(
!
lstrcmpA
(
FamilyName
,
bufA
),
"font family names don't match: returned %s, expect %s
\n
"
,
FamilyName
,
bufA
);
otmStr
=
(
LPSTR
)
otm
+
(
UINT_PTR
)
otm
->
otmpFamilyName
;
if
(
want_vertical
)
todo_wine
ok
(
!
lstrcmpA
(
FamilyName
,
otmStr
),
"FamilyName %s doesn't match otmpFamilyName %s
\n
"
,
FamilyName
,
otmStr
);
else
ok
(
!
lstrcmpA
(
FamilyName
,
otmStr
),
"FamilyName %s doesn't match otmpFamilyName %s
\n
"
,
FamilyName
,
otmStr
);
ok
(
!
lstrcmpA
(
FamilyName
,
otmStr
),
"FamilyName %s doesn't match otmpFamilyName %s
\n
"
,
FamilyName
,
otmStr
);
bufW
[
0
]
=
0
;
bufA
[
0
]
=
0
;
...
...
@@ -4146,9 +4144,7 @@ static void test_fullname2_helper(const char *Family)
ok
(
ret
,
"FULL_NAME (face name) could not be read
\n
"
);
if
(
want_vertical
)
bufW
=
prepend_at
(
bufW
);
WideCharToMultiByte
(
CP_ACP
,
0
,
bufW
,
-
1
,
bufA
,
buf_size
,
NULL
,
FALSE
);
if
(
want_vertical
)
todo_wine
ok
(
!
lstrcmpA
(
FaceName
,
bufA
),
"font face names don't match: returned %s, expect %s
\n
"
,
FaceName
,
bufA
);
else
ok
(
!
lstrcmpA
(
FaceName
,
bufA
),
"font face names don't match: returned %s, expect %s
\n
"
,
FaceName
,
bufA
);
ok
(
!
lstrcmpA
(
FaceName
,
bufA
),
"font face names don't match: returned %s, expect %s
\n
"
,
FaceName
,
bufA
);
otmStr
=
(
LPSTR
)
otm
+
(
UINT_PTR
)
otm
->
otmpFaceName
;
ok
(
!
lstrcmpA
(
FaceName
,
otmStr
),
"FaceName %s doesn't match otmpFaceName %s
\n
"
,
FaceName
,
otmStr
);
...
...
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