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
082529b1
Commit
082529b1
authored
16 years ago
by
Adam Petaccia
Committed by
Alexandre Julliard
16 years ago
Browse files
Options
Downloads
Patches
Plain Diff
gdiplus: Implement GdipGetFontSize.
parent
1919b124
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
+25
-0
25 additions, 0 deletions
dlls/gdiplus/font.c
dlls/gdiplus/gdiplus.spec
+1
-1
1 addition, 1 deletion
dlls/gdiplus/gdiplus.spec
include/gdiplusflat.h
+1
-0
1 addition, 0 deletions
include/gdiplusflat.h
with
27 additions
and
1 deletion
dlls/gdiplus/font.c
+
25
−
0
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.@]
*
...
...
This diff is collapsed.
Click to expand it.
dlls/gdiplus/gdiplus.spec
+
1
−
1
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)
...
...
This diff is collapsed.
Click to expand it.
include/gdiplusflat.h
+
1
−
0
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
**
);
...
...
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