At the beginning of the script you need to 'DEFINE STYLE' to set the values for the font you want to use.
DEFINE STYLE "name_string" font_family, size, anchor, face_code
Then just before the TEXT2 command you have to 'SET STYLE' to use it.
SET STYLE "name_string"
You can define as many fonts styles as you want (all with different names) and then set them just before you want to use them.
The font_family, size, anchor, face_code variables can all be parameters so that your user of the object can change them in the object settings.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11