[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.3.10 TTF_FontFaceFamilyName

char * TTF_FontFaceFamilyName(TTF_Font *font)

font
The loaded font to get the current face family name of.

Get the current font face family name from the loaded font. This function may return a NULL pointer, in which case the information is not available.
NOTE: Passing a NULL font into this function will cause a segfault.

Returns: The current family name of of the face of the font, or NULL perhaps.

 
// get the loaded font's face name
//TTF_Font *font;

char *familyname=TTF_FontFaceFamilyName(font);
if(familyname)
    printf("The family name of the face in the font is: %s\n", familyname);

See Also:
3.3.8 TTF_FontFaces,
3.3.9 TTF_FontFaceIsFixedWidth,
3.3.11 TTF_FontFaceStyleName



This document was generated on January, 14 2006 using texi2html