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
2f7ec73a
Commit
2f7ec73a
authored
Jul 20, 2010
by
Marcus Meissner
Committed by
Alexandre Julliard
Jul 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Rebuild font hash after changing the matrix.
parent
51c25426
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
freetype.c
dlls/gdi32/freetype.c
+11
-0
No files found.
dlls/gdi32/freetype.c
View file @
2f7ec73a
...
@@ -3780,12 +3780,23 @@ found:
...
@@ -3780,12 +3780,23 @@ found:
if
(
!
face
->
scalable
)
{
if
(
!
face
->
scalable
)
{
/* Windows uses integer scaling factors for bitmap fonts */
/* Windows uses integer scaling factors for bitmap fonts */
INT
scale
,
scaled_height
;
INT
scale
,
scaled_height
;
GdiFont
*
cachedfont
;
/* FIXME: rotation of bitmap fonts is ignored */
/* FIXME: rotation of bitmap fonts is ignored */
height
=
abs
(
GDI_ROUND
(
(
double
)
height
*
ret
->
font_desc
.
matrix
.
eM22
));
height
=
abs
(
GDI_ROUND
(
(
double
)
height
*
ret
->
font_desc
.
matrix
.
eM22
));
if
(
ret
->
aveWidth
)
if
(
ret
->
aveWidth
)
ret
->
aveWidth
=
(
double
)
ret
->
aveWidth
*
ret
->
font_desc
.
matrix
.
eM11
;
ret
->
aveWidth
=
(
double
)
ret
->
aveWidth
*
ret
->
font_desc
.
matrix
.
eM11
;
ret
->
font_desc
.
matrix
.
eM11
=
ret
->
font_desc
.
matrix
.
eM22
=
1
.
0
;
ret
->
font_desc
.
matrix
.
eM11
=
ret
->
font_desc
.
matrix
.
eM22
=
1
.
0
;
dcmat
.
eM11
=
dcmat
.
eM22
=
1
.
0
;
/* As we changed the matrix, we need to search the cache for the font again,
* otherwise we might explode the cache. */
if
((
cachedfont
=
find_in_cache
(
hfont
,
&
lf
,
&
dcmat
,
can_use_bitmap
))
!=
NULL
)
{
TRACE
(
"Found cached font after non-scalable matrix rescale!
\n
"
);
free_font
(
ret
);
LeaveCriticalSection
(
&
freetype_cs
);
return
cachedfont
;
}
calc_hash
(
&
ret
->
font_desc
);
if
(
height
!=
0
)
height
=
diff
;
if
(
height
!=
0
)
height
=
diff
;
height
+=
face
->
size
.
height
;
height
+=
face
->
size
.
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