Commit c9d4046b authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

gdiplus: Add TRACE(..) for font calls.

parent 69e17d6a
...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment