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

3.3.11 TTF_FontFaceStyleName

char * TTF_FontFaceStyleName(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.8 TTF_FontFaces,
3.3.9 TTF_FontFaceIsFixedWidth,
3.3.10 TTF_FontFaceFamilyName



This document was generated on January, 14 2006 using texi2html