Navigation
Synopsis Define font to be used for text.
Function FProperty font(str fname)
Description Sets the font to be used for text. See fontNames for a list of available fonts.
Examples
t1 = text("Rascal", font("Serif"), fontColor("Blue"));
render(t1);
font 1

t2 = text("Rascal", font("Monospaced"), fontColor("Red"));
render(t2);
font 2
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.