Quantcast
How to prevent font string from being multiline? - WoWInterface
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
05-18-21, 08:14 AM   #1
MinguasBeef
A Cyclonian
AddOn Author - Click to view addons
Join Date: May 2019
Posts: 47
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.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » How to prevent font string from being multiline?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off