Original Author Paul Laughton, 2011
Page 170
De Re BASIC!
Gr.text.strike {{<lexp>}{,<paint_nexp>}}
Turns overstrike on or off on text objects drawn after this command is issued:
If the value of the strike parameter <lexp> is false (0), text strike is turned off.
If the parameter value is true (not zero), text will be drawn with a strike-through line.
If the parameter is omitted, the bold setting is toggled.
You may use the optional Paint pointer parameter <paint_nexp> to specify a Paint object to modify.
Normally this parameter is omitted. See Gr.color, Advanced usage for more information.
Gr.text.underline {{<lexp>}{,<paint_nexp>}}
Turns underlining on or off on text objects drawn after this command is issued:
If the value of the underline parameter <lexp> is false (0), text underlining is turned off.
If the parameter value is true (not zero), drawn text will be underlined.
If the parameter is omitted, the underline setting is toggled.
You may use the optional Paint pointer parameter <paint_nexp> to specify a Paint object to modify.
Normally this parameter is omitted. See Gr.color, Advanced usage for more information.
Gr.text.setfont {{<font_ptr_nexp>|<font_family_sexp>} {, <style_sexp>}
{,<paint_nexp>}}
Set the text font, specifying typeface and style. Both of these parameters are optional. This command is
similar to the older Gr.text.typeface, but it is more flexible.
If the font parameter is a numerical expression <font_ptr_nexp>, it must be a font pointer value
returned by the Font.load command. You cannot modify the style of a font once it is loaded, so the the
style parameter <style_sexp> is ignored.
If the font parameter is a string expression <font_family_sexp>, it must specify one of the font families
available on your Android device. If your device does not recognize the string, the font is set to the
system default font typeface. On most systems, the default is "sans serif".
The standard font families are "monospace", "serif", and "sans serif". Some more recent versions of
Android also support "sans-serif", "sans-serif-light", "sans-serif-condensed", and "sans-serif-thin". The
font family names are not case-sensitive: "Serif" or "SERIF" works as well as "serif".
If you omit the font parameter, the command sets the most recently loaded font (see Font.load). If you
have deleted fonts (see Font.delete), the command sets the most recently loaded font that has not been
deleted. If you have not loaded any fonts, or if you have cleared them (see Font.clear), the command
sets the default font family.
If you specify a font family, you can use the style parameter <style_sexp> to change the font's
appearance. The parameter value must be one of the style strings shown in the table below. You may
use either the full style name or an abbreviation as shown. The parameter is not case-senstive: "BOLD",
"bold", "Bold", and "bOlD" are all the same. If you use any other string, or if you omit the style
parameter, the style is set to "NORMAL".