WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   How to prevent font string from being multiline? (https://www.wowinterface.com/forums/showthread.php?t=58743)

MinguasBeef 05-18-21 08:14 AM

How to prevent font string from being multiline?
 
Is there any way to prevent a font string from being multiline?

I'm creating my font string like so...
Code:

frame.Texts[1] = frame:CreateFontString(nil,"OVERLAY")
frame.Texts[1]:SetFont("Fonts\\ARIALN.ttf", 14, "OUTLINE")
frame.Texts[1]:SetPoint("LEFT", frame, "LEFT", 2, 0)
frame.Texts[1]:SetPoint("RIGHT", frame, "RIGHT", -2, 0)
frame.Texts[1]:SetJustifyH("LEFT")

When I have text that is long and contains spaces though, the text will go onto the next line. I'd rather the text just cut off like it does with long names that do not contain spaces.

Fizzlemizz 05-18-21 10:27 AM

Set the size or set TOPLEFT/BOTTOMRIGHT.

Seerah 05-18-21 12:21 PM

https://wowprogramming.com/docs/widg...tWordWrap.html

MinguasBeef 05-19-21 05:38 AM

Thank you to both of you! Much appreciated.


All times are GMT -6. The time now is 02:26 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI