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
c2c8bf1b
Commit
c2c8bf1b
authored
Apr 03, 2002
by
Huw D M Davies
Committed by
Alexandre Julliard
Apr 03, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If lfFaceName == "", then we patch up the names according to
lfPitchAndFamily. This is not very pretty I'm afraid...
parent
5b01b506
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
xfont.c
graphics/x11drv/xfont.c
+24
-1
No files found.
graphics/x11drv/xfont.c
View file @
c2c8bf1b
...
...
@@ -2618,7 +2618,30 @@ static void XFONT_MatchDeviceFont( fontResource* start, fontMatch* pfm)
pfm
->
plf
->
lfWeight
,
(
pfm
->
plf
->
lfItalic
)
?
"Italic"
:
""
);
pfm
->
pfi
=
NULL
;
if
(
fm
.
plf
->
lfFaceName
[
0
]
)
if
(
!
fm
.
plf
->
lfFaceName
[
0
]
)
{
switch
(
fm
.
plf
->
lfPitchAndFamily
&
0xf0
)
{
case
FF_MODERN
:
strcpy
(
fm
.
plf
->
lfFaceName
,
"Courier New"
);
break
;
case
FF_ROMAN
:
strcpy
(
fm
.
plf
->
lfFaceName
,
"Times New Roman"
);
break
;
case
FF_SWISS
:
strcpy
(
fm
.
plf
->
lfFaceName
,
"Arial"
);
break
;
default:
if
((
fm
.
plf
->
lfPitchAndFamily
&
0x0f
)
==
FIXED_PITCH
)
strcpy
(
fm
.
plf
->
lfFaceName
,
"Courier New"
);
else
strcpy
(
fm
.
plf
->
lfFaceName
,
"Arial"
);
break
;
}
}
if
(
fm
.
plf
->
lfFaceName
[
0
]
)
{
fm
.
pfr
=
XFONT_FindFIList
(
start
,
fm
.
plf
->
lfFaceName
);
if
(
fm
.
pfr
)
/* match family */
...
...
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