[SDL] Border around text with TTF_RenderText

Clemens Kirchgatterer clemens at 1541.org
Sat Jun 9 02:37:29 PDT 2007


Sam Crow <samuraileumas at yahoo.com> wrote:

> In other words, blit border color to destination surface position
> x-1,y-1 then x,y-1 then x+1,y-1 then x-1,y then x+1,y then x-1,y+1
> then x, y+1 then x+1, y+1 then you draw the color you want for your
> text itself at x,y.  At least that's how it's done with bitmap
> fonts...

but keep in mind, that this works only for non anti-aliased glyphs.

clemens


More information about the SDL mailing list