# Multiline text on button no longer scaling

**URL:** <https://forum.inductiveautomation.com/t/multiline-text-on-button-no-longer-scaling/57465>\
**Category:** Ignition\
**Created:** [March 22, 2022, 3:59pm UTC](https://forum.inductiveautomation.com/t/multiline-text-on-button-no-longer-scaling/57465 "2022-03-22T15:59:39Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![wschauer](https://avatars.discourse-cdn.com/v4/letter/w/ecccb3/32.png) [@wschauer](https://forum.inductiveautomation.com/u/wschauer)\
**Post date:** [March 22, 2022, 3:59pm UTC](https://forum.inductiveautomation.com/t/multiline-text-on-button-no-longer-scaling/57465/1 "2022-03-22T15:59:39Z")

</div>

I have a button in a vision component that has multi-line text achieved with HTML.  
The layout has the scale font selected however it seems to not work if the text is encoded with HTML.  
Is there a way to bypass this to allow for multi line text in buttons to be scaled in a relative scaled window?  
thanks

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 22, 2022, 4:55pm UTC](https://forum.inductiveautomation.com/t/multiline-text-on-button-no-longer-scaling/57465/3 "2022-03-22T16:55:12Z")

</div>

> [@andrews](#):
>
> HTML has no place in Vision projects.

What? HTML has been part of Vision (for multi-line labels) for a decade, because it is part of Java Swing. The OP's question is legit. (Unfortunately, I don't have an answer.)

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [March 22, 2022, 4:58pm UTC](https://forum.inductiveautomation.com/t/multiline-text-on-button-no-longer-scaling/57465/4 "2022-03-22T16:58:42Z")

</div>

My bad, and very interesting.

Can you please share you HTML could for review?

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [March 22, 2022, 4:59pm UTC](https://forum.inductiveautomation.com/t/multiline-text-on-button-no-longer-scaling/57465/5 "2022-03-22T16:59:42Z")

</div>

Check out the inductive university courses, they talk about how to use HTML in Vision a decent deal.

As for OP, I’m sorry, I don’t know.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [March 22, 2022, 5:09pm UTC](https://forum.inductiveautomation.com/t/multiline-text-on-button-no-longer-scaling/57465/6 "2022-03-22T17:09:54Z")

</div>

Note that it is only partial support of HTML.

Also, last I knew it only supported up to HTML 3.2, and not all swing components have the same level of support.

@wschauer It’s a long shot and perhaps you’ve already tried it, but maybe a `<font size=X%>` (where X is an appropriate percentage for your layout) would allow the text to scale with the component?

---

<div class="post-metadata">

**Author:** ![wschauer](https://avatars.discourse-cdn.com/v4/letter/w/ecccb3/32.png) [@wschauer](https://forum.inductiveautomation.com/u/wschauer)\
**Post date:** [March 22, 2022, 7:59pm UTC](https://forum.inductiveautomation.com/t/multiline-text-on-button-no-longer-scaling/57465/7 "2022-03-22T19:59:44Z")

</div>

Sorry for the delay.

\<!html\>\<!/center\>Multi Line \<!/br\> text goes here\<!/html\>

---

<div class="post-metadata">

**Author:** ![wschauer](https://avatars.discourse-cdn.com/v4/letter/w/ecccb3/32.png) [@wschauer](https://forum.inductiveautomation.com/u/wschauer)\
**Post date:** [March 22, 2022, 8:01pm UTC](https://forum.inductiveautomation.com/t/multiline-text-on-button-no-longer-scaling/57465/8 "2022-03-22T20:01:35Z")

</div>

Hm interesting I will try this tonight.  
Thanks!

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [March 22, 2022, 8:04pm UTC](https://forum.inductiveautomation.com/t/multiline-text-on-button-no-longer-scaling/57465/9 "2022-03-22T20:04:50Z")

</div>

> [@wschauer](#):
>
> \<!html\>\<!/center\>Multi Line \<!/br\> text goes here\<!/html\>

What are the `!` for?

---

<div class="post-metadata">

**Author:** ![wschauer](https://avatars.discourse-cdn.com/v4/letter/w/ecccb3/32.png) [@wschauer](https://forum.inductiveautomation.com/u/wschauer)\
**Post date:** [March 22, 2022, 9:30pm UTC](https://forum.inductiveautomation.com/t/multiline-text-on-button-no-longer-scaling/57465/10 "2022-03-22T21:30:58Z")

</div>

Me trying to comment out the HTML…

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 22, 2022, 9:31pm UTC](https://forum.inductiveautomation.com/t/multiline-text-on-button-no-longer-scaling/57465/11 "2022-03-22T21:31:50Z")

</div>

Use a backslash, or wrap all the text using the “pre-formatted text” button.

---

<div class="post-metadata">

**Author:** ![wschauer](https://avatars.discourse-cdn.com/v4/letter/w/ecccb3/32.png) [@wschauer](https://forum.inductiveautomation.com/u/wschauer)\
**Post date:** [March 22, 2022, 9:35pm UTC](https://forum.inductiveautomation.com/t/multiline-text-on-button-no-longer-scaling/57465/12 "2022-03-22T21:35:29Z")

</div>

`<html>Ah yes this is much <br> better </html>`  
Thanks
