Canvas_Font

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Types > Canvas Control > Canvas Control Commands >

Canvas_Font

 

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