setFont


procedure setFont(fontFace, fontStyle, fontSize);

Sets the font to be used for displaying text.
The 'fontFace' can be any of the following predefined constants:


The 'fontStyle' can be any of the following predefined constants:
These styles may be combined together using the logical operator or. For exaple, to create the font that is bold and underlined, use (FONT_STYLE_BOLD or FONT_STYLE_UNDERLINE) as the value for the font style.
The font size can be any of the following predefined constants:

Note that some devices use only one font, so calling setFont will have no effect on those devices.

  begin
    setFont(FONT_FACE_SYSTEM, FONT_STYLE_BOLD or FONT_STYLE_UNDERLINE, FONT_SIZE_LARGE);
    drawText('Hello world', 0, 0);
    repaint;
    delay(1000);
  end.

See also: setDefaultFont, setColor, repaint