Classes

Method XbpPresSpace():setFont() Foundation

Sets or returns the font used to display characters drawn with GraStringAt().

Syntax
:setFont( [<oXbpFont>] ) --> oXbpCurrentFont
Parameters
<oXbpFont>
<oXbpFont> is a font object that determines the font for all characters drawn using GraStringAt(). A font object is provided by the XbpFont class (see XbpFont() for more information).
Return

The :setFont() method returns the current font object. When a new font is set, this method returns the previously set font object.

Description

The :setFont() method determines the font used for the graphic output of characters or character strings in the presentation space. The font is provided by an XbpFont object (see XbpFont()). The :setFont() method installs an XbpFont object which is used by the function GraStringAt() to display characters.

The functional equivalent of the method :setFont() is the function GraSetFont(). Further information is found in the discussion of the GraSetFont() function.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.