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
37b8140f
Commit
37b8140f
authored
Apr 30, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 30, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implemented GdipCreateFontFromDC.
parent
64806e64
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
3 deletions
+22
-3
font.c
dlls/gdiplus/font.c
+18
-0
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+3
-3
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/font.c
View file @
37b8140f
...
...
@@ -88,6 +88,24 @@ GpStatus WINGDIPAPI GdipDeleteFont(GpFont* font)
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipCreateFontFromDC
(
HDC
hdc
,
GpFont
**
font
)
{
HFONT
hfont
;
LOGFONTW
lfw
;
if
(
!
font
)
return
InvalidParameter
;
hfont
=
(
HFONT
)
GetCurrentObject
(
hdc
,
OBJ_FONT
);
if
(
!
hfont
)
return
GenericError
;
if
(
!
GetObjectW
(
hfont
,
sizeof
(
LOGFONTW
),
&
lfw
))
return
GenericError
;
return
GdipCreateFontFromLogfontW
(
hdc
,
&
lfw
,
font
);
}
/* FIXME: use graphics */
GpStatus
WINGDIPAPI
GdipGetLogFontW
(
GpFont
*
font
,
GpGraphics
*
graphics
,
LOGFONTW
*
lfw
)
...
...
dlls/gdiplus/gdiplus.spec
View file @
37b8140f
...
...
@@ -86,9 +86,9 @@
@ stub GdipCreateEffect
@ stub GdipCreateFont
@ stub GdipCreateFontFamilyFromName
@ st
ub GdipCreateFontFromDC
@ stdcall GdipCreateFontFromLogfontA(
ptr
ptr ptr)
@ stdcall GdipCreateFontFromLogfontW(
ptr
ptr ptr)
@ st
dcall GdipCreateFontFromDC(long ptr)
@ stdcall GdipCreateFontFromLogfontA(
long
ptr ptr)
@ stdcall GdipCreateFontFromLogfontW(
long
ptr ptr)
@ stdcall GdipCreateFromHDC2(long long ptr)
@ stdcall GdipCreateFromHDC(long ptr)
@ stdcall GdipCreateFromHWND(long ptr)
...
...
include/gdiplusflat.h
View file @
37b8140f
...
...
@@ -330,6 +330,7 @@ GpStatus WINGDIPAPI GdipSetImageAttributesColorMatrix(GpImageAttributes*,
GpStatus
WINGDIPAPI
GdipSetImageAttributesWrapMode
(
GpImageAttributes
*
,
WrapMode
,
ARGB
,
BOOL
);
GpStatus
WINGDIPAPI
GdipCreateFontFromDC
(
HDC
,
GpFont
**
);
GpStatus
WINGDIPAPI
GdipCreateFontFromLogfontA
(
HDC
,
GDIPCONST
LOGFONTA
*
,
GpFont
**
);
GpStatus
WINGDIPAPI
GdipCreateFontFromLogfontW
(
HDC
,
GDIPCONST
LOGFONTW
*
,
GpFont
**
);
GpStatus
WINGDIPAPI
GdipDeleteFont
(
GpFont
*
);
...
...
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