Font.render

Wraps TTF_RenderGlyph_Solid, TTF_RenderGlyph_Shaded, TTF_RenderGlyph_Blended, and additionally TTF_RenderGlyph_LCD (from SDL_ttf 2.20) to render a glyph in the dsdl2.ttf.Font

Parameters

glyph wchar

wchar glyph to render

foreground Color

foreground dsdl2.Color of the glyph

background Color

background dsdl2.Color of the resulted surface (only for RenderQuality.shaded and RenderQuality.lcd)

quality RenderQuality

dsdl2.ttf.RenderQuality of the resulted render

Return Value

Type: Surface

dsdl2.Surface containing the rendered glyph

Throws

dsdl.SDLException if failed to render glyph

Meta