Function SetFontStyle

SetFontStyle(style)
The function sets a font size for all upcoming text drawing call. Example:
SetFontSize(25)
SetFontStyle("Bold") ' Bold font style
DrawText(100, 125, "Hello World")
SetFontStyle("BIUS") ' Bold, italic, underline and strikethrough style
DrawText (100, 225, "Hello World")
This is how result would look like (red coordinates are just for reference):


Font styles could be defined by one of the following words:
  • Normal
  • Bold
  • Italic
  • Underline
  • Strikethrough
Or by commination of first letters:
  • B - for bold
  • I - for italic
  • U - for underline
  • S - for strikethrough

See also: