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
d060aecc
Commit
d060aecc
authored
Aug 13, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Aug 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added font constructor.
parent
9d6e0750
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
52 additions
and
1 deletion
+52
-1
Makefile.in
dlls/gdiplus/Makefile.in
+1
-0
font.c
dlls/gdiplus/font.c
+42
-0
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+4
-0
gdiplusflat.h
include/gdiplusflat.h
+2
-0
gdiplusgpstubs.h
include/gdiplusgpstubs.h
+2
-0
No files found.
dlls/gdiplus/Makefile.in
View file @
d060aecc
...
...
@@ -10,6 +10,7 @@ EXTRALIBS = -luuid
C_SRCS
=
\
brush.c
\
customlinecap.c
\
font.c
\
gdiplus.c
\
graphics.c
\
graphicspath.c
\
...
...
dlls/gdiplus/font.c
0 → 100644
View file @
d060aecc
/*
* Copyright (C) 2007 Google (Evan Stade)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "objbase.h"
#include "gdiplus.h"
#include "gdiplus_private.h"
GpStatus
WINGDIPAPI
GdipCreateFontFromLogfontW
(
HDC
hdc
,
GDIPCONST
LOGFONTW
*
logfont
,
GpFont
**
font
)
{
if
(
!
logfont
||
!
font
)
return
InvalidParameter
;
*
font
=
GdipAlloc
(
sizeof
(
GpFont
));
if
(
!*
font
)
return
OutOfMemory
;
memcpy
(
&
(
*
font
)
->
lfw
,
logfont
,
sizeof
(
LOGFONTW
));
return
Ok
;
}
dlls/gdiplus/gdiplus.spec
View file @
d060aecc
...
...
@@ -88,7 +88,7 @@
@ stub GdipCreateFontFamilyFromName
@ stub GdipCreateFontFromDC
@ stub GdipCreateFontFromLogfontA
@ st
ub GdipCreateFontFromLogfontW
@ st
dcall GdipCreateFontFromLogfontW(ptr ptr ptr)
@ stub GdipCreateFromHDC2
@ stdcall GdipCreateFromHDC(long ptr)
@ stdcall GdipCreateFromHWND(long ptr)
...
...
dlls/gdiplus/gdiplus_private.h
View file @
d060aecc
...
...
@@ -170,4 +170,8 @@ struct GpImageAttributes{
WrapMode
wrap
;
};
struct
GpFont
{
LOGFONTW
lfw
;
};
#endif
include/gdiplusflat.h
View file @
d060aecc
...
...
@@ -236,6 +236,8 @@ GpStatus WINGDIPAPI GdipSetImageAttributesColorMatrix(GpImageAttributes*,
GpStatus
WINGDIPAPI
GdipSetImageAttributesWrapMode
(
GpImageAttributes
*
,
WrapMode
,
ARGB
,
BOOL
);
GpStatus
WINGDIPAPI
GdipCreateFontFromLogfontW
(
HDC
,
GDIPCONST
LOGFONTW
*
,
GpFont
**
);
#ifdef __cplusplus
}
#endif
...
...
include/gdiplusgpstubs.h
View file @
d060aecc
...
...
@@ -36,6 +36,7 @@ class GpBitmap : public GpImage {};
class
GpPathGradient
:
public
GpBrush
{};
class
GpLineGradient
:
public
GpBrush
{};
class
GpTexture
:
public
GpBrush
{};
class
GpFont
{};
#else
/* end of c++ declarations */
...
...
@@ -54,6 +55,7 @@ typedef struct GpBitmap GpBitmap;
typedef
struct
GpPathGradient
GpPathGradient
;
typedef
struct
GpLineGradient
GpLineGradient
;
typedef
struct
GpTexture
GpTexture
;
typedef
struct
GpFont
GpFont
;
#endif
/* end of c declarations */
...
...
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