Quantcast
WoWInterface - View Single Post - How to prevent font string from being multiline?
View Single Post
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