gdiplus: Implement GdipGetFamilyName.
This commit is contained in:
parent
d5b8c9d870
commit
ce4b414845
|
@ -219,6 +219,39 @@ GpStatus WINGDIPAPI GdipCreateFontFamilyFromName(GDIPCONST WCHAR *name,
|
|||
return Ok;
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
* GdipGetFamilyName [GDIPLUS.@]
|
||||
*
|
||||
* Returns the family name into name
|
||||
*
|
||||
* PARAMS
|
||||
* *family [I] Family to retrieve from
|
||||
* *name [O] WCHARS of the family name
|
||||
* LANGID [I] charset
|
||||
*
|
||||
* RETURNS
|
||||
* SUCCESS: Ok
|
||||
* FAILURE: InvalidParameter if family is NULL
|
||||
*
|
||||
* NOTES
|
||||
* If name is a NULL ptr, then both XP and Vista will crash (so we do as well)
|
||||
*/
|
||||
GpStatus WINGDIPAPI GdipGetFamilyName (GDIPCONST GpFontFamily *family,
|
||||
WCHAR *name, LANGID language)
|
||||
{
|
||||
if (family == NULL)
|
||||
return InvalidParameter;
|
||||
|
||||
TRACE("%p, %p, %d\n", family, name, language);
|
||||
|
||||
if (language != LANG_NEUTRAL)
|
||||
FIXME("No support for handling of multiple languages!\n");
|
||||
|
||||
lstrcpynW (name, family->FamilyName, LF_FACESIZE);
|
||||
|
||||
return Ok;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
* GdipDeleteFontFamily [GDIPLUS.@]
|
||||
|
|
|
@ -264,7 +264,7 @@
|
|||
@ stub GdipGetEncoderParameterList
|
||||
@ stub GdipGetEncoderParameterListSize
|
||||
@ stub GdipGetFamily
|
||||
@ stub GdipGetFamilyName
|
||||
@ stdcall GdipGetFamilyName(ptr ptr long)
|
||||
@ stub GdipGetFontCollectionFamilyCount
|
||||
@ stub GdipGetFontCollectionFamilyList
|
||||
@ stub GdipGetFontHeight
|
||||
|
|
|
@ -351,6 +351,7 @@ GpStatus WINGDIPAPI GdipCloneFont(GpFont*,GpFont**);
|
|||
GpStatus WINGDIPAPI GdipCreateFontFamilyFromName(GDIPCONST WCHAR*,
|
||||
GpFontCollection*, GpFontFamily**);
|
||||
GpStatus WINGDIPAPI GdipDeleteFontFamily(GpFontFamily*);
|
||||
GpStatus WINGDIPAPI GdipGetFamilyName(GDIPCONST GpFontFamily*, WCHAR*, LANGID);
|
||||
|
||||
GpStatus WINGDIPAPI GdipCreateStringFormat(INT,LANGID,GpStringFormat**);
|
||||
GpStatus WINGDIPAPI GdipDeleteStringFormat(GpStringFormat*);
|
||||
|
|
Loading…
Reference in New Issue