gdi: Add a stub for GdipCreateFontFamilyFromName

Michael Stefaniuc mstefani at redhat.com
Mon Mar 17 05:58:11 CDT 2008


Adam Petaccia wrote:
> This patch is needed for me to run Tabula Rasa.
> 
> This is my first patch, so please tell if I've broken conventions.
Please add the correct declarations for "struct GpFontCollection" and
"struct GpFontFamily". If you cannot find those on MSDN then check Mono;
that one seems to have them too. But please do not cut'n'paste.

bye
	michael

> ------------------------------------------------------------------------
> 
> diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c
> index be60843..e0a781c 100644
> --- a/dlls/gdiplus/font.c
> +++ b/dlls/gdiplus/font.c
> @@ -27,6 +27,9 @@
>  
>  #include "gdiplus.h"
>  #include "gdiplus_private.h"
> +#include "wine/debug.h"
> +
> +WINE_DEFAULT_DEBUG_CHANNEL(gdiplus);
>  
>  GpStatus WINGDIPAPI GdipCreateFontFromLogfontW(HDC hdc,
>      GDIPCONST LOGFONTW *logfont, GpFont **font)
> @@ -99,3 +102,10 @@ GpStatus WINGDIPAPI GdipGetLogFontW(GpFont *font, GpGraphics *graphics,
>  
>      return Ok;
>  }
> +
> +GpStatus WINGDIPAPI GdipCreateFontFamilyFromName(GDIPCONST WCHAR *name, struct GpFontCollection *fontCollection, struct GpFontFamily **FontFamily)
> +{
> +	FIXME("GdipCreateFontFamilyFromName: stub!\n");
> +
> +	return Ok;
> +}
> diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
> index 4aac0df..1fbc57a 100644
> --- a/dlls/gdiplus/gdiplus.spec
> +++ b/dlls/gdiplus/gdiplus.spec
> @@ -85,7 +85,7 @@
>  @ stdcall GdipCreateCustomLineCap(ptr ptr long long ptr)
>  @ stub GdipCreateEffect
>  @ stub GdipCreateFont
> -@ stub GdipCreateFontFamilyFromName
> +@ stdcall GdipCreateFontFamilyFromName(ptr ptr ptr)
>  @ stub GdipCreateFontFromDC
>  @ stdcall GdipCreateFontFromLogfontA(ptr ptr ptr)
>  @ stdcall GdipCreateFontFromLogfontW(ptr ptr ptr)
> diff --git a/dlls/gdiplus/gdiplus_private.h b/dlls/gdiplus/gdiplus_private.h
> index 09ef83f..cd6a7d5 100644
> --- a/dlls/gdiplus/gdiplus_private.h
> +++ b/dlls/gdiplus/gdiplus_private.h
> @@ -184,4 +184,9 @@ struct GpStringFormat{
>      StringAlignment vertalign;
>  };
>  
> +struct GpFontCollection{
> +};
> +
> +struct GpFontFamily{
> +};
>  #endif
> 
> 
> ------------------------------------------------------------------------
> 
> 


-- 
Michael Stefaniuc                           Tel.: +49-711-96437-199
Consulting Communications Engineer          Fax.: +49-711-96437-111
--------------------------------------------------------------------
Reg. Adresse: Red Hat GmbH, Hauptstätter Strasse 58, 70178 Stuttgart
Handelsregister: Amtsgericht Stuttgart HRB 153243
Geschäftsführer: Brendan Lane, Charlie Peters, Michael Cunningham,
                 Werner Knoblich



More information about the wine-devel mailing list