Function SetFont

SetFont(face)
The function sets a font face for all upcoming text drawing call. Example:
SetFont ("Comic Sans Ms")
SetFontSize (50)
DrawText (100, 100, "Hello World")
This is how result would look like (red coordinates are just for reference):


Different fonts may be installed on different machines, but the most common fonts are:
  • Arial, Helvetica, Sans-Serif.
  • Arial Black, Gadget, Sans-Serif.
  • Comic Sans MS, Textile, Cursive.
  • Courier New, Courier, Monospace.
  • Georgia, Times New Roman, Times, Serif.
  • Impact, Charcoal, Sans-Serif.
  • Lucida Console, Monaco, Monospace.
  • Lucida Sans Unicode, Lucida Grande, Sans-Serif.

See also: