Originally Posted by Ailae
Code:
TextFrameFont:SetFont("Interface\\AddOns\\myaddonname\\fonts\\fontname.ttf", 20)
..is what Seerah meant.
|
hmm, ok.. i tried 3 several different ways, among them:
Code:
TextFrameFont:SetFont("\\Interface\\AddOns\\myaddonname\\fonts\\fontname.ttf", 20)
TextFrameFont:SetFont("Interface\\AddOns\\myaddonname\\fonts\\fontname.ttf", 20)
TextFrameFont:SetFont("\\Interface\AddOns\myaddonname\fonts\fontname.ttf", 20)
both generate this error:
Interface\AddOns\skillzreceive\skillzreceive5.lua:67: <unnamed>:SetText(): Font not set
line 67 is the line after the setfont:
TextFrameFont:SetText(Text)
i moved that line below the setfont() because the error I was receiving was referring to the settext line, leading me to believe that it needs a font in the fontstring to be able to assign text. im still unsure on whether that is actually the case or not, seeing as the current err still refers to the settext() line.
im certain that all the characters in the path are correct.
should i be registering the fonts elsewhere in the lua?