[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
SDL_Surface *TTF_RenderUTF8_Blended(TTF_Font *font,
const char *text, SDL_Color fg)
Render the UTF8 encoded text using font with fg color onto a new surface, using the Blended mode (see section Blended). The caller (you!) is responsible for freeing any returned surface.
NOTE: Passing a NULL font into this function will cause a segfault.
NOTE: Passing a NULL text into this function will result in undefined behavior.
Returns: a pointer to a new SDL_Surface. NULL is returned on errors.
Note that this example uses the same text as in the LATIN1 example, that is because plain ASCII is UTF8 compatible.
|
See Also:
3.3.21 TTF_SizeUTF8,
3.4.9 TTF_RenderText_Blended,
3.4.11 TTF_RenderUNICODE_Blended,
3.4.12 TTF_RenderGlyph_Blended,
3.4.2 TTF_RenderUTF8_Solid,
3.4.6 TTF_RenderUTF8_Shaded