Navigation:  thinBasic Modules > UI (User Interface) > Dedicated Control Functions > Canvas Control >

Canvas_Font

Previous pageReturn to chapter overviewNext page

 

Description

 

Select the font to be used for the next Canvas statements.

 

Syntax

 

n = Canvas_Font( fontname , points, style)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

fontname

String

No

The name of the font.

points

Number

No

The size of the font, in points.

style

Number

No

Font style attribute. Any of the following values can be combined or used alone:

%Canvas_FontStyle_Normal  

%Canvas_FontStyle_Bold    

%Canvas_FontStyle_Italic  

%Canvas_FontStyle_Underline

%Canvas_FontStyle_StrikeOut

 

Remarks

 

Restrictions

 

See also

 

Examples