Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
d6bad2d6
Commit
d6bad2d6
authored
16 years ago
by
Adam Petaccia
Committed by
Alexandre Julliard
16 years ago
Browse files
Options
Downloads
Patches
Plain Diff
gdiplus: Implement GdipGetGeneric*.
parent
ce4b4148
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dlls/gdiplus/font.c
+65
-0
65 additions, 0 deletions
dlls/gdiplus/font.c
dlls/gdiplus/gdiplus.spec
+3
-3
3 additions, 3 deletions
dlls/gdiplus/gdiplus.spec
include/gdiplusflat.h
+4
-0
4 additions, 0 deletions
include/gdiplusflat.h
with
72 additions
and
3 deletions
dlls/gdiplus/font.c
+
65
−
0
View file @
d6bad2d6
...
...
@@ -278,3 +278,68 @@ GpStatus WINGDIPAPI GdipDeleteFontFamily(GpFontFamily *FontFamily)
return
Ok
;
}
/*****************************************************************************
* GdipGetGenericFontFamilyMonospace [GDIPLUS.@]
*
* Obtains a serif family (Courier New on Windows)
*
* PARAMS
* **nativeFamily [I] Where the font will be stored
*
* RETURNS
* InvalidParameter if nativeFamily is NULL.
* Ok otherwise.
*/
GpStatus
WINGDIPAPI
GdipGetGenericFontFamilyMonospace
(
GpFontFamily
**
nativeFamily
)
{
static
const
WCHAR
CourierNew
[]
=
{
'C'
,
'o'
,
'u'
,
'r'
,
'i'
,
'e'
,
'r'
,
' '
,
'N'
,
'e'
,
'w'
,
'\0'
};
if
(
nativeFamily
==
NULL
)
return
InvalidParameter
;
return
GdipCreateFontFamilyFromName
(
CourierNew
,
NULL
,
nativeFamily
);
}
/*****************************************************************************
* GdipGetGenericFontFamilySerif [GDIPLUS.@]
*
* Obtains a serif family (Times New Roman on Windows)
*
* PARAMS
* **nativeFamily [I] Where the font will be stored
*
* RETURNS
* InvalidParameter if nativeFamily is NULL.
* Ok otherwise.
*/
GpStatus
WINGDIPAPI
GdipGetGenericFontFamilySerif
(
GpFontFamily
**
nativeFamily
)
{
static
const
WCHAR
TimesNewRoman
[]
=
{
'T'
,
'i'
,
'm'
,
'e'
,
's'
,
' '
,
'N'
,
'e'
,
'w'
,
' '
,
'R'
,
'o'
,
'm'
,
'a'
,
'n'
,
'\0'
};
if
(
nativeFamily
==
NULL
)
return
InvalidParameter
;
return
GdipCreateFontFamilyFromName
(
TimesNewRoman
,
NULL
,
nativeFamily
);
}
/*****************************************************************************
* GdipGetGenericFontFamilySansSerif [GDIPLUS.@]
*
* Obtains a serif family (Microsoft Sans Serif on Windows)
*
* PARAMS
* **nativeFamily [I] Where the font will be stored
*
* RETURNS
* InvalidParameter if nativeFamily is NULL.
* Ok otherwise.
*/
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'
};
if
(
nativeFamily
==
NULL
)
return
InvalidParameter
;
return
GdipCreateFontFamilyFromName
(
MSSansSerif
,
NULL
,
nativeFamily
);
}
This diff is collapsed.
Click to expand it.
dlls/gdiplus/gdiplus.spec
+
3
−
3
View file @
d6bad2d6
...
...
@@ -272,9 +272,9 @@
@ stub GdipGetFontSize
@ stub GdipGetFontStyle
@ stub GdipGetFontUnit
@ st
ub
GdipGetGenericFontFamilyMonospace
@ st
ub
GdipGetGenericFontFamilySansSerif
@ st
ub
GdipGetGenericFontFamilySerif
@ st
dcall
GdipGetGenericFontFamilyMonospace
(ptr)
@ st
dcall
GdipGetGenericFontFamilySansSerif
(ptr)
@ st
dcall
GdipGetGenericFontFamilySerif
(ptr)
@ stub GdipGetHatchBackgroundColor
@ stub GdipGetHatchForegroundColor
@ stub GdipGetHatchStyle
...
...
This diff is collapsed.
Click to expand it.
include/gdiplusflat.h
+
4
−
0
View file @
d6bad2d6
...
...
@@ -353,6 +353,10 @@ GpStatus WINGDIPAPI GdipCreateFontFamilyFromName(GDIPCONST WCHAR*,
GpStatus
WINGDIPAPI
GdipDeleteFontFamily
(
GpFontFamily
*
);
GpStatus
WINGDIPAPI
GdipGetFamilyName
(
GDIPCONST
GpFontFamily
*
,
WCHAR
*
,
LANGID
);
GpStatus
WINGDIPAPI
GdipGetGenericFontFamilySansSerif
(
GpFontFamily
**
);
GpStatus
WINGDIPAPI
GdipGetGenericFontFamilySerif
(
GpFontFamily
**
);
GpStatus
WINGDIPAPI
GdipGetGenericFontFamilyMonospace
(
GpFontFamily
**
);
GpStatus
WINGDIPAPI
GdipCreateStringFormat
(
INT
,
LANGID
,
GpStringFormat
**
);
GpStatus
WINGDIPAPI
GdipDeleteStringFormat
(
GpStringFormat
*
);
GpStatus
WINGDIPAPI
GdipGetStringFormatAlign
(
GpStringFormat
*
,
StringAlignment
*
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment