WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   custom font fast question (https://www.wowinterface.com/forums/showthread.php?t=50461)

mardok 11-14-14 10:14 AM

custom font fast question
 
Hey so I know I can change font by making font folder ...ect but I have a question is damage font are on of these ? or it doesnt work like that ?
ARIALN
FRIZQT__
MORPHEUS
skurri

Seerah 11-14-14 02:07 PM

There is also FRIENDS.ttf now, to add to your list of fonts to replace. Doing this manual font override will change all fonts in the game.

mardok 11-14-14 05:13 PM

Quote:

Originally Posted by Seerah (Post 300424)
There is also FRIENDS.ttf now, to add to your list of fonts to replace. Doing this manual font override will change all fonts in the game.

Nice thanks for sharing but which one would change the damage font any idea ?

Ekaterina 11-14-14 07:09 PM

You could do it in a small addon.
Code:

local f =  CreateFrame("frame")

function f:ADDON_LOADED(addon)
    if addon ~= myaddonname then return end

    -- change the font for the damage text
    DAMAGE_TEXT_FONT = "PATH TO FONT"

    f:UnregisterEvent("ADDON_LOADED")
end

f:RegisterEvent("ADDON_LOADED")

That would change just the damage font. It gives you a little more control over what you are changing with the fonts. If you don't care about the font changing throughout the ui you just need to replace "Fonts\\FRIZQT__.TTF";

Seerah 11-14-14 09:06 PM

Close... You didn't actually set that function to be run when the event fires. ;)

Lua Code:
  1. f:SetScript("OnEvent", function(self, event, addon)
  2.      f:ADDON_LOADED(addon)  --or, you know, just skip the middle-man and put the code here ;)
  3. end)

Though if you're just doing that when your addon loads, you can skip the frame creation, function calls, etc. and *just* do:
Lua Code:
  1. DAMAGE_TEXT_FONT = "PATH\\TO\\FONT"


Quote:

Originally Posted by mardok (Post 300435)
Nice thanks for sharing but which one would change the damage font any idea ?

I don't entirely remember which it is. Maybe skurri?


All times are GMT -6. The time now is 10:15 PM.

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