Bug: Variable Text not aligning correctly

I would expect when I set “Align Y” to “Middle”. To align it in the middle.
Whatever I change Align to, it stays the same.


While pressing test (Current = 0)

While pressing test (Current = 1)

LightBurn Beta version:

  # 20240530 LightBurn-Linux64-v1.6.01.7z
  url = "https://drive.google.com/uc?id=1HdLp36rLe_m6fe7tdOIwSFrMGJisZhHV";
  sha256 = "sha256:0nypnbg532fvz56xkkbhj4jy7hxbgd5d31r9aw33raw1cm87ndbz";

csv test file with 2 lines:

0,test
1,"t
e
s
t"

Hi

could you please upload your LBRN file?

Also on %1 do you have any max width set on shape properties?

test_lightburn_vertical_text.lbrn2 (27.3 KB)
test_lightburn_vertical_text.csv (31 Bytes)

max width is the default: 0.000

1 Like

I see what you mean, however i am not certain the CSV data is suposed to have /n (new line) in it.
Otherwise, it sort of defeats the purpose of comma delimited values doesn’t it?

Could you explain why you need the text to be expressed in multiple lines? and not do %2 %3 %4 for each line but separate values?

multiple reasons:

  • a hacked way to get vertical text
  • unknown length

I don’t know the length of the vertical array.
Sometimes it can be 3, other times 7. This will result in a similar bug which doesn’t align middle.


While pressing test (Current = 0)

While pressing test (Current = 1)

align_lightburn_multiple_values.csv (32 Bytes)

align_lightburn_multiple_values.lbrn2 (41.9 KB)

I see what you mean.
Investigating

1 Like

I posted a similar question a few weeks ago which went unanswered. Vertical centering doesnt align variable text to the middle of the area.
Its almost like it needs a checkbox option to allow trimming of the leading or trailing new line characters on merging.

1 Like

Might be related to this previous bug report.

Hello

Did you find something?

One workaround is to make overlayed variables in a template. So make %0 %1 centered for 2 line labels, and %2 %3 %4 centered for 3 line labels etc. Then edit the csv file to have separate fields for the 2 line text values and separate fields from the 3 line text values. It’s a bit of messing around.

I’m glad it works for you. Sadly that workaround won’t work for me.
In the csv I have +30 lines.
The vertical words are 5 - 25 characters long.
The vertical name is just a part of the csv columns.

bump 10char

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.