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.
|