[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
void TTF_SetFontStyle(TTF_Font *font, int style)
Set the rendering style of the loaded font.
NOTE: Passing a NULL font into this function will cause a segfault.
NOTE: This will flush the internal cache of previously rendered glyphs, even if
there is no change in style, so it may be best to check the current style using TTF_GetFontStyle first.
NOTE: I've seen that combining TTF_STYLE_UNDERLINE with anything can cause a segfault, other combinations may also do this. Some brave soul may find the cause of this and fix it...
|
See Also:
3.3.2 TTF_GetFontStyle,
5. Defines