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
96ce83d0
Commit
96ce83d0
authored
May 25, 2006
by
Huw Davies
Committed by
Alexandre Julliard
May 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: The font cache needs to discriminate whether the device can cope with bitmap fonts or not.
parent
013d00f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
freetype.c
dlls/gdi/freetype.c
+5
-0
No files found.
dlls/gdi/freetype.c
View file @
96ce83d0
...
...
@@ -234,6 +234,7 @@ typedef struct {
DWORD
hash
;
LOGFONTW
lf
;
FMAT2
matrix
;
BOOL
can_use_bitmap
;
}
FONT_DESC
;
typedef
struct
tagHFONTLIST
{
...
...
@@ -2124,6 +2125,7 @@ static BOOL fontcmp(GdiFont font, FONT_DESC *fd)
if
(
font
->
font_desc
.
hash
!=
fd
->
hash
)
return
TRUE
;
if
(
memcmp
(
&
font
->
font_desc
.
matrix
,
&
fd
->
matrix
,
sizeof
(
fd
->
matrix
)))
return
TRUE
;
if
(
memcmp
(
&
font
->
font_desc
.
lf
,
&
fd
->
lf
,
offsetof
(
LOGFONTW
,
lfFaceName
)))
return
TRUE
;
if
(
!
font
->
font_desc
.
can_use_bitmap
!=
!
fd
->
can_use_bitmap
)
return
TRUE
;
return
strcmpiW
(
font
->
font_desc
.
lf
.
lfFaceName
,
fd
->
lf
.
lfFaceName
);
}
...
...
@@ -2147,6 +2149,7 @@ static void calc_hash(FONT_DESC *pfd)
hash
^=
two_chars
;
if
(
!*
pwc
)
break
;
}
hash
^=
!
pfd
->
can_use_bitmap
;
pfd
->
hash
=
hash
;
return
;
}
...
...
@@ -2160,6 +2163,7 @@ static GdiFont find_in_cache(HFONT hfont, LOGFONTW *plf, XFORM *pxf, BOOL can_us
memcpy
(
&
fd
.
lf
,
plf
,
sizeof
(
LOGFONTW
));
memcpy
(
&
fd
.
matrix
,
pxf
,
sizeof
(
FMAT2
));
fd
.
can_use_bitmap
=
can_use_bitmap
;
calc_hash
(
&
fd
);
/* try the in-use list */
...
...
@@ -2286,6 +2290,7 @@ GdiFont WineEngCreateFontInstance(DC *dc, HFONT hfont)
memcpy
(
&
ret
->
font_desc
.
matrix
,
&
dc
->
xformWorld2Vport
,
sizeof
(
FMAT2
));
memcpy
(
&
ret
->
font_desc
.
lf
,
&
lf
,
sizeof
(
LOGFONTW
));
ret
->
font_desc
.
can_use_bitmap
=
can_use_bitmap
;
calc_hash
(
&
ret
->
font_desc
);
hflist
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
hflist
));
hflist
->
hfont
=
hfont
;
...
...
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