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
082529b1
Commit
082529b1
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 GdipGetFontSize.
parent
1919b124
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
1 deletion
+27
-1
font.c
dlls/gdiplus/font.c
+25
-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 @
082529b1
...
...
@@ -236,6 +236,31 @@ GpStatus WINGDIPAPI GdipCreateFontFromDC(HDC hdc, GpFont **font)
return
GdipCreateFontFromLogfontW
(
hdc
,
&
lfw
,
font
);
}
/******************************************************************************
* GdipGetFontSize [GDIPLUS.@]
*
* Returns the size of the font in Units
*
* PARAMS
* *font [I] The font to retrieve size from
* *size [O] Pointer to hold retrieved value
*
* RETURNS
* SUCCESS: Ok
* FAILURE: InvalidParamter (font or size was NULL)
*
* NOTES
* Size returned is actually emSize -- not internal size used for drawing.
*/
GpStatus
WINGDIPAPI
GdipGetFontSize
(
GpFont
*
font
,
REAL
*
size
)
{
if
(
!
(
font
&&
size
))
return
InvalidParameter
;
*
size
=
font
->
emSize
;
return
Ok
;
}
/*******************************************************************************
* GdipGetFontUnit [GDIPLUS.@]
*
...
...
dlls/gdiplus/gdiplus.spec
View file @
082529b1
...
...
@@ -269,7 +269,7 @@
@ stub GdipGetFontCollectionFamilyList
@ stub GdipGetFontHeight
@ stub GdipGetFontHeightGivenDPI
@ st
ub GdipGetFontSize
@ st
dcall GdipGetFontSize(ptr ptr)
@ stub GdipGetFontStyle
@ stdcall GdipGetFontUnit(ptr ptr)
@ stdcall GdipGetGenericFontFamilyMonospace(ptr)
...
...
include/gdiplusflat.h
View file @
082529b1
...
...
@@ -350,6 +350,7 @@ GpStatus WINGDIPAPI GdipDeleteFont(GpFont*);
GpStatus
WINGDIPAPI
GdipGetLogFontW
(
GpFont
*
,
GpGraphics
*
,
LOGFONTW
*
);
GpStatus
WINGDIPAPI
GdipCloneFont
(
GpFont
*
,
GpFont
**
);
GpStatus
WINGDIPAPI
GdipGetFontUnit
(
GpFont
*
,
Unit
*
);
GpStatus
WINGDIPAPI
GdipGetFontSize
(
GpFont
*
,
REAL
*
);
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