Thread: GameFontBlack
View Single Post
02-26-11, 06:40 PM   #7
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Originally Posted by sacrife View Post
Try this.

lua Code:
  1. local function SetFont(obj, font, size, style, alpha, r, g, b, sr, sg, sb, sox, soy, spacing)
  2.     obj:SetFont(font, size, style)
  3.     if sr and sg and sb then obj:SetShadowColor(sr, sg, sb) end
  4.     if sox and soy then obj:SetShadowOffset(sox, soy) end
  5.     if r and g and b then obj:SetTextColor(r, g, b) end
  6.     if alpha then obj:SetAlpha(r) end
  7.     if spacing then obj:SetSpacing(spacing) end
  8. end
  9.  
  10. local f = CreateFrame("Frame")
  11. f:RegisterEvent("ADDON_LOADED")
  12. f:SetScript("OnEvent", function()
  13.  
  14. SetFont(GameFontBlack, font, fontsize, outline, 1, 1, 1, 1, 0, 0, 0, 0, 0);
Didn't work :< thanks anyways.
  Reply With Quote