Font.render

Wraps TTF_RenderGlyph32_Solid, TTF_RenderGlyph32_Shaded, TTF_RenderGlyph32_Blended (from SDL_ttf 2.0.18), and additionally TTF_RenderGlyph32_LCD (from SDL_ttf 2.20) to render a glyph in the dsdl2.ttf.Font

Parameters

glyph dchar

dchar 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