
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
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
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.
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.
T P C 7 0 3 0
Programming Manual Ver. 1.00
65/131