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
3036c985
Commit
3036c985
authored
Nov 24, 1998
by
Eric Warnke
Committed by
Alexandre Julliard
Nov 24, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't match against Symbol or Nil fonts.
parent
59c4a32f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
xfont.c
graphics/x11drv/xfont.c
+7
-0
No files found.
graphics/x11drv/xfont.c
View file @
3036c985
...
...
@@ -1632,6 +1632,12 @@ static UINT32 XFONT_Match( fontMatch* pfm )
}
else
if
(
plf
->
lfCharSet
!=
pfi
->
df
.
dfCharSet
)
penalty
+=
0x200
;
/* FIXME: Hack to demote symbols and nil fonts. Should take into
account if a program ever actually asked for this type of
font */
if
(
(
strcmp
(
pfm
->
pfr
->
lfFaceName
,
"Symbol"
)
==
0
)
||
(
strcmp
(
pfm
->
pfr
->
lfFaceName
,
"Nil"
)
==
0
)
)
penalty
+=
0x200
;
/* very stiff penality */
/* TMPF_FIXED_PITCH means exactly the opposite */
if
(
plf
->
lfPitchAndFamily
&
FIXED_PITCH
)
...
...
@@ -1841,6 +1847,7 @@ static BOOL32 XFONT_MatchDeviceFont( fontResource* start, fontMatch* pfm )
for
(
start
=
fontList
;
start
&&
score
;
start
=
start
->
next
)
{
fm
.
pfr
=
start
;
TRACE
(
font
,
"%s
\n
"
,
fm
.
pfr
->
lfFaceName
);
current_score
=
XFONT_MatchFIList
(
&
fm
);
...
...
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