Contents Previous Next Subchapters

Setting Graphics Text Font Type Face
Syntax functionfont(type face)
See Also gaddtext , gxtitle , and gxtick(form)

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 argument type face is a character row vector specifying the name of the font (the available font names can be determined using gfontname ).

If a graphic font is not specified using functionfont, the default font name is "Courier New". The size can be set using gtitlefont(type face, size) and its default value is 12. The color can be set using gtitlefont(type face, size, color) and its default value is "black". The special styles "bold", "italic", "underline", and "overstrike" can be turned on using gtitlefont(type face, size, color, styles) and the default is for them to be turned off.

If you enter
     gaddtext("abg", [.5, .5])
O-Matrix will place the Greek letters alpha, beta, and gamma in the center of the Graphic 0 window because they correspond to the call to gaddtext. On the other hand, the title at the top of the window will be "abg" because the font for the gtitle function was not changed.