TSC AUTO ID Technology Co., Ltd. 163 Copyright 2013 All Rights Reserved.
TEXTPIXEL( )
Description
Returns the width of the text string in dot.
Syntax
TEXTPIXEL (cont$,font$,size)
The content of text string.
The font type. Please refer to the parameter font in command TEXT.
The font size. Please refer to the parameter x-multiplication in command
TEXT.
Note:
This command has been supported since V6.61 EZ and later firmware.
Example
See Also
TEXT, BARCODEPIXEL()
Sample code
DOWNLOAD "TEST.BAS"
str$="ABCDEFG"
font$="3"
fontsize=3
strwidth=TEXTPIXEL(str$,font$,fontsize)
SIZE 4,1
GAP 0,0
DIRECTION 1
CLS
TEXT 10,10,font$,0,fontsize,fontsize,str$
REVERSE 8,8,strwidth,72
PRINT 1
EOP
TEST