Module: wine Branch: master Commit: 542e30b5319c43a32034861f67b1b7dc4371c9b7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=542e30b5319c43a32034861f67...
Author: Dmitry Timoshkov dmitry@baikal.ru Date: Tue May 1 15:47:51 2012 +0900
gdiplus: Add more traces to font APIs.
---
dlls/gdiplus/font.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c index 8e61aba..7cc5910 100644 --- a/dlls/gdiplus/font.c +++ b/dlls/gdiplus/font.c @@ -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; }