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
21cdaeea
Commit
21cdaeea
authored
Aug 21, 2008
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Replace DC transform by font scaling for bitmap fonts.
parent
f322f70a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
freetype.c
dlls/gdi32/freetype.c
+6
-0
font.c
dlls/gdi32/tests/font.c
+1
-1
No files found.
dlls/gdi32/freetype.c
View file @
21cdaeea
...
...
@@ -3555,6 +3555,12 @@ found:
/* Windows uses integer scaling factors for bitmap fonts */
INT
scale
,
scaled_height
;
/* FIXME: rotation of bitmap fonts is ignored */
height
=
abs
(
GDI_ROUND
(
(
double
)
height
*
ret
->
font_desc
.
matrix
.
eM22
));
if
(
ret
->
aveWidth
)
ret
->
aveWidth
=
(
double
)
ret
->
aveWidth
*
ret
->
font_desc
.
matrix
.
eM11
;
ret
->
font_desc
.
matrix
.
eM11
=
ret
->
font_desc
.
matrix
.
eM22
=
1
.
0
;
if
(
height
!=
0
)
height
=
diff
;
height
+=
face
->
size
.
height
;
...
...
dlls/gdi32/tests/font.c
View file @
21cdaeea
...
...
@@ -30,7 +30,7 @@
#include "wine/test.h"
#define near_match(a, b) (abs((a) - (b)) <=
4
)
#define near_match(a, b) (abs((a) - (b)) <=
6
)
#define expect(expected, got) ok(got == expected, "Expected %.8x, got %.8x\n", expected, got)
LONG
(
WINAPI
*
pGdiGetCharDimensions
)(
HDC
hdc
,
LPTEXTMETRICW
lptm
,
LONG
*
height
);
...
...
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