Spacing and width of text

Help and techniques for creating Air Manager Instrument Graphics

Moderators: Ralph, russ

Post Reply
Message
Author
freedom
Posts: 57
Joined: Wed Jul 29, 2020 2:41 pm

Spacing and width of text

#1 Post by freedom » Fri Jul 31, 2020 11:23 am

Is there a way to adjust the spacing or width of text being displayed? Thanks!

JackZ
Posts: 1851
Joined: Mon Feb 22, 2016 1:02 pm

Re: Spacing and width of text

#2 Post by JackZ » Fri Jul 31, 2020 12:59 pm

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
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

JackZ
Posts: 1851
Joined: Mon Feb 22, 2016 1:02 pm

Re: Spacing and width of text

#3 Post by JackZ » Fri Jul 31, 2020 1:42 pm

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
My YouTube Chanel on the A320 (Real SOPs by an Airline Pilot IRL):
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ

freedom
Posts: 57
Joined: Wed Jul 29, 2020 2:41 pm

Re: Spacing and width of text

#4 Post by freedom » Fri Jul 31, 2020 11:27 pm

Thx. May explore further on the graphical approach

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest