Thread Tools Display Modes
11-14-14, 10:14 AM   #1
mardok
A Murloc Raider
Join Date: Mar 2010
Posts: 5
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
  Reply With Quote
11-14-14, 02:07 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
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.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
11-14-14, 05:13 PM   #3
mardok
A Murloc Raider
Join Date: Mar 2010
Posts: 5
Originally Posted by Seerah View Post
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 ?
  Reply With Quote
11-14-14, 07:09 PM   #4
Ekaterina
A Theradrim Guardian
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 65
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";

Last edited by Ekaterina : 11-14-14 at 07:10 PM. Reason: grammar fail.
  Reply With Quote
11-14-14, 09:06 PM   #5
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
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"


Originally Posted by mardok View Post
Nice thanks for sharing but which one would change the damage font any idea ?
I don't entirely remember which it is. Maybe skurri?
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » custom font fast question

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