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
1919b124
Commit
1919b124
authored
Jun 21, 2008
by
Adam Petaccia
Committed by
Alexandre Julliard
Jun 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implement GdipGetFontUnit.
parent
b0b1588a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
font.c
dlls/gdiplus/font.c
+20
-0
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/font.c
View file @
1919b124
...
...
@@ -236,6 +236,26 @@ GpStatus WINGDIPAPI GdipCreateFontFromDC(HDC hdc, GpFont **font)
return
GdipCreateFontFromLogfontW
(
hdc
,
&
lfw
,
font
);
}
/*******************************************************************************
* GdipGetFontUnit [GDIPLUS.@]
*
* PARAMS
* font [I] Font to retrieve from
* unit [O] Return value
*
* RETURNS
* FAILURE: font or unit was NULL
* OK: otherwise
*/
GpStatus
WINGDIPAPI
GdipGetFontUnit
(
GpFont
*
font
,
Unit
*
unit
)
{
if
(
!
(
font
&&
unit
))
return
InvalidParameter
;
*
unit
=
font
->
unit
;
return
Ok
;
}
/* FIXME: use graphics */
GpStatus
WINGDIPAPI
GdipGetLogFontW
(
GpFont
*
font
,
GpGraphics
*
graphics
,
LOGFONTW
*
lfw
)
...
...
dlls/gdiplus/gdiplus.spec
View file @
1919b124
...
...
@@ -271,7 +271,7 @@
@ stub GdipGetFontHeightGivenDPI
@ stub GdipGetFontSize
@ stub GdipGetFontStyle
@ st
ub GdipGetFontUnit
@ st
dcall GdipGetFontUnit(ptr ptr)
@ stdcall GdipGetGenericFontFamilyMonospace(ptr)
@ stdcall GdipGetGenericFontFamilySansSerif(ptr)
@ stdcall GdipGetGenericFontFamilySerif(ptr)
...
...
include/gdiplusflat.h
View file @
1919b124
...
...
@@ -349,6 +349,7 @@ GpStatus WINGDIPAPI GdipCreateFontFromLogfontW(HDC,GDIPCONST LOGFONTW*,GpFont**)
GpStatus
WINGDIPAPI
GdipDeleteFont
(
GpFont
*
);
GpStatus
WINGDIPAPI
GdipGetLogFontW
(
GpFont
*
,
GpGraphics
*
,
LOGFONTW
*
);
GpStatus
WINGDIPAPI
GdipCloneFont
(
GpFont
*
,
GpFont
**
);
GpStatus
WINGDIPAPI
GdipGetFontUnit
(
GpFont
*
,
Unit
*
);
GpStatus
WINGDIPAPI
GdipCreateFontFamilyFromName
(
GDIPCONST
WCHAR
*
,
GpFontCollection
*
,
GpFontFamily
**
);
...
...
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