View Full Version : how to change font size?
Ranyon
05-19-2004, 09:49 AM
hello,i use Cosmos that i found the member of my group's stats text font too small,and i see a screenshot that have big font size,how can i change it? ty
http://www.eggegg.cn/temp/fontsize.jpg
Well, you can probably change it by going to the PartyFrame.xml file and checking out the following lines : <FontString name="$parentHealthBarText" inherits="TextStatusBarTextVerySmall">
.
.
.
<FontString name="$parentManaBarText" inherits="TextStatusBarTextVerySmall">My guess is that you should change TextStatusBarTextVerySmall to TextStatusBarTextSmall or TextStatusBarText or something like that (possibly GameFontNormalSmall but that might mean that the text goes yellow and stuff - since it is the font used for the name).
NOTE: I do not currently have access to the WoW Beta, so this info is based on pure coding "intuition". It seems to be rather straightforward, though.
Sarf
---
If you're standing on your head, and you pull your pants down, is that really such a bad thing?
Dyaxler
07-01-2004, 08:14 PM
I would like to know how to change the freaking font for the Chat Input box. I can manually change the Font for all other types in each window but not the input.
Has anyone else figured out how to change the Font color of peoples names that appear above their head? I'm surprised that memebers of ones own guild isn't a different color and the color of the names when your grouped up with them isn't contrasting enough to see them in a crowed. :P I would like to see it added to Cosmos or at least someone post here on how to modify the code to do it. :)
Thanks.
Something that might (should) work would be to replace the following (in ChatFrame.xml) :
<OnTextSet>
ChatEdit_OnTextSet();
</OnTextSet>
</Scripts>
<FontString inherits="ChatFontNormal"/>
With this : <OnTextSet>
ChatEdit_OnTextSet();
</OnTextSet>
</Scripts>
<FontString name="ChatFontBig" inherits="ChatFontNormal">
<FontHeight>
<AbsValue val="18"/>
</FontHeight>
</FontString>
Keep in mind, this is all theoretical. The "18" can of course be changed to further increase the size of the Chat Input box.
Sarf
---
A truly wise man never plays leapfrog with a Unicorn.
Dyaxler
07-01-2004, 11:24 PM
Nice suggestion, but it did nothing to the Font size of the Input Text. :( Maybe it's hardcoded somewhere along with the Character Name colors.
EDIT: Btw, I did try and change the 18 to 36 for the fun of it and still didn't notice a difference.
OK. New deal. Try this in ChatFrame.lua :
Replace-- ChatEdit functions
function ChatEdit_OnLoad()
with-- ChatEdit functions
function ChatEdit_OnLoad()
local name, fontSize, r, g, b, a, shown, locked = GetChatWindowInfo(this:GetID());
if ( fontSize > 0 ) then
this:SetFontHeight(fontSize + 4);
else
this:SetFontHeight(18);
end
and see if that does the trick.
If GetChatWindowInfo does not work with the EditBox (definitely possible), use this :-- ChatEdit functions
function ChatEdit_OnLoad()
this:SetFontHeight(18);
If neither of the snippets work, then I'm stumped for answers.
Sarf
---
There are two major products that come out of Berkeley; LSD and BSD Unix. We don't believe this to be a coincidence.
Dyaxler
07-02-2004, 12:55 AM
-- ChatEdit functions
function ChatEdit_OnLoad()
this:SetFrameLevel(this.chatFrame:GetFrameLevel()+ 1);
this.chatType = "SAY";
this.stickyType = "SAY";
this.chatLanguage = GetDefaultLanguage();
this.lastTell = {};
for i = 1, NUM_REMEMBERED_TELLS, 1 do
this.lastTell[i] = "";
end
This is the entire code block you mentioned. I replaced it with your code block and it crashed. Second time around I simply added your snippet and all my chat windows turned white and were all funky. Last suggestion just resulted in a script error. <shrug> I'm at a loss...
Actually, I meant that you should turn :
-- ChatEdit functions
function ChatEdit_OnLoad()
this:SetFrameLevel(this.chatFrame:GetFrameLevel()+ 1);
this.chatType = "SAY";
this.stickyType = "SAY";
this.chatLanguage = GetDefaultLanguage();
this.lastTell = {};
for i = 1, NUM_REMEMBERED_TELLS, 1 do
this.lastTell[i] = "";
end
into
-- ChatEdit functions
function ChatEdit_OnLoad()
local name, fontSize, r, g, b, a, shown, locked = GetChatWindowInfo(this:GetID());
if ( fontSize > 0 ) then
this:SetFontHeight(fontSize + 4);
else
this:SetFontHeight(18);
end
this:SetFrameLevel(this.chatFrame:GetFrameLevel()+ 1);
this.chatType = "SAY";
this.stickyType = "SAY";
this.chatLanguage = GetDefaultLanguage();
this.lastTell = {};
for i = 1, NUM_REMEMBERED_TELLS, 1 do
this.lastTell[i] = "";
endor-- ChatEdit functions
function ChatEdit_OnLoad()
this:SetFontHeight(18);
this:SetFrameLevel(this.chatFrame:GetFrameLevel()+ 1);
this.chatType = "SAY";
this.stickyType = "SAY";
this.chatLanguage = GetDefaultLanguage();
this.lastTell = {};
for i = 1, NUM_REMEMBERED_TELLS, 1 do
this.lastTell[i] = "";
end
but it seems like this method won't work, so...
Sarf
---
Time is but the stream I go a-fishing in.
Dyaxler
07-14-2004, 02:18 AM
I've noticed in the past few Alpha Builds that the "mouse over tool tip" font is super huge. Is this the Cosmos Team's attempt in trying to make the Chat Input font bigger?
vBulletin® v3.8.0 Beta 1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.