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
4c13e84a
Commit
4c13e84a
authored
Sep 13, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
Sep 13, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Use Liberation Mono as a fallback for Courier New for the monospace family.
parent
bcd793bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
font.c
dlls/gdiplus/font.c
+11
-1
No files found.
dlls/gdiplus/font.c
View file @
4c13e84a
...
...
@@ -816,10 +816,20 @@ GpStatus WINGDIPAPI GdipIsStyleAvailable(GDIPCONST GpFontFamily* family,
GpStatus
WINGDIPAPI
GdipGetGenericFontFamilyMonospace
(
GpFontFamily
**
nativeFamily
)
{
static
const
WCHAR
CourierNew
[]
=
{
'C'
,
'o'
,
'u'
,
'r'
,
'i'
,
'e'
,
'r'
,
' '
,
'N'
,
'e'
,
'w'
,
'\0'
};
static
const
WCHAR
LiberationMono
[]
=
{
'L'
,
'i'
,
'b'
,
'e'
,
'r'
,
'a'
,
't'
,
'i'
,
'o'
,
'n'
,
' '
,
'M'
,
'o'
,
'n'
,
'o'
,
'\0'
};
GpStatus
stat
;
if
(
nativeFamily
==
NULL
)
return
InvalidParameter
;
return
GdipCreateFontFamilyFromName
(
CourierNew
,
NULL
,
nativeFamily
);
stat
=
GdipCreateFontFamilyFromName
(
CourierNew
,
NULL
,
nativeFamily
);
if
(
stat
==
FontFamilyNotFound
)
stat
=
GdipCreateFontFamilyFromName
(
LiberationMono
,
NULL
,
nativeFamily
);
if
(
stat
==
FontFamilyNotFound
)
ERR
(
"Missing 'Courier New' font
\n
"
);
return
stat
;
}
/*****************************************************************************
...
...
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