Thread Tools Display Modes
Prev Previous Post   Next Post Next
06-16-21, 11:07 AM   #1
DarkruneDOTDK
A Murloc Raider
Join Date: Oct 2015
Posts: 9
Setting fontsize for ChatFrame1

Hi.

I am trying to set the font size for ChatFrame1 (General), but it doesn't seem to update correctly... Doing a /reload will reset the font size to the size it had before the change. It starts by having a font size of 14 on a new character.

Code:
Code:
local name, fontSize, r, g, b, a, shown, locked = FCF_GetChatWindowInfo(1);
local fontFile, _, fontFlags = ChatFrame1:GetFont();
ChatFrame1:SetFont(fontFile, 12, fontFlags);
Is there something I need to do for it to be remembered? - The purpose is to make it easier to setup a new character, so you more or less write a slash command and it does all of it for you.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Setting fontsize for ChatFrame1


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