chickadee » sdl2-ttf » render-text-shaded*

render-text-shaded font text fg bgprocedure
render-text-shaded* font text fg bgprocedure

Render the given Latin-1-encoded text using "shaded" rendering mode. See TTF_RenderText_Shaded.

  • font must be a ttf:font specifying the font to render with.
  • text must be a Latin-1 (ISO 8859-1) encoded string specifying the text to render.
  • fg must be a sdl2:color specifying the foreground color, i.e. the color of the text itself.
  • bg must be a sdl2:color specifying the background color.

Returns a sdl2:surface containing the rendered text. Signals an exception of kind (exn sdl2) if an error occurred.

  • render-text-shaded returns a managed sdl2:surface.
  • render-text-shaded* returns an unmanaged sdl2:surface, which must be freed with free-surface! (from the sdl2 egg) when you are done with it.