gdi: Add a stub for GdipCreateFontFamilyFromName

Adam Petaccia adam at tpetaccia.com
Mon Mar 17 11:35:37 CDT 2008


On Mon, 2008-03-17 at 11:58 +0100, Michael Stefaniuc wrote:
> 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.
I believe they are abstract classes with no members of their own, but
I'm not sure how to write that in C. I'll take a look at similar wine
code in a bit, but does anyone have any pointers on where I should
start?

> 
> 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
> > 
> > 
> > ------------------------------------------------------------------------
> > 
> > 
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20080317/e1ec07b8/attachment.pgp 


More information about the wine-devel mailing list