Thread: GameFontBlack
View Single Post
02-27-11, 05:54 PM   #19
Aprikot
A Frostmaul Preserver
 
Aprikot's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 284
I tried it too and it works! I wonder if other font colors are set with a secure function?

@hankthetank: your font object "getter" is awesome...had no idea it could be done that way. I haven't used it yet to set my fonts, but was able to pull a huge list of font objects with:

lua Code:
  1. for i, v in pairs(_G) do
  2.     if type(v) == "table" then
  3.         local meta = getmetatable(v)
  4.         if meta and meta.__index and type(meta.__index) == "table" and meta.__index.GetFont and v:GetObjectType() == "Font" then
  5.             print(i, v)
  6.         end
  7.     end
  8. end

ty!
  Reply With Quote