WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   setfont addon (https://www.wowinterface.com/forums/showthread.php?t=57319)

[email protected] 07-30-19 02:53 AM

setfont addon
 
I created addon by https://addon.bool.no/

ChatFrame1:SetFont("Fonts\\ARIALN.TTF",13)
ChatFrame1.editBox.header:SetFont("Fonts\\ARIALN.TTF",13)


It doesn't work, why? Can sb help me fix this?

Seerah 07-31-19 03:20 PM

It's probably too early.

Lua Code:
  1. local f = CreateFrame("Frame")
  2. f:RegisterEvent("PLAYER_LOGIN")
  3. f:SetScript("OnEvent", function(self,event)
  4.      ChatFrame1:SetFont("Fonts\\ARIALN.TTF",13)
  5.      ChatFrame1.editBox.header:SetFont("Fonts\\ARIALN.TTF",13)
  6. end)


All times are GMT -6. The time now is 12:08 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI