Spacing and width of text
Spacing and width of text
Is there a way to adjust the spacing or width of text being displayed? Thanks!
Re: Spacing and width of text
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. 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
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. 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
Last edited by JackZ on Fri Jul 31, 2020 2:14 pm, edited 5 times in total.
My YouTube Chanel on the A320 (Real SOPs by an Airline Pilot IRL):
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ
Re: Spacing and width of text
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
Jacques
My YouTube Chanel on the A320 (Real SOPs by an Airline Pilot IRL):
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ
Re: Spacing and width of text
Thx. May explore further on the graphical approach