Quantcast Help with tooltip fonts please. - WoWInterface
Thread Tools Display Modes
08-09-16, 10:40 AM   #1
melicon
A Deviate Faerie Dragon
 
melicon's Avatar
Join Date: Jul 2016
Posts: 10
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)
  Reply With Quote
08-09-16, 10:46 AM   #2
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Originally Posted by melicon View Post
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

Last edited by Aftermathhqt : 08-09-16 at 10:49 AM.
  Reply With Quote
08-09-16, 10:53 AM   #3
melicon
A Deviate Faerie Dragon
 
melicon's Avatar
Join Date: Jul 2016
Posts: 10
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.
  Reply With Quote
08-09-16, 11:15 AM   #4
jeffy162
A Pyroguard Emberseer
 
jeffy162's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 2,346
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.
__________________
Ahhhh, the vagueries of the aging mind. Wait.... What was I saying?


Carbonite <----- GitHub main module (Maps ONLY) download link. The other modules are also available on GitHub.
Carbonite-CLASSIC<----- GitHub link to Carbonite Classic. Thanks to ircdirk for this!
  Reply With Quote
08-09-16, 12:44 PM   #5
Freebaser
A Molten Kobold Bandit
 
Freebaser's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 135
GameFontNormalSmall
GameFontNormal
GameFontHighlightSmall
GameTooltipTextSmall

https://github.com/tekkub/wow-ui-sou...plate.xml#L271
  Reply With Quote
08-09-16, 01:47 PM   #6
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by melicon View Post
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.
__________________
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Help with tooltip fonts please.

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