FutureBasic Logo

<<    Index    >> FutureBasic

text   statement



Syntax
text [fontName [, fontSize [, foregroundColor [, backgroundColor [, alignment [, tabInterval ] ] ] ] ] ]
text no parameters

Requires
macOS 10.11+

Description
The text statement sets the text attributes for the current window. It affects subsequent print statements in the current window. It does not change the appearance of any existing text.
All parameters are optional. If you omit a parameter, the corresponding attribute won't be changed.
text with no parameters resets all styles to their default values (@"Menlo", 12, textColor, clearColor, NSTextAlignmentLeft).

Parameters
Parameter
Description
fontName The name of the font as a CFStringRef.
fontSize The font size in points.
foregroundColor The text color as a ColorRef (NSColor).
backgroundColor The text background color as a ColorRef (NSColor).
alignment The text alignment. Supported values are:
NSTextAlignmentLeft
NSTextAlignmentRight
NSTextAlignmentCenter
The location of the aligned text is determined by the window width at the time the text is drawn.
tabInterval The tab interval.
 
See also
print