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
9d888b37
Commit
9d888b37
authored
Nov 02, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Set the font anti-aliasing flags from the fontconfig information if available.
parent
123da6f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
freetype.c
dlls/gdi32/freetype.c
+5
-2
No files found.
dlls/gdi32/freetype.c
View file @
9d888b37
...
...
@@ -345,6 +345,7 @@ struct tagGdiFont {
SHORT
yMax
;
SHORT
yMin
;
DWORD
ntmFlags
;
DWORD
aa_flags
;
UINT
ntmCellHeight
,
ntmAvgWidth
;
FONTSIGNATURE
fs
;
GdiFont
*
base_font
;
...
...
@@ -4544,8 +4545,6 @@ static HFONT freetype_SelectFont( PHYSDEV dev, HFONT hfont, UINT *aa_flags )
GetObjectW
(
hfont
,
sizeof
(
lf
),
&
lf
);
lf
.
lfWidth
=
abs
(
lf
.
lfWidth
);
if
(
!*
aa_flags
)
*
aa_flags
=
get_font_aa_flags
(
dev
->
hdc
,
&
lf
);
can_use_bitmap
=
GetDeviceCaps
(
dev
->
hdc
,
TEXTCAPS
)
&
TC_RA_ABLE
;
TRACE
(
"%s, h=%d, it=%d, weight=%d, PandF=%02x, charset=%d orient %d escapement %d
\n
"
,
...
...
@@ -4946,6 +4945,7 @@ found_face:
TRACE
(
"Loaded GSUB table of %i bytes
\n
"
,
length
);
}
}
ret
->
aa_flags
=
face
->
aa_flags
;
TRACE
(
"caching: gdiFont=%p hfont=%p
\n
"
,
ret
,
hfont
);
...
...
@@ -4953,6 +4953,9 @@ found_face:
done:
if
(
ret
)
{
if
(
!*
aa_flags
)
*
aa_flags
=
ret
->
aa_flags
;
if
(
!*
aa_flags
)
*
aa_flags
=
get_font_aa_flags
(
dev
->
hdc
,
&
lf
);
/* fixup the antialiasing flags for that font */
switch
(
*
aa_flags
)
{
...
...
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