The font
assignment method is used to change the font of
the currently selected text.
font(obj)# S3 method for default
font(obj)
font(obj) <- value
font(obj) <- value
# S3 method for GText
font (obj) <- value
object
The font specification is given in terms of a named vector or list where the names indicate a font attribute and the value a reasonable choice:
c("light", "normal", "medium", "bold", "heavy")
c("normal", "oblique", "italic")
c("sans", "helvetica", "times", "monospace")
an integer, say c(6,8,10,11,12,14,16,18,20, 24,36,72)
One of colors()
One of colors()
c("xx-large", "x-large", "large" , "medium", "small", "x-small", "xx-small")
These are from Gtk's font specs, which though fairly standard, may not be totally supported in the other toolkits.