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
57fbf143
Commit
57fbf143
authored
Apr 24, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 24, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Enumerated font size should not be too large.
This reverts commit
f4625d1a
.
parent
e43fce0d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
freetype.c
dlls/gdi32/freetype.c
+1
-1
font.c
dlls/gdi32/tests/font.c
+2
-0
No files found.
dlls/gdi32/freetype.c
View file @
57fbf143
...
...
@@ -5048,7 +5048,7 @@ static void GetEnumStructs(Face *face, LPENUMLOGFONTEXW pelf,
font
=
alloc_font
();
if
(
face
->
scalable
)
{
height
=
-
2048
;
/* 2048 is the most common em size */
height
=
100
;
width
=
0
;
}
else
{
height
=
face
->
size
.
y_ppem
>>
6
;
...
...
dlls/gdi32/tests/font.c
View file @
57fbf143
...
...
@@ -2058,6 +2058,7 @@ static INT CALLBACK arial_enum_proc(const LOGFONT *lf, const TEXTMETRIC *tm, DWO
struct
enum_font_data
*
efd
=
(
struct
enum_font_data
*
)
lParam
;
ok
(
lf
->
lfHeight
==
tm
->
tmHeight
,
"lfHeight %d != tmHeight %d
\n
"
,
lf
->
lfHeight
,
tm
->
tmHeight
);
ok
(
lf
->
lfHeight
>
0
&&
lf
->
lfHeight
<
200
,
"enumerated font height %d
\n
"
,
lf
->
lfHeight
);
if
(
type
!=
TRUETYPE_FONTTYPE
)
return
1
;
if
(
0
)
/* Disabled to limit console spam */
...
...
@@ -2076,6 +2077,7 @@ static INT CALLBACK arial_enum_procw(const LOGFONTW *lf, const TEXTMETRICW *tm,
struct
enum_font_dataW
*
efd
=
(
struct
enum_font_dataW
*
)
lParam
;
ok
(
lf
->
lfHeight
==
tm
->
tmHeight
,
"lfHeight %d != tmHeight %d
\n
"
,
lf
->
lfHeight
,
tm
->
tmHeight
);
ok
(
lf
->
lfHeight
>
0
&&
lf
->
lfHeight
<
200
,
"enumerated font height %d
\n
"
,
lf
->
lfHeight
);
if
(
type
!=
TRUETYPE_FONTTYPE
)
return
1
;
if
(
0
)
/* Disabled to limit console spam */
...
...
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