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
049aa8da
Commit
049aa8da
authored
Apr 15, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Apr 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Ensure GdipGetGenericFontFamilySansSerif returns a truetype font.
parent
d4880b7a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
font.c
dlls/gdiplus/font.c
+10
-4
No files found.
dlls/gdiplus/font.c
View file @
049aa8da
...
...
@@ -829,15 +829,21 @@ GpStatus WINGDIPAPI GdipGetGenericFontFamilySerif(GpFontFamily **nativeFamily)
*/
GpStatus
WINGDIPAPI
GdipGetGenericFontFamilySansSerif
(
GpFontFamily
**
nativeFamily
)
{
/* FIXME: On Windows this is called Microsoft Sans Serif, this shouldn't
* affect anything */
static
const
WCHAR
MSSansSerif
[]
=
{
'M'
,
'S'
,
' '
,
'S'
,
'a'
,
'n'
,
's'
,
' '
,
'S'
,
'e'
,
'r'
,
'i'
,
'f
'
,
'\0'
};
GpStatus
stat
;
static
const
WCHAR
MicrosoftSansSerif
[]
=
{
'M'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
' '
,
'S'
,
'a'
,
'n'
,
's'
,
' '
,
'S'
,
'e'
,
'r'
,
'i'
,
'f'
,
'\0'
};
static
const
WCHAR
Tahoma
[]
=
{
'T'
,
'a'
,
'h'
,
'o'
,
'm'
,
'a
'
,
'\0'
};
TRACE
(
"(%p)
\n
"
,
nativeFamily
);
if
(
nativeFamily
==
NULL
)
return
InvalidParameter
;
return
GdipCreateFontFamilyFromName
(
MSSansSerif
,
NULL
,
nativeFamily
);
stat
=
GdipCreateFontFamilyFromName
(
MicrosoftSansSerif
,
NULL
,
nativeFamily
);
if
(
stat
==
FontFamilyNotFound
)
/* FIXME: Microsoft Sans Serif is not installed on Wine. */
stat
=
GdipCreateFontFamilyFromName
(
Tahoma
,
NULL
,
nativeFamily
);
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