Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
542e30b5
Commit
542e30b5
authored
May 01, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 01, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Add more traces to font APIs.
parent
782c543a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
font.c
dlls/gdiplus/font.c
+10
-0
No files found.
dlls/gdiplus/font.c
View file @
542e30b5
...
...
@@ -316,6 +316,7 @@ GpStatus WINGDIPAPI GdipGetFontSize(GpFont *font, REAL *size)
if
(
!
(
font
&&
size
))
return
InvalidParameter
;
*
size
=
font
->
emSize
;
TRACE
(
"%s,%d => %f
\n
"
,
debugstr_w
(
font
->
lfw
.
lfFaceName
),
font
->
lfw
.
lfHeight
,
*
size
);
return
Ok
;
}
...
...
@@ -372,6 +373,7 @@ GpStatus WINGDIPAPI GdipGetFontUnit(GpFont *font, Unit *unit)
if
(
!
(
font
&&
unit
))
return
InvalidParameter
;
*
unit
=
font
->
unit
;
TRACE
(
"%s,%d => %d
\n
"
,
debugstr_w
(
font
->
lfw
.
lfFaceName
),
font
->
lfw
.
lfHeight
,
*
unit
);
return
Ok
;
}
...
...
@@ -412,6 +414,7 @@ GpStatus WINGDIPAPI GdipGetLogFontW(GpFont *font, GpGraphics *graphics,
return
InvalidParameter
;
*
lfw
=
font
->
lfw
;
TRACE
(
"=> %s,%d
\n
"
,
debugstr_w
(
font
->
lfw
.
lfFaceName
),
font
->
lfw
.
lfHeight
);
return
Ok
;
}
...
...
@@ -512,6 +515,9 @@ GpStatus WINGDIPAPI GdipGetFontHeightGivenDPI(GDIPCONST GpFont *font, REAL dpi,
return
NotImplemented
;
}
TRACE
(
"%s,%d(unit %d) => %f
\n
"
,
debugstr_w
(
font
->
lfw
.
lfFaceName
),
font
->
lfw
.
lfHeight
,
font
->
unit
,
*
height
);
return
Ok
;
}
...
...
@@ -705,6 +711,7 @@ GpStatus WINGDIPAPI GdipGetCellAscent(GDIPCONST GpFontFamily *family,
if
(
!
(
family
&&
CellAscent
))
return
InvalidParameter
;
*
CellAscent
=
family
->
otm
.
otmTextMetrics
.
tmAscent
;
TRACE
(
"%d => %u
\n
"
,
family
->
otm
.
otmTextMetrics
.
tmHeight
,
*
CellAscent
);
return
Ok
;
}
...
...
@@ -717,6 +724,7 @@ GpStatus WINGDIPAPI GdipGetCellDescent(GDIPCONST GpFontFamily *family,
if
(
!
(
family
&&
CellDescent
))
return
InvalidParameter
;
*
CellDescent
=
family
->
otm
.
otmTextMetrics
.
tmDescent
;
TRACE
(
"%d => %u
\n
"
,
family
->
otm
.
otmTextMetrics
.
tmHeight
,
*
CellDescent
);
return
Ok
;
}
...
...
@@ -742,6 +750,7 @@ GpStatus WINGDIPAPI GdipGetEmHeight(GDIPCONST GpFontFamily *family, INT style, U
TRACE
(
"%p (%s), %d, %p
\n
"
,
family
,
debugstr_w
(
family
->
FamilyName
),
style
,
EmHeight
);
*
EmHeight
=
family
->
otm
.
otmEMSquare
;
TRACE
(
"%d => %u
\n
"
,
family
->
otm
.
otmTextMetrics
.
tmHeight
,
*
EmHeight
);
return
Ok
;
}
...
...
@@ -772,6 +781,7 @@ GpStatus WINGDIPAPI GdipGetLineSpacing(GDIPCONST GpFontFamily *family,
if
(
style
)
FIXME
(
"ignoring style
\n
"
);
*
LineSpacing
=
family
->
otm
.
otmTextMetrics
.
tmAscent
+
family
->
otm
.
otmTextMetrics
.
tmDescent
+
family
->
otm
.
otmTextMetrics
.
tmExternalLeading
;
TRACE
(
"%d => %u
\n
"
,
family
->
otm
.
otmTextMetrics
.
tmHeight
,
*
LineSpacing
);
return
Ok
;
}
...
...
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