Page 1 of 1

Need advise to fill in text value from right to left

Posted: Fri Jan 10, 2020 12:08 pm
by Michael P
Hi All,

I am facing some difficulties with one of my labels.
We have received a request to create a label where the value has to be filled in a border area.
This is a recognition pattern for a specific device .

I have created the design.( see attached).
I had to use the "mask" feature to have each character centered correctly in the border.
This design works fine when the max character (3) are filled in.

But one of the requirement is when there is only 1 character.
It should fill the right border first. if i only use 1 character it will fill the left one.
Is there any ways to have text start filling from right to left ?

I tried to put leading "0" as a workaround, but this was rejected. it should only show the requested values

Maybe someone had to make a similar project and found a solution to this ?
Any help is appreciated, thanks in advance.

Re: Need advise to fill in text value from right to left

Posted: Fri Jan 10, 2020 12:54 pm
by Saso
If you would not use "mask" feature, a quick solution would be setting the Text object's anchoring point to top-right. This forces the Text object to resize to left side.
screenshot.png
screenshot.png (15.65 KiB) Viewed 2863 times
Unfortunately, the "mask" feature cannot be configured to work from right to left. So this will not work.

A workaround can be breaking the 3-digit value into individual digits and linking them with individial Text objects. I used Python script to break the value apart into digits.
screenshot1.png
screenshot1.png (13.55 KiB) Viewed 2863 times
See the attached sample label.

Re: Need advise to fill in text value from right to left

Posted: Mon Jan 13, 2020 7:40 am
by Michael P
Thanks for the feedback.
This is exactly what I was looking for, I will give it a try.