Quote:
Originally posted by User4574
Code:
Error: ERROR: <unnamed>:SetFont(): invalid fontHeight: 0, height must be > 0
AddOn: CowTip
File: Appearance.lua
Line: 426
Count: 2
I have the same problem and, knowing a little Lua, I took a look at the code.
I'm not sure
why the problem is occurring — the font size is read using :GetFont() just before setting it — but it's easy enough to get rid of the error. Just replace these lines:
Code:
if v:GetObjectType() == "FontString" then
local _, size, style = v:GetFont()
v:SetFont(font, size, style)
end
With these ones:
Code:
if v:GetObjectType() == "FontString" then
local _, size, style = v:GetFont()
if size > 0 then
v:SetFont(font, size, style)
end
end
Bookmarks