# Bug: Variable Text not aligning correctly

**URL:** <https://forum.lightburnsoftware.com/t/bug-variable-text-not-aligning-correctly/141216>\
**Category:** LightBurn Software Questions\
**Tags:** variable-text\
**Created:** [June 10, 2024, 6:08pm UTC](https://forum.lightburnsoftware.com/t/bug-variable-text-not-aligning-correctly/141216 "2024-06-10T18:08:12Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![lightningstrike](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/lightningstrike/32/46834_2.png) [@lightningstrike](https://forum.lightburnsoftware.com/u/lightningstrike)\
**Post date:** [June 10, 2024, 6:08pm UTC](https://forum.lightburnsoftware.com/t/bug-variable-text-not-aligning-correctly/141216/1 "2024-06-10T18:08:12Z")

</div>

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.

 ![screenshot_2024-06-10-175727.994](https://forum.lightburnsoftware.com/uploads/default/original/3X/2/a/2a5a220789d210f84d6529bc7ac2c32cd74cc547.png)  
While pressing test (Current = 0)  
 ![screenshot_2024-06-10-175739.059](https://forum.lightburnsoftware.com/uploads/default/original/3X/1/8/18b66d1b641a81f37f029091e1d63466e1cff36b.png)  
While pressing test (Current = 1)  
 ![screenshot_2024-06-10-175732.043](https://forum.lightburnsoftware.com/uploads/default/original/3X/e/3/e35d0f408c2c165f0296aeaf4c5a0bda73e900b8.png)

LightBurn Beta version:

```auto
  # 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:

```csv
0,test
1,"t
e
s
t"

```

---

<div class="post-metadata">

**Author:** ![gilaraujo](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/gilaraujo/32/71745_2.png) [@gilaraujo](https://forum.lightburnsoftware.com/u/gilaraujo)\
**Post date:** [June 10, 2024, 6:09pm UTC](https://forum.lightburnsoftware.com/t/bug-variable-text-not-aligning-correctly/141216/2 "2024-06-10T18:09:13Z")

</div>

Hi

could you please upload your LBRN file?

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

---

<div class="post-metadata">

**Author:** ![lightningstrike](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/lightningstrike/32/46834_2.png) [@lightningstrike](https://forum.lightburnsoftware.com/u/lightningstrike)\
**Post date:** [June 10, 2024, 6:21pm UTC](https://forum.lightburnsoftware.com/t/bug-variable-text-not-aligning-correctly/141216/3 "2024-06-10T18:21:39Z")

</div>

[test\_lightburn\_vertical\_text.lbrn2](https://forum.lightburnsoftware.com/uploads/short-url/tYdZjPzWsBA1XvHsfEIjdyD5jeV.lbrn2) (27.3 KB)  
[test\_lightburn\_vertical\_text.csv](https://forum.lightburnsoftware.com/uploads/short-url/yUfCxXK5I3wpVIsP79LNKjNEmRU.csv) (31 Bytes)

max width is the default: 0.000

---

<div class="post-metadata">

**Author:** ![gilaraujo](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/gilaraujo/32/71745_2.png) [@gilaraujo](https://forum.lightburnsoftware.com/u/gilaraujo)\
**Post date:** [June 10, 2024, 6:28pm UTC](https://forum.lightburnsoftware.com/t/bug-variable-text-not-aligning-correctly/141216/4 "2024-06-10T18:28:52Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![lightningstrike](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/lightningstrike/32/46834_2.png) [@lightningstrike](https://forum.lightburnsoftware.com/u/lightningstrike)\
**Post date:** [June 10, 2024, 7:04pm UTC](https://forum.lightburnsoftware.com/t/bug-variable-text-not-aligning-correctly/141216/5 "2024-06-10T19:04:21Z")

</div>

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.

 ![screenshot_2024-06-10-185311.441](https://forum.lightburnsoftware.com/uploads/default/original/3X/a/a/aa3d2bc4dcd49d721c18260d1580d74c1adc8112.png)  
While pressing test (Current = 0)  
 ![screenshot_2024-06-10-185313.599](https://forum.lightburnsoftware.com/uploads/default/original/3X/3/4/34532c34e6fe1b51b1be56d83cb4e8113d01df9c.png)  
While pressing test (Current = 1)  
 ![screenshot_2024-06-10-185317.876](https://forum.lightburnsoftware.com/uploads/default/original/3X/1/c/1c71626ab6cfbc5b0b7ba84698b47a368e795e6a.png)

[align\_lightburn\_multiple\_values.csv](https://forum.lightburnsoftware.com/uploads/short-url/1frPcthAg4Nzr6HBRrL8dpJQ2bY.csv) (32 Bytes)

[align\_lightburn\_multiple\_values.lbrn2](https://forum.lightburnsoftware.com/uploads/short-url/eok6234b7cq0AAGLdbZx5QLST2E.lbrn2) (41.9 KB)

---

<div class="post-metadata">

**Author:** ![gilaraujo](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/gilaraujo/32/71745_2.png) [@gilaraujo](https://forum.lightburnsoftware.com/u/gilaraujo)\
**Post date:** [June 11, 2024, 9:20am UTC](https://forum.lightburnsoftware.com/t/bug-variable-text-not-aligning-correctly/141216/6 "2024-06-11T09:20:45Z")

</div>

I see what you mean.  
Investigating

---

<div class="post-metadata">

**Author:** ![BetaMax](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/b/ccd318/32.png) [@BetaMax](https://forum.lightburnsoftware.com/u/BetaMax)\
**Post date:** [June 11, 2024, 11:08am UTC](https://forum.lightburnsoftware.com/t/bug-variable-text-not-aligning-correctly/141216/7 "2024-06-11T11:08:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![lightningstrike](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/lightningstrike/32/46834_2.png) [@lightningstrike](https://forum.lightburnsoftware.com/u/lightningstrike)\
**Post date:** [June 11, 2024, 7:51pm UTC](https://forum.lightburnsoftware.com/t/bug-variable-text-not-aligning-correctly/141216/8 "2024-06-11T19:51:34Z")

</div>

Might be related to this previous bug report.

> [@Bug: Variable text is not centered the same way normal text is](https://forum.lightburnsoftware.com/t/bug-variable-text-is-not-centered-the-same-way-normal-text-is/121865):
>
> When you have 2 texts: Test %1 You center both using the p-key, Now XPos and YPos are the same. But when you preview the variable text they don’t sit on top of each other? [variable\_text\_centering\_bug] text.csv 1,Test 2,Test Test 3,"Test 1" 4,Test 1 5,"Test\_1 Test\_2 Test\_3" LightBurn 1.4.05

---

<div class="post-metadata">

**Author:** ![lightningstrike](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/lightningstrike/32/46834_2.png) [@lightningstrike](https://forum.lightburnsoftware.com/u/lightningstrike)\
**Post date:** [June 13, 2024, 3:32pm UTC](https://forum.lightburnsoftware.com/t/bug-variable-text-not-aligning-correctly/141216/9 "2024-06-13T15:32:54Z")

</div>

> [@Multi-line Variable Text - Vertical Alignment](https://forum.lightburnsoftware.com/t/multi-line-variable-text-vertical-alignment/139015):
>
> Working with a CSV variable file. Is there a way to vertically align the merged text with varying numbers of text lines or fields? e.g. a tag merging either 2 or 3 lines of text. When it merges it keeps the trailing carriage returns for blank lines and does not align vertically. If you bake the variables it gets the clear space trimmed correctly.

---

<div class="post-metadata">

**Author:** ![lightningstrike](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/lightningstrike/32/46834_2.png) [@lightningstrike](https://forum.lightburnsoftware.com/u/lightningstrike)\
**Post date:** [June 30, 2024, 9:46am UTC](https://forum.lightburnsoftware.com/t/bug-variable-text-not-aligning-correctly/141216/10 "2024-06-30T09:46:21Z")

</div>

Hello

Did you find something?

---

<div class="post-metadata">

**Author:** ![BetaMax](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/b/ccd318/32.png) [@BetaMax](https://forum.lightburnsoftware.com/u/BetaMax)\
**Post date:** [June 30, 2024, 12:12pm UTC](https://forum.lightburnsoftware.com/t/bug-variable-text-not-aligning-correctly/141216/11 "2024-06-30T12:12:05Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![lightningstrike](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/lightningstrike/32/46834_2.png) [@lightningstrike](https://forum.lightburnsoftware.com/u/lightningstrike)\
**Post date:** [June 30, 2024, 4:18pm UTC](https://forum.lightburnsoftware.com/t/bug-variable-text-not-aligning-correctly/141216/12 "2024-06-30T16:18:24Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![lightningstrike](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/lightningstrike/32/46834_2.png) [@lightningstrike](https://forum.lightburnsoftware.com/u/lightningstrike)\
**Post date:** [July 27, 2024, 3:02pm UTC](https://forum.lightburnsoftware.com/t/bug-variable-text-not-aligning-correctly/141216/13 "2024-07-27T15:02:31Z")

</div>

bump 10char

---

<div class="post-metadata">

**Author:** ![system](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/system/32/64335_2.png) [@system](https://forum.lightburnsoftware.com/u/system)\
**Post date:** [August 26, 2024, 3:02pm UTC](https://forum.lightburnsoftware.com/t/bug-variable-text-not-aligning-correctly/141216/14 "2024-08-26T15:02:45Z")

</div>

Closed on August 26, 2024, 3:02pm UTC

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