Originally Posted by Lykofos
Hmm, so I redo my font stings as thus:
Health:
Code:
self.Health.Text = self.Health:CreateFontString(nil, 'OVERLAY', 'GameFontHighlightSmallRight')
self.Health.Text:SetFont('Interface\AddOns\oUF_Lyk\font.ttf', 14)
Whatever I have done appears to make WoW blame oUF\elements\tags.lua even though I never touched it. For the time being I am going to revert back to the method that previously worked so I have a working layout for tonight, however I would like to get this pinned down.
|
local font = "Interface\\AddOnName\\font.ttf"
fontString = parentFrame:CreateFontString(nil, "OVERLAY")
fontString:SetFont(font, fontSizeOfYourChoice)
fontString:SetTextColor(r, g, b)
Note : when specifying folders in locations of files, you or use "x\\x\\x" (double \) or [=[x\x\x]=]
In your first line (self.Health.Text = self.Health:CreateFontString(nil, 'OVERLAY', 'GameFontHighlightSmallRight')) -> you are already giving a font to use. Drop that part.