http://pastie.org/3368375
So the above is a copy of LynStats that I pulled out of one of LED++ UI's a good while back. It's rather simple and hasn't given me any problems, however I'm now trying to swap out the fonts and running into some issues.
The only thing I've changed is the file path to my new font on line 9 and now in addition to throwing lua errors roughly once per second, the clock has just plain disappeared. I do still get the popup showing latency/fps if I hover my mouse over the area that it's supposed to be though.
Here is the error that I'm getting in-game:
Code:
Message: Interface\AddOns\!Lyn\stats.lua:59: <unnamed>:SetText(): Font not set
Time: 02/12/12 11:58:13
Count: 993
Stack: [C]: in function `SetText'
Interface\AddOns\!Lyn\stats.lua:59: in function <Interface\AddOns\!Lyn\stats.lua:31>
Locals: (*temporary) = <unnamed> {
0 = <userdata>
}
(*temporary) = "11:58"
SOLVED:
text:SetFont("Interface\Addons\SharedMedia\fonts\04B03.TTF", 8, "OUTLINEMONOCHROME")
should be
text:SetFont("Interface\\Addons\\SharedMedia\\fonts\\04B03.TTF", 8, "OUTLINEMONOCHROME")
I don't have the attention to detail to be a developer.