Page 1 of 1

Spacing and width of text

Posted: Fri Jul 31, 2020 11:23 am
by freedom
Is there a way to adjust the spacing or width of text being displayed? Thanks!

Re: Spacing and width of text

Posted: Fri Jul 31, 2020 12:59 pm
by JackZ
AFAIK the answer is No.
The only parameters on text styles are the one exposed on the wiki page here.
https://siminnovations.com/wiki/index.php?title=Txt_add

But maybe Corjan can elaborate furthermore, I recall back in the days of v2.x it was based on CSS properties, don’t know if it’s still the case.

If you want to adjust the displayed text layout, two solutions:
1-create the text string to be displayed as an image. In Skinman you have a great deal of control over text spacing and width, you can even write vertical text or along a curved path.
text samples.jpg
2- Create a string resource for each letter and play with pixel position for each character. If created as an image (if you plan on reusability, I suggest you create an array of 32 images, one for each letter), you can use move(image_resource,nil,nil,horiz_size,nil) to resize each image horizontally

Jacques

Re: Spacing and width of text

Posted: Fri Jul 31, 2020 1:42 pm
by JackZ
I just checked and the CSS properties other than the one mentioned such as letter-spacing:8px; doesn't seem to be working alas.

Jacques

Re: Spacing and width of text

Posted: Fri Jul 31, 2020 11:27 pm
by freedom
Thx. May explore further on the graphical approach