Thread Tools Display Modes
02-25-15, 03:10 PM   #1
Quarrion
A Defias Bandit
Join Date: Feb 2015
Posts: 2
[Good Damage Font] Combat Text - Outline

Hello to everyone.

I was wondering if someone can help me add Outline to the Good Damage Font Addon lua code.
I want to make it look like the combat text from the old WoW Alpha/Beta, but I don't know how to add the outline to the combat text. I hope you guys can help me.

Here's the code:
gdFont = CreateFrame("Frame", "gdFont");

local GD_FONT_NUMBER = "Interface\\AddOns\\gdFont\\Fonts\\SKURRI.ttf";

function gdFont:ApplySystemFonts()

DAMAGE_TEXT_FONT = GD_FONT_NUMBER;

end

gdFont:SetScript("OnEvent",
function()
if (event == "ADDON_LOADED") then
gdFont:ApplySystemFonts()
end
end);
gdFont:RegisterEvent("ADDON_LOADED");

gdFont:ApplySystemFonts()

Last edited by Quarrion : 02-25-15 at 03:16 PM.
  Reply With Quote
02-25-15, 08:55 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Not possible. The font strings used by the built-in combat text aren't accessible to addons, so it's not possible to change their size, outline, shadow, or other properties. It's only possible to change the font because Blizzard makes the game check for that "DAMAGE_TEXT_FONT" variable and use the font file it specifies instead of the default one.

Also, that addon is ridiculously overcomplicated for what it does. You can replace the entire addon with just this one single line:

Code:
DAMAGE_TEXT_FONT = "Interface\\AddOns\\gdFont\\Fonts\\SKURRI.ttf"
...and it will work exactly the same.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
02-26-15, 01:17 AM   #3
Miiru
A Flamescale Wyrmkin
 
Miiru's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 138
The only way to add an outline to the damage font would be modifying the font file itself and adding an outline to each font glyph.

I tried this but sadly it does not work really well and looks pretty ugly at low font sizes (e.g. no crits).
__________________
◘◘ Author of MiirGui Texture Pack - [Core] [Blue] [Grey] ◘◘
  Reply With Quote
02-26-15, 02:43 AM   #4
Quarrion
A Defias Bandit
Join Date: Feb 2015
Posts: 2
Thanks to both of you for the responds Atleast now I know that it is Blizzard side and not addon
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » [Good Damage Font] Combat Text - Outline

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