en:font [BASIC 256 - Language Documentation]

# BASIC 256 - Language Documentation

en:font

## Font (Statement)

### Format

font font_name, point, weight
font ( font_name, point, weight )

### Description

Sets the font used by the text command to font_name. The size that the font will be draw on on the screen is defined in points (1/72”). The third value represents the line weight (from 1 to 100) used in drawing the text on the screen. Typical weights are: Light=25, Normal=50, and Bold=75.

### Example

    color grey
    rect 0,0,graphwidth,graphheight
    color red
    font "Times New Roman",18,50
    text 10,100,"This is Times New Roman"
    color darkgreen
    font "Tahoma",28,100
    text 10,200,"This is BOLD!"

Will draw.

### See Also

Font, Text, TextHeight, TextWidth

### New To Version

0.9.4

en/font.txt · Last modified: 2014/02/07 12:42 by admin