WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Search/Requests (https://www.wowinterface.com/forums/forumdisplay.php?f=6)
-   -   help me Increase status text size (https://www.wowinterface.com/forums/showthread.php?t=58337)

djozaa 10-21-20 07:03 AM

help me Increase status text size
 
1 Attachment(s)
hello, can someone help me to increase status text size of defualt blizzard frames on retail.

In classic wow status text font size seems to be 14, and on retail is 10.

This is with enabled status text Both.

Vrul 10-22-20 12:59 PM

Code:

local fontStrings = {
        'PlayerFrameHealthBarTextLeft',
        'PlayerFrameHealthBarTextRight',
        'PlayerFrameManaBarTextLeft',
        'PlayerFrameManaBarTextRight',
        'TargetFrameTextureFrameHealthBarTextLeft',
        'TargetFrameTextureFrameHealthBarTextRight',
        'TargetFrameTextureFrameManaBarTextLeft',
        'TargetFrameTextureFrameManaBarTextRight'
}

for index = 1, #fontStrings do
        local fontString = _G[fontStrings[index]]
        if fontString then
                local fontName, fontSize, fontStyle = fontString:GetFont()
                fontString:SetFont(fontName, 14, fontStyle)
        end
end


SDPhantom 10-22-20 03:56 PM

You can change the base font object and it'll propagate through all fontstrings that inherit from it.
Lua Code:
  1. local name,_,style=TextStatusBarText:GetFont();
  2. TextStatusBarText:SetFont(name,14,style);
Note: Font objects seem to ignore the virtual XML tag and actually exist in the global environment.

djozaa 10-22-20 06:45 PM

thank you alot, both of you!!!

stressful 01-23-23 05:31 AM

Quote:

Originally Posted by djozaa (Post 337388)
thank you alot, both of you!!!

hi where do i paste these to fix it??

stressful 01-23-23 05:32 AM

Quote:

Originally Posted by SDPhantom (Post 337386)
You can change the base font object and it'll propagate through all fontstrings that inherit from it.
Lua Code:
  1. local name,_,style=TextStatusBarText:GetFont();
  2. TextStatusBarText:SetFont(name,14,style);
Note: Font objects seem to ignore the virtual XML tag and actually exist in the global environment.

where do i paste this?

stressful 01-23-23 05:35 AM

Quote:

Originally Posted by Vrul (Post 337385)
Code:

local fontStrings = {
        'PlayerFrameHealthBarTextLeft',
        'PlayerFrameHealthBarTextRight',
        'PlayerFrameManaBarTextLeft',
        'PlayerFrameManaBarTextRight',
        'TargetFrameTextureFrameHealthBarTextLeft',
        'TargetFrameTextureFrameHealthBarTextRight',
        'TargetFrameTextureFrameManaBarTextLeft',
        'TargetFrameTextureFrameManaBarTextRight'
}

for index = 1, #fontStrings do
        local fontString = _G[fontStrings[index]]
        if fontString then
                local fontName, fontSize, fontStyle = fontString:GetFont()
                fontString:SetFont(fontName, 14, fontStyle)
        end
end


where do i paste this? i have no idea


All times are GMT -6. The time now is 04:40 PM.

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