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

3.3.17 TTF_FontFaceStyleName

char * TTF_FontFaceStyleName(const TTF_Font *font)

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

Get the current font face style 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 style name of of the face of the font, or NULL perhaps.

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

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

See Also:
3.3.14 TTF_FontFaces,
3.3.15 TTF_FontFaceIsFixedWidth,
3.3.16 TTF_FontFaceFamilyName



This document was generated on November, 13 2009 using texi2html