SDL_ttf API

The sdl.ttf module exposes the SDL_ttf API without the TTF_ prefix.

See also http://www.libsdl.org/projects/SDL_ttf/

sdl.ttf.fontLineSkip(font)

int TTF_FontLineSkip(TTF_Font const *)

sdl.ttf.renderUTF8_Blended(font, text, fg)

SDL_Surface * TTF_RenderUTF8_Blended(TTF_Font *, char const *, SDL_Color)

sdl.ttf.renderUNICODE_Blended_Wrapped(font, text, fg, wrapLength)

SDL_Surface * TTF_RenderUNICODE_Blended_Wrapped(TTF_Font *, uint16_t const *, SDL_Color, uint32_t)

sdl.ttf.setFontHinting(font, hinting)

void TTF_SetFontHinting(TTF_Font *, int)

sdl.ttf.fontFaceStyleName(font)

char * TTF_FontFaceStyleName(TTF_Font const *)

sdl.ttf.fontFaces(font)

long TTF_FontFaces(TTF_Font const *)

sdl.ttf.fontFaceIsFixedWidth(font)

int TTF_FontFaceIsFixedWidth(TTF_Font const *)

sdl.ttf.openFontIndexRW(src, freesrc, ptsize, index)

TTF_Font * TTF_OpenFontIndexRW(SDL_RWops *, int, int, long)

sdl.ttf.openFontIndex(file, ptsize, index)

TTF_Font * TTF_OpenFontIndex(char const *, int, long)

sdl.ttf.openFontRW(src, freesrc, ptsize)

TTF_Font * TTF_OpenFontRW(SDL_RWops *, int, int)

sdl.ttf.setFontOutline(font, outline)

void TTF_SetFontOutline(TTF_Font *, int)

sdl.ttf.sizeUTF8(font, text, w=None, h=None)

int TTF_SizeUTF8(TTF_Font *, char const *, int *, int *)

sdl.ttf.sizeUNICODE(font, text=None, w=None, h=None)

int TTF_SizeUNICODE(TTF_Font *, uint16_t const *, int *, int *)

sdl.ttf.openFont(file, ptsize)

TTF_Font * TTF_OpenFont(char const *, int)

sdl.ttf.quit()

void TTF_Quit(void)

sdl.ttf.renderGlyph_Blended(font, ch, fg)

SDL_Surface * TTF_RenderGlyph_Blended(TTF_Font *, uint16_t, SDL_Color)

sdl.ttf.setFontStyle(font, style)

void TTF_SetFontStyle(TTF_Font *, int)

sdl.ttf.renderUTF8_Blended_Wrapped(font, text, fg, wrapLength)

SDL_Surface * TTF_RenderUTF8_Blended_Wrapped(TTF_Font *, char const *, SDL_Color, uint32_t)

sdl.ttf.getFontHinting(font)

int TTF_GetFontHinting(TTF_Font const *)

sdl.ttf.getFontOutline(font)

int TTF_GetFontOutline(TTF_Font const *)

sdl.ttf.sizeText(font, text, w=None, h=None)

int TTF_SizeText(TTF_Font *, char const *, int *, int *)

sdl.ttf.fontAscent(font)

int TTF_FontAscent(TTF_Font const *)

sdl.ttf.init()

int TTF_Init(void)

sdl.ttf.renderUTF8_Solid(font, text, fg)

SDL_Surface * TTF_RenderUTF8_Solid(TTF_Font *, char const *, SDL_Color)

sdl.ttf.renderUTF8_Shaded(font, text, fg, bg)

SDL_Surface * TTF_RenderUTF8_Shaded(TTF_Font *, char const *, SDL_Color, SDL_Color)

sdl.ttf.getFontKerning(font)

int TTF_GetFontKerning(TTF_Font const *)

sdl.ttf.renderText_Blended(font, text, fg)

SDL_Surface * TTF_RenderText_Blended(TTF_Font *, char const *, SDL_Color)

sdl.ttf.byteSwappedUNICODE(swapped)

void TTF_ByteSwappedUNICODE(int)

sdl.ttf.renderUNICODE_Solid(font, text, fg)

SDL_Surface * TTF_RenderUNICODE_Solid(TTF_Font *, uint16_t const *, SDL_Color)

sdl.ttf.closeFont(font)

void TTF_CloseFont(TTF_Font *)

sdl.ttf.getFontKerningSize(font, prev_index, index)

int TTF_GetFontKerningSize(TTF_Font *, int, int)

sdl.ttf.glyphMetrics(font, ch, minx=None, maxx=None, miny=None, maxy=None, advance=None)

int TTF_GlyphMetrics(TTF_Font *, uint16_t, int *, int *, int *, int *, int *)

sdl.ttf.renderGlyph_Shaded(font, ch, fg, bg)

SDL_Surface * TTF_RenderGlyph_Shaded(TTF_Font *, uint16_t, SDL_Color, SDL_Color)

sdl.ttf.wasInit()

int TTF_WasInit(void)

sdl.ttf.setFontKerning(font, allowed)

void TTF_SetFontKerning(TTF_Font *, int)

sdl.ttf.fontHeight(font)

int TTF_FontHeight(TTF_Font const *)

sdl.ttf.renderUNICODE_Shaded(font, text, fg, bg)

SDL_Surface * TTF_RenderUNICODE_Shaded(TTF_Font *, uint16_t const *, SDL_Color, SDL_Color)

sdl.ttf.renderText_Blended_Wrapped(font, text, fg, wrapLength)

SDL_Surface * TTF_RenderText_Blended_Wrapped(TTF_Font *, char const *, SDL_Color, uint32_t)

sdl.ttf.renderUNICODE_Blended(font, text, fg)

SDL_Surface * TTF_RenderUNICODE_Blended(TTF_Font *, uint16_t const *, SDL_Color)

sdl.ttf.renderGlyph_Solid(font, ch, fg)

SDL_Surface * TTF_RenderGlyph_Solid(TTF_Font *, uint16_t, SDL_Color)

sdl.ttf.linked_Version()

SDL_version const * TTF_Linked_Version(void)

sdl.ttf.getFontStyle(font)

int TTF_GetFontStyle(TTF_Font const *)

sdl.ttf.fontDescent(font)

int TTF_FontDescent(TTF_Font const *)

sdl.ttf.renderText_Solid(font, text, fg)

SDL_Surface * TTF_RenderText_Solid(TTF_Font *, char const *, SDL_Color)

sdl.ttf.renderText_Shaded(font, text, fg, bg)

SDL_Surface * TTF_RenderText_Shaded(TTF_Font *, char const *, SDL_Color, SDL_Color)

sdl.ttf.Font

alias of TTF_Font

sdl.ttf.glyphIsProvided(font, ch)

int TTF_GlyphIsProvided(TTF_Font const *, uint16_t)

sdl.ttf.fontFaceFamilyName(font)

char * TTF_FontFaceFamilyName(TTF_Font const *)

Previous topic

SDL_mixer API

Next topic

License

This Page