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
Lorenzo Ferrillo
wine
Commits
542e30b5
Commit
542e30b5
authored
12 years ago
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
gdiplus: Add more traces to font APIs.
parent
782c543a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/gdiplus/font.c
+10
-0
10 additions, 0 deletions
dlls/gdiplus/font.c
with
10 additions
and
0 deletions
dlls/gdiplus/font.c
+
10
−
0
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
;
}
...
...
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