WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Help with tooltip fonts please. (https://www.wowinterface.com/forums/showthread.php?t=54178)

melicon 08-09-16 10:40 AM

Help with tooltip fonts please.
 
Hello again. I am trying to change the size of the comparison tooltip font.

I am currently using something I got off a forum to change other font sizes. Hoping I can just add something to change the comparison size as well?

Here is what I got from the forum..

Code:

for _, font in pairs({
    GameFontHighlight,

    GameFontDisable,

    GameFontHighlightExtraSmall,
    GameFontHighlightMedium,

    GameFontNormal,
    GameFontNormalSmall,

    --TextStatusBarText,

    GameFontDisableSmall,
    GameFontHighlightSmall,
       
        GameTooltipText,
}) do
    font:SetFont('Fonts\\ARIALN.ttf', 15)
    font:SetShadowOffset(2, -1)
end
 
TextStatusBarText:SetFont('Fonts\\ARIALN.ttf', 15, 'outline')
GameTooltipHeaderText:SetFont('Fonts\\ARIALN.ttf', 15)

for _, font in pairs({
    AchievementPointsFont,
    AchievementPointsFontSmall,
    AchievementDescriptionFont,
    AchievementCriteriaFont,
    AchievementDateFont,
       
}) do
    font:SetFont('Fonts\\ARIALN.ttf', 15)
end

GameFontNormalHuge:SetFont('Fonts\\ARIALN.ttf', 20, 'OUTLINE')
GameFontNormalHuge:SetShadowOffset(0, 0)


Aftermathhqt 08-09-16 10:46 AM

Quote:

Originally Posted by melicon (Post 317736)
Hello again. I am trying to change the size of the comparison tooltip font.

I am currently using something I got off a forum to change other font sizes. Hoping I can just add something to change the comparison size as well?

Here is what I got from the forum..

Code:

for _, font in pairs({
    GameFontHighlight,

    GameFontDisable,

    GameFontHighlightExtraSmall,
    GameFontHighlightMedium,

    GameFontNormal,
    GameFontNormalSmall,

    --TextStatusBarText,

    GameFontDisableSmall,
    GameFontHighlightSmall,
       
        GameTooltipText,
}) do
    font:SetFont('Fonts\\ARIALN.ttf', 15)
    font:SetShadowOffset(2, -1)
end
 
TextStatusBarText:SetFont('Fonts\\ARIALN.ttf', 15, 'outline')
GameTooltipHeaderText:SetFont('Fonts\\ARIALN.ttf', 15)

for _, font in pairs({
    AchievementPointsFont,
    AchievementPointsFontSmall,
    AchievementDescriptionFont,
    AchievementCriteriaFont,
    AchievementDateFont,
       
}) do
    font:SetFont('Fonts\\ARIALN.ttf', 15)
end

GameFontNormalHuge:SetFont('Fonts\\ARIALN.ttf', 20, 'OUTLINE')
GameFontNormalHuge:SetShadowOffset(0, 0)


Try these

GameTooltipHeaderText
GameTooltipText
GameTooltipTextSmall

melicon 08-09-16 10:53 AM

I will try those as soon as I get back in game...


Also Would there happen to be a listing somewhere of all the fonts?

More like those you listed there are a few other things I wouldnt mind changing also.

jeffy162 08-09-16 11:15 AM

Vranx.com. The first paragraph has a list of the default fonts that are in the game and tells you what they are used for. This list may not be "complete" anymore. I've seen posts that list other fonts that are supposed to be "default" also, so, take it for what it's worth.

Freebaser 08-09-16 12:44 PM

GameFontNormalSmall
GameFontNormal
GameFontHighlightSmall
GameTooltipTextSmall

https://github.com/tekkub/wow-ui-sou...plate.xml#L271

Phanx 08-09-16 01:47 PM

Quote:

Originally Posted by melicon (Post 317738)
Also Would there happen to be a listing somewhere of all the fonts?

https://github.com/Phanx/PhanxFont/b.../Addon.lua#L59

You can also look in:

FrameXML/SharedFonts.xml
FrameXML/Fonts.xml
FrameXML/SharedFontStyles.xml
FrameXML/FontStyles.xml

but keep in mind not all of these may actually be used anywhere in the UI. Also, changes propigate through inheritance, so while GameFontNormalLeft exists, it inherits from GameFontNormal and doesn't change the font or size, so you only need to override GameFontNormal, and your changes automatically apply to GameFontNormalLeft as well. Most of the things defined in SharedFontStyles and FontStyles don't need to be overridden specifically.


All times are GMT -6. The time now is 05:06 AM.

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