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

3.3.16 TTF_FontFaceFamilyName

char * TTF_FontFaceFamilyName(const 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.14 TTF_FontFaces,
3.3.15 TTF_FontFaceIsFixedWidth,
3.3.17 TTF_FontFaceStyleName



This document was generated on November, 13 2009 using texi2html