View Single Post
07-13-10, 03:29 AM   #5
wellbeing
A Cliff Giant
Join Date: Oct 2009
Posts: 71
Originally Posted by Xrystal View Post
Okay, this line is possibly causing the problem. There is possibly something missing here but I can't remember exactly what else you need at the moment.

TextFrameFont:SetFont("Fonts\\FRIZQT__.TTF", 11)


Try changing these specific lines ( keep the other ones in for now ).

-- Create a Font String based on GameFontNormal
local TextFrameFont = TextFrame:CreateFontString(nil, "BACKGROUND",GameFontNormal)

--Now this is where we see what the rest of the font is holding and store it
local Path, Size, Flags = TextFrameFont :GetFont()

-- Your code to set the text contents
TextFrameFont:SetText(Text)

-- Now we want to set the font with our chosen settings but keep what it is already using
TextFrameFont:SetFont("Fonts\\FRIZQT__.TTF", 11,Flags)


Try that out and see if that works.


TextFrameFont:SetFont(Path, Size,Flags)

did you mean to have that as the last line or am i missing the point?
  Reply With Quote