Thread Tools Display Modes
07-30-19, 02:53 AM   #1
[email protected]
A Kobold Labourer
Join Date: Jul 2019
Posts: 1
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?
  Reply With Quote
07-31-19, 03:20 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
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)
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » setfont addon

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off