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
cab2cacb
Commit
cab2cacb
authored
Oct 17, 2013
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Oct 21, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Adjust fake bold outline font metrics.
parent
b6666014
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
freetype.c
dlls/gdi32/freetype.c
+4
-1
font.c
dlls/gdi32/tests/font.c
+2
-2
No files found.
dlls/gdi32/freetype.c
View file @
cab2cacb
...
@@ -7330,8 +7330,11 @@ static BOOL get_outline_text_metrics(GdiFont *font)
...
@@ -7330,8 +7330,11 @@ static BOOL get_outline_text_metrics(GdiFont *font)
}
}
TM
.
tmMaxCharWidth
=
SCALE_X
(
ft_face
->
bbox
.
xMax
-
ft_face
->
bbox
.
xMin
);
TM
.
tmMaxCharWidth
=
SCALE_X
(
ft_face
->
bbox
.
xMax
-
ft_face
->
bbox
.
xMin
);
TM
.
tmWeight
=
FW_REGULAR
;
TM
.
tmWeight
=
FW_REGULAR
;
if
(
font
->
fake_bold
)
if
(
font
->
fake_bold
)
{
TM
.
tmAveCharWidth
++
;
TM
.
tmMaxCharWidth
++
;
TM
.
tmWeight
=
FW_BOLD
;
TM
.
tmWeight
=
FW_BOLD
;
}
else
else
{
{
if
(
ft_face
->
style_flags
&
FT_STYLE_FLAG_BOLD
)
if
(
ft_face
->
style_flags
&
FT_STYLE_FLAG_BOLD
)
...
...
dlls/gdi32/tests/font.c
View file @
cab2cacb
...
@@ -5693,9 +5693,9 @@ static void test_fake_bold_font(void)
...
@@ -5693,9 +5693,9 @@ static void test_fake_bold_font(void)
ok
(
tm
[
0
].
tmHeight
==
tm
[
1
].
tmHeight
,
"expected %d, got %d
\n
"
,
tm
[
0
].
tmHeight
,
tm
[
1
].
tmHeight
);
ok
(
tm
[
0
].
tmHeight
==
tm
[
1
].
tmHeight
,
"expected %d, got %d
\n
"
,
tm
[
0
].
tmHeight
,
tm
[
1
].
tmHeight
);
ok
(
tm
[
0
].
tmAscent
==
tm
[
1
].
tmAscent
,
"expected %d, got %d
\n
"
,
tm
[
0
].
tmAscent
,
tm
[
1
].
tmAscent
);
ok
(
tm
[
0
].
tmAscent
==
tm
[
1
].
tmAscent
,
"expected %d, got %d
\n
"
,
tm
[
0
].
tmAscent
,
tm
[
1
].
tmAscent
);
ok
(
tm
[
0
].
tmDescent
==
tm
[
1
].
tmDescent
,
"expected %d, got %d
\n
"
,
tm
[
0
].
tmDescent
,
tm
[
1
].
tmDescent
);
ok
(
tm
[
0
].
tmDescent
==
tm
[
1
].
tmDescent
,
"expected %d, got %d
\n
"
,
tm
[
0
].
tmDescent
,
tm
[
1
].
tmDescent
);
todo_wine
ok
((
tm
[
0
].
tmAveCharWidth
+
1
)
==
tm
[
1
].
tmAveCharWidth
,
ok
((
tm
[
0
].
tmAveCharWidth
+
1
)
==
tm
[
1
].
tmAveCharWidth
,
"expected %d, got %d
\n
"
,
tm
[
0
].
tmAveCharWidth
+
1
,
tm
[
1
].
tmAveCharWidth
);
"expected %d, got %d
\n
"
,
tm
[
0
].
tmAveCharWidth
+
1
,
tm
[
1
].
tmAveCharWidth
);
todo_wine
ok
((
tm
[
0
].
tmMaxCharWidth
+
1
)
==
tm
[
1
].
tmMaxCharWidth
,
ok
((
tm
[
0
].
tmMaxCharWidth
+
1
)
==
tm
[
1
].
tmMaxCharWidth
,
"expected %d, got %d
\n
"
,
tm
[
0
].
tmMaxCharWidth
+
1
,
tm
[
1
].
tmMaxCharWidth
);
"expected %d, got %d
\n
"
,
tm
[
0
].
tmMaxCharWidth
+
1
,
tm
[
1
].
tmMaxCharWidth
);
ok
(
tm
[
0
].
tmOverhang
==
tm
[
1
].
tmOverhang
,
"expected %d, got %d
\n
"
,
tm
[
0
].
tmOverhang
,
tm
[
1
].
tmOverhang
);
ok
(
tm
[
0
].
tmOverhang
==
tm
[
1
].
tmOverhang
,
"expected %d, got %d
\n
"
,
tm
[
0
].
tmOverhang
,
tm
[
1
].
tmOverhang
);
w
[
0
]
=
abc
[
0
].
abcA
+
abc
[
0
].
abcB
+
abc
[
0
].
abcC
;
w
[
0
]
=
abc
[
0
].
abcA
+
abc
[
0
].
abcB
+
abc
[
0
].
abcC
;
...
...
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