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
5361f074
Commit
5361f074
authored
Aug 27, 2008
by
Adam Petaccia
Committed by
Alexandre Julliard
Aug 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implement GdipGetFontHeight.
parent
ce40fde6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletion
+28
-1
font.c
dlls/gdiplus/font.c
+25
-0
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
gdiplusflat.h
include/gdiplusflat.h
+2
-0
No files found.
dlls/gdiplus/font.c
View file @
5361f074
...
...
@@ -384,6 +384,31 @@ GpStatus WINGDIPAPI GdipCloneFont(GpFont *font, GpFont **cloneFont)
}
/*******************************************************************************
* GdipGetFontHeight [GDIPLUS.@]
* PARAMS
* font [I] Font to retrieve height from
* graphics [I] The current graphics context
* height [O] Resulting height
* RETURNS
* SUCCESS: Ok
* FAILURE: Another element of GpStatus
*
* NOTES
* Forwards to GdipGetFontHeightGivenDPI
*/
GpStatus
WINGDIPAPI
GdipGetFontHeight
(
GDIPCONST
GpFont
*
font
,
GDIPCONST
GpGraphics
*
graphics
,
REAL
*
height
)
{
REAL
dpi
;
TRACE
(
"%p %p %p
\n
"
,
font
,
graphics
,
height
);
dpi
=
GetDeviceCaps
(
graphics
->
hdc
,
LOGPIXELSY
);
return
GdipGetFontHeightGivenDPI
(
font
,
dpi
,
height
);
}
/*******************************************************************************
* GdipGetFontHeightGivenDPI [GDIPLUS.@]
* PARAMS
* font [I] Font to retrieve DPI from
...
...
dlls/gdiplus/gdiplus.spec
View file @
5361f074
...
...
@@ -267,7 +267,7 @@
@ stdcall GdipGetFamilyName(ptr ptr long)
@ stdcall GdipGetFontCollectionFamilyCount(ptr ptr)
@ stdcall GdipGetFontCollectionFamilyList(ptr long ptr ptr)
@ st
ub GdipGetFontHeight
@ st
dcall GdipGetFontHeight(ptr ptr ptr)
@ stdcall GdipGetFontHeightGivenDPI(ptr long ptr)
@ stdcall GdipGetFontSize(ptr ptr)
@ stdcall GdipGetFontStyle(ptr ptr)
...
...
include/gdiplusflat.h
View file @
5361f074
...
...
@@ -438,6 +438,8 @@ GpStatus WINGDIPAPI GdipGetFamily(GpFont*, GpFontFamily**);
GpStatus
WINGDIPAPI
GdipGetFontUnit
(
GpFont
*
,
Unit
*
);
GpStatus
WINGDIPAPI
GdipGetFontSize
(
GpFont
*
,
REAL
*
);
GpStatus
WINGDIPAPI
GdipGetFontStyle
(
GpFont
*
,
INT
*
);
GpStatus
WINGDIPAPI
GdipGetFontHeight
(
GDIPCONST
GpFont
*
,
GDIPCONST
GpGraphics
*
,
REAL
*
);
GpStatus
WINGDIPAPI
GdipGetFontHeightGivenDPI
(
GDIPCONST
GpFont
*
,
REAL
,
REAL
*
);
GpStatus
WINGDIPAPI
GdipCreateFontFamilyFromName
(
GDIPCONST
WCHAR
*
,
...
...
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