Brother International TD-4420TN FBPL Command Reference - Page 178
TEXTPIXEL, Description, Syntax, Example, See Also
![]() |
View all Brother International TD-4420TN manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 178 highlights
10.46 TEXTPIXEL() Description Return the width of the text string in dots. Syntax TEXTPIXEL(cont$,font$,size) Parameter cont$ Font $ Size Description Content of text string. Font type. See the font parameter in TEXT command. Font size. See the x-multiplication parameter in TEXT command. Example Sample code Result 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 See Also TEXT, BARCODEPIXEL() 173
![](/manual_guide/products/brother-international-td4420tn-fbpl-command-reference-a4fb318/178.png)
173
10.46 TEXTPIXEL()
Description
Return the width of the text string in dots.
Syntax
TEXTPIXEL(cont$,font$,size)
Parameter
Description
cont$
Content of text string.
Font $
Font type. See the
font
parameter in
TEXT
command.
Size
Font size. See the
x-multiplication
parameter in
TEXT
command.
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
Result