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
25e4fd7d
Commit
25e4fd7d
authored
Jul 03, 2008
by
Adam Petaccia
Committed by
Alexandre Julliard
Jul 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Stub GdipGetFontHeightGivenDPI.
parent
f6da8029
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 @
25e4fd7d
...
...
@@ -308,6 +308,31 @@ GpStatus WINGDIPAPI GdipCloneFont(GpFont *font, GpFont **cloneFont)
return
Ok
;
}
/*******************************************************************************
* GdipGetFontHeightGivenDPI [GDIPLUS.@]
* PARAMS
* font [I] Font to retrieve DPI from
* dpi [I] DPI to assume
* height [O] Return value
*
* RETURNS
* SUCCESS: Ok
* FAILURE: InvalidParameter if font or height is NULL
*
* NOTES
* According to MSDN, the result is (lineSpacing)*(fontSize / emHeight)*dpi
* (for anything other than unit Pixel)
*/
GpStatus
WINGDIPAPI
GdipGetFontHeightGivenDPI
(
GDIPCONST
GpFont
*
font
,
REAL
dpi
,
REAL
*
height
)
{
if
(
!
(
font
&&
height
))
return
InvalidParameter
;
FIXME
(
"%p (%s), %f, %p
\n
)"
,
font
,
debugstr_w
(
font
->
lfw
.
lfFaceName
),
dpi
,
height
);
return
NotImplemented
;
}
/* Borrowed from GDI32 */
static
INT
CALLBACK
is_font_installed_proc
(
const
LOGFONTW
*
elf
,
const
TEXTMETRICW
*
ntm
,
DWORD
type
,
LPARAM
lParam
)
...
...
dlls/gdiplus/gdiplus.spec
View file @
25e4fd7d
...
...
@@ -268,7 +268,7 @@
@ stub GdipGetFontCollectionFamilyCount
@ stub GdipGetFontCollectionFamilyList
@ stub GdipGetFontHeight
@ st
ub GdipGetFontHeightGivenDPI
@ st
dcall GdipGetFontHeightGivenDPI(ptr long ptr)
@ stdcall GdipGetFontSize(ptr ptr)
@ stub GdipGetFontStyle
@ stdcall GdipGetFontUnit(ptr ptr)
...
...
include/gdiplusflat.h
View file @
25e4fd7d
...
...
@@ -372,6 +372,7 @@ GpStatus WINGDIPAPI GdipGetLogFontW(GpFont*,GpGraphics*,LOGFONTW*);
GpStatus
WINGDIPAPI
GdipCloneFont
(
GpFont
*
,
GpFont
**
);
GpStatus
WINGDIPAPI
GdipGetFontUnit
(
GpFont
*
,
Unit
*
);
GpStatus
WINGDIPAPI
GdipGetFontSize
(
GpFont
*
,
REAL
*
);
GpStatus
WINGDIPAPI
GdipGetFontHeightGivenDPI
(
GDIPCONST
GpFont
*
,
REAL
,
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