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
c9d4046b
Commit
c9d4046b
authored
Sep 03, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Add TRACE(..) for font calls.
parent
69e17d6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
font.c
dlls/gdiplus/font.c
+22
-0
No files found.
dlls/gdiplus/font.c
View file @
c9d4046b
...
@@ -166,6 +166,8 @@ GpStatus WINGDIPAPI GdipCreateFontFromLogfontW(HDC hdc,
...
@@ -166,6 +166,8 @@ GpStatus WINGDIPAPI GdipCreateFontFromLogfontW(HDC hdc,
HFONT
hfont
,
oldfont
;
HFONT
hfont
,
oldfont
;
TEXTMETRICW
textmet
;
TEXTMETRICW
textmet
;
TRACE
(
"(%p, %p, %p)
\n
"
,
hdc
,
logfont
,
font
);
if
(
!
logfont
||
!
font
)
if
(
!
logfont
||
!
font
)
return
InvalidParameter
;
return
InvalidParameter
;
...
@@ -206,6 +208,8 @@ GpStatus WINGDIPAPI GdipCreateFontFromLogfontA(HDC hdc,
...
@@ -206,6 +208,8 @@ GpStatus WINGDIPAPI GdipCreateFontFromLogfontA(HDC hdc,
{
{
LOGFONTW
lfw
;
LOGFONTW
lfw
;
TRACE
(
"(%p, %p, %p)
\n
"
,
hdc
,
lfa
,
font
);
if
(
!
lfa
||
!
font
)
if
(
!
lfa
||
!
font
)
return
InvalidParameter
;
return
InvalidParameter
;
...
@@ -224,6 +228,8 @@ GpStatus WINGDIPAPI GdipCreateFontFromLogfontA(HDC hdc,
...
@@ -224,6 +228,8 @@ GpStatus WINGDIPAPI GdipCreateFontFromLogfontA(HDC hdc,
*/
*/
GpStatus
WINGDIPAPI
GdipDeleteFont
(
GpFont
*
font
)
GpStatus
WINGDIPAPI
GdipDeleteFont
(
GpFont
*
font
)
{
{
TRACE
(
"(%p)
\n
"
,
font
);
if
(
!
font
)
if
(
!
font
)
return
InvalidParameter
;
return
InvalidParameter
;
...
@@ -240,6 +246,8 @@ GpStatus WINGDIPAPI GdipCreateFontFromDC(HDC hdc, GpFont **font)
...
@@ -240,6 +246,8 @@ GpStatus WINGDIPAPI GdipCreateFontFromDC(HDC hdc, GpFont **font)
HFONT
hfont
;
HFONT
hfont
;
LOGFONTW
lfw
;
LOGFONTW
lfw
;
TRACE
(
"(%p, %p)
\n
"
,
hdc
,
font
);
if
(
!
font
)
if
(
!
font
)
return
InvalidParameter
;
return
InvalidParameter
;
...
@@ -294,6 +302,8 @@ GpStatus WINGDIPAPI GdipGetFamily(GpFont *font, GpFontFamily **family)
...
@@ -294,6 +302,8 @@ GpStatus WINGDIPAPI GdipGetFamily(GpFont *font, GpFontFamily **family)
*/
*/
GpStatus
WINGDIPAPI
GdipGetFontSize
(
GpFont
*
font
,
REAL
*
size
)
GpStatus
WINGDIPAPI
GdipGetFontSize
(
GpFont
*
font
,
REAL
*
size
)
{
{
TRACE
(
"(%p, %p)
\n
"
,
font
,
size
);
if
(
!
(
font
&&
size
))
return
InvalidParameter
;
if
(
!
(
font
&&
size
))
return
InvalidParameter
;
*
size
=
font
->
emSize
;
*
size
=
font
->
emSize
;
...
@@ -348,6 +358,8 @@ GpStatus WINGDIPAPI GdipGetFontStyle(GpFont *font, INT *style)
...
@@ -348,6 +358,8 @@ GpStatus WINGDIPAPI GdipGetFontStyle(GpFont *font, INT *style)
*/
*/
GpStatus
WINGDIPAPI
GdipGetFontUnit
(
GpFont
*
font
,
Unit
*
unit
)
GpStatus
WINGDIPAPI
GdipGetFontUnit
(
GpFont
*
font
,
Unit
*
unit
)
{
{
TRACE
(
"(%p, %p)
\n
"
,
font
,
unit
);
if
(
!
(
font
&&
unit
))
return
InvalidParameter
;
if
(
!
(
font
&&
unit
))
return
InvalidParameter
;
*
unit
=
font
->
unit
;
*
unit
=
font
->
unit
;
...
@@ -361,6 +373,8 @@ GpStatus WINGDIPAPI GdipGetFontUnit(GpFont *font, Unit *unit)
...
@@ -361,6 +373,8 @@ GpStatus WINGDIPAPI GdipGetFontUnit(GpFont *font, Unit *unit)
GpStatus
WINGDIPAPI
GdipGetLogFontW
(
GpFont
*
font
,
GpGraphics
*
graphics
,
GpStatus
WINGDIPAPI
GdipGetLogFontW
(
GpFont
*
font
,
GpGraphics
*
graphics
,
LOGFONTW
*
lfw
)
LOGFONTW
*
lfw
)
{
{
TRACE
(
"(%p, %p, %p)
\n
"
,
font
,
graphics
,
lfw
);
/* FIXME: use graphics */
/* FIXME: use graphics */
if
(
!
font
||
!
graphics
||
!
lfw
)
if
(
!
font
||
!
graphics
||
!
lfw
)
return
InvalidParameter
;
return
InvalidParameter
;
...
@@ -375,6 +389,8 @@ GpStatus WINGDIPAPI GdipGetLogFontW(GpFont *font, GpGraphics *graphics,
...
@@ -375,6 +389,8 @@ GpStatus WINGDIPAPI GdipGetLogFontW(GpFont *font, GpGraphics *graphics,
*/
*/
GpStatus
WINGDIPAPI
GdipCloneFont
(
GpFont
*
font
,
GpFont
**
cloneFont
)
GpStatus
WINGDIPAPI
GdipCloneFont
(
GpFont
*
font
,
GpFont
**
cloneFont
)
{
{
TRACE
(
"(%p, %p)
\n
"
,
font
,
cloneFont
);
if
(
!
font
||
!
cloneFont
)
if
(
!
font
||
!
cloneFont
)
return
InvalidParameter
;
return
InvalidParameter
;
...
@@ -624,6 +640,8 @@ GpStatus WINGDIPAPI GdipGetCellAscent(GDIPCONST GpFontFamily *family,
...
@@ -624,6 +640,8 @@ GpStatus WINGDIPAPI GdipGetCellAscent(GDIPCONST GpFontFamily *family,
GpStatus
WINGDIPAPI
GdipGetCellDescent
(
GDIPCONST
GpFontFamily
*
family
,
GpStatus
WINGDIPAPI
GdipGetCellDescent
(
GDIPCONST
GpFontFamily
*
family
,
INT
style
,
UINT16
*
CellDescent
)
INT
style
,
UINT16
*
CellDescent
)
{
{
TRACE
(
"(%p, %d, %p)
\n
"
,
family
,
style
,
CellDescent
);
if
(
!
(
family
&&
CellDescent
))
return
InvalidParameter
;
if
(
!
(
family
&&
CellDescent
))
return
InvalidParameter
;
*
CellDescent
=
family
->
tmw
.
tmDescent
;
*
CellDescent
=
family
->
tmw
.
tmDescent
;
...
@@ -730,6 +748,8 @@ GpStatus WINGDIPAPI GdipGetGenericFontFamilySerif(GpFontFamily **nativeFamily)
...
@@ -730,6 +748,8 @@ GpStatus WINGDIPAPI GdipGetGenericFontFamilySerif(GpFontFamily **nativeFamily)
{
{
static
const
WCHAR
TimesNewRoman
[]
=
{
'T'
,
'i'
,
'm'
,
'e'
,
's'
,
' '
,
'N'
,
'e'
,
'w'
,
' '
,
'R'
,
'o'
,
'm'
,
'a'
,
'n'
,
'\0'
};
static
const
WCHAR
TimesNewRoman
[]
=
{
'T'
,
'i'
,
'm'
,
'e'
,
's'
,
' '
,
'N'
,
'e'
,
'w'
,
' '
,
'R'
,
'o'
,
'm'
,
'a'
,
'n'
,
'\0'
};
TRACE
(
"(%p)
\n
"
,
nativeFamily
);
if
(
nativeFamily
==
NULL
)
return
InvalidParameter
;
if
(
nativeFamily
==
NULL
)
return
InvalidParameter
;
return
GdipCreateFontFamilyFromName
(
TimesNewRoman
,
NULL
,
nativeFamily
);
return
GdipCreateFontFamilyFromName
(
TimesNewRoman
,
NULL
,
nativeFamily
);
...
@@ -753,6 +773,8 @@ GpStatus WINGDIPAPI GdipGetGenericFontFamilySansSerif(GpFontFamily **nativeFamil
...
@@ -753,6 +773,8 @@ GpStatus WINGDIPAPI GdipGetGenericFontFamilySansSerif(GpFontFamily **nativeFamil
* affect anything */
* affect anything */
static
const
WCHAR
MSSansSerif
[]
=
{
'M'
,
'S'
,
' '
,
'S'
,
'a'
,
'n'
,
's'
,
' '
,
'S'
,
'e'
,
'r'
,
'i'
,
'f'
,
'\0'
};
static
const
WCHAR
MSSansSerif
[]
=
{
'M'
,
'S'
,
' '
,
'S'
,
'a'
,
'n'
,
's'
,
' '
,
'S'
,
'e'
,
'r'
,
'i'
,
'f'
,
'\0'
};
TRACE
(
"(%p)
\n
"
,
nativeFamily
);
if
(
nativeFamily
==
NULL
)
return
InvalidParameter
;
if
(
nativeFamily
==
NULL
)
return
InvalidParameter
;
return
GdipCreateFontFamilyFromName
(
MSSansSerif
,
NULL
,
nativeFamily
);
return
GdipCreateFontFamilyFromName
(
MSSansSerif
,
NULL
,
nativeFamily
);
...
...
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