It works by double printing, with an X, Y or both offset for the 2nd print. I'll be using the X Shifted version which gives the best effect.
(Cicciocb, how do I implement syntax highlighting in this editor, as you did to my other post?)
Code: [Local Link Removed for Guests]
pause 2500
TFT.INIT 1
TFT.TEXT.FONT 4
TFT.TEXT.SIZE 1
TFT.BRIGHTNESS 255
TFT.TEXT.COL yellow
PrintAt 20,15,"This is normal text."
PrintAtBld 20,40, "This is very bold text."
PrintAtBldY 20,65, "This is Y shifted bold text."
PrintAtBldX 20,90, "This is X shifted bold text."
TFT.RECT 0,115,319,125,green,1
TFT.TEXT.COL black
PrintAt 20,120,"This is normal text."
PrintAtBld 20,145, "This is very bold text."
PrintAtBldY 20,170, "This is Y shifted bold text."
PrintAtBldX 20,195, "This is X shifted bold text."
end
sub PrintAt(x,y,t$)
tft.text.pos x,y
tft.print t$
end sub
sub PrintAtBld(x,y,t$)
tft.text.pos x,y
tft.print t$
tft.text.pos x+1,y+1
tft.print t$
end sub
sub PrintAtBldY(x,y,t$)
tft.text.pos x,y
tft.print t$
tft.text.pos x,y+1
tft.print t$
end sub
sub PrintAtBldX(x,y,t$)
tft.text.pos x,y
tft.print t$
tft.text.pos x+1,y
tft.print t$
end sub