Font, 1 user font commands, 13 font – Argox PA-20 Basic Programming Manual User Manual

Page 68

Advertising
background image

PT-Basic Programming Manual Ver. 1.00

67/143

3.13 Font

This utility “SDK Tool” can be used as the following:

When you need a font file for your application, you can make the font file by
“SDK Tool”, the font generator can help you making a font file.

3.13.1 User font commands

DISPFONT_SETFONT

Purpose: To set user font from font file.

Syntax: A%=DISPFONT_SETFONT(FontID% ,FontPath$)

Example: A%=DISPFONT_SETFONT(2,"D:\Fonts\Font16.cft")

Description: A% is an integer variable to be assigned to the result.

A%

Meaning

0

Set font fail

1

Set font OK

Several key arguments as below:

FontID%

Font ID (2~9)

FontPath$

Font file path

DISPFONT_INFO_TYPE

Purpose: To get font type.

Syntax: A%=DISPFONT_INFO_TYPE(FontID%)

Example: A%=DISPFONT_INFO_TYPE(2)

Description: A% is an integer variable to be assigned to the result.

FontID% is an integer variable in the range from 2 to 9.

DISPFONT_INFO_HEIGHT

Purpose: To get font height.

Syntax: A%=DISPFONT_INFO_HEIGHT(FontID%)

Example: C%=DISPFONT_INFO_HEIGHT(2)

Description: A% is an integer variable to be assigned to the result.

FontID% is an integer variable in the range from 2 to 9.

Advertising