Contents Previous Next Subchapters

Setting Graphics Text Font Color
Syntax functionfont(type facesizecolor)
See Also gtitlefont(type face, size) and gtitlefont(type face, size, color, styles)

Description
Sets the font for subsequent calls to the specified function, where function is one of the following: gaddtext, gtitle, gxtitle, gytitle, gztitle, gxtick, gytick, or gztick. The color of the font is specified by the character row vector color (see gcolor for a list of the valid colors). The argument type face is described in gtitlefont(type face) , and the argument size is described in gtitlefont(type face, size) . The special styles "bold", "italic", "underline", and "overstrike" are turned off.

Example
If you enter
     ginit
     typeface = "symbol"
     size     = 16
     color    = "red"
     gaddtextfont(typeface, size, color)
     gaddtext("abg", [.5, .5])
O-Matrix will place a large red version the Greek letters alpha, beta, and gamma in the center of the Graphic 0 window.