chickadee » sdl2-ttf » font-style-set!

font-style fontprocedure
set! (font-style font) stylesetter
font-style-set! font stylesetter

Get or set the ttf:font's style, as a list of zero or more of the following symbols:

  • bold
  • italic
  • underline
  • strikethrough

Returns an empty list if the font has no style. See TTF_FontGetStyle and TTF_FontSetStyle.

The setters accept either a list of symbols or an integer, representing bitwise-or'd integer constants.

NOTE: Bold and italic styles perform automatic adjustment of the font. The results sometimes do not look very good. For better-looking results, you should instead load the bold or italic versions of your font as a separate ttf:font.