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
4f257238
Commit
4f257238
authored
Feb 19, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Feb 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Set the font family as FF_MODERN if the panose marks it as monospaced.
parent
e6a0fa9f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
freetype.c
dlls/gdi32/freetype.c
+2
-1
font.c
dlls/gdi32/tests/font.c
+2
-1
No files found.
dlls/gdi32/freetype.c
View file @
4f257238
...
@@ -5463,7 +5463,8 @@ UINT WineEngGetOutlineTextMetrics(GdiFont *font, UINT cbSize,
...
@@ -5463,7 +5463,8 @@ UINT WineEngGetOutlineTextMetrics(GdiFont *font, UINT cbSize,
case
PAN_FAMILY_PICTORIAL
:
/* symbol fonts get treated as if they were text */
case
PAN_FAMILY_PICTORIAL
:
/* symbol fonts get treated as if they were text */
/* which is clearly not what the panose spec says. */
/* which is clearly not what the panose spec says. */
default:
default:
if
(
TM
.
tmPitchAndFamily
==
0
)
/* fixed */
if
(
TM
.
tmPitchAndFamily
==
0
||
/* fixed */
pOS2
->
panose
[
PAN_PROPORTION_INDEX
]
==
PAN_PROP_MONOSPACED
)
TM
.
tmPitchAndFamily
=
FF_MODERN
;
TM
.
tmPitchAndFamily
=
FF_MODERN
;
else
else
{
{
...
...
dlls/gdi32/tests/font.c
View file @
4f257238
...
@@ -2387,7 +2387,8 @@ static void test_text_metrics(const LOGFONTA *lf)
...
@@ -2387,7 +2387,8 @@ static void test_text_metrics(const LOGFONTA *lf)
case
PAN_FAMILY_TEXT_DISPLAY
:
case
PAN_FAMILY_TEXT_DISPLAY
:
case
PAN_FAMILY_PICTORIAL
:
case
PAN_FAMILY_PICTORIAL
:
default:
default:
if
((
tmA
.
tmPitchAndFamily
&
1
)
==
0
)
/* fixed */
if
((
tmA
.
tmPitchAndFamily
&
1
)
==
0
||
/* fixed */
tt_os2
.
panose
.
bProportion
==
PAN_PROP_MONOSPACED
)
{
{
expect_ff
(
&
tmA
,
&
tt_os2
,
FF_MODERN
,
font_name
);
expect_ff
(
&
tmA
,
&
tt_os2
,
FF_MODERN
,
font_name
);
break
;
break
;
...
...
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