Thread Tools Display Modes
08-09-07, 01:16 AM   #1
WaldoJeffers
A Molten Giant
 
WaldoJeffers's Avatar
Join Date: Jan 2007
Posts: 564
Code to change font size for damage text

Hey, this is the code for a mod called Good Damage Font which "changes the normal WoW damage font to the cool kind you see in a lot of WoW pvp videos" Can i please get some help with manipulating the size of this font please? The font in game is a little to small

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()
Thanks for anything I can get
  Reply With Quote
08-23-10, 10:17 PM   #2
TheRealArkayn
A Deviate Faerie Dragon
 
TheRealArkayn's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 15
I really hate to bump a 3 year-old "thread," but I'm currently trying to achieve the same thing with xDamageFont (whose code is almost exactly the same as this add-on's code). My damage font is just a hair too small for my preference, and I would really like to bump it up a couple points. Does anyone know if it's possible?
  Reply With Quote
08-28-10, 07:16 AM   #3
Miiru
A Flamescale Wyrmkin
 
Miiru's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 138
As fasr as i know it is not possible to change the fontsize of the actual damage and healing numbers outputted by the blizzard combat text. At least that was the answer i got everytime i asked that question which is a shame.
  Reply With Quote
08-28-10, 07:47 AM   #4
LaDyNaaMAH
A Deviate Faerie Dragon
 
LaDyNaaMAH's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2010
Posts: 10
I believe that players cannot manipulate by blizzard's combat text interface by any means, such as adding custom messages etc. (if i am wrong let me know, i could really use that cause ErrorFrame isn't perfect...)
__________________
Why don't you ask me how it feels like to be a freak?
From my workshop:
MyLoot - v1.2 Release available.
ShoutControl - v0.1 Beta available.
  Reply With Quote
08-28-10, 07:54 AM   #5
Petrah
A Pyroguard Emberseer
 
Petrah's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2008
Posts: 2,988
http://www.wowinterface.com/download...amageFont.html
__________________
♪~ ( ) I My Sonos!
AddOn Authors: If your addon spams the chat box with "Addon v8.3.4.5.3 now loaded!", please add an option to disable it!
  Reply With Quote
08-28-10, 07:59 AM   #6
LaDyNaaMAH
A Deviate Faerie Dragon
 
LaDyNaaMAH's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2010
Posts: 10
That's a way, for sure and i know that... but you cannot change font size... not to mention my problem with adding own messages :P
__________________
Why don't you ask me how it feels like to be a freak?
From my workshop:
MyLoot - v1.2 Release available.
ShoutControl - v0.1 Beta available.
  Reply With Quote
08-28-10, 08:06 AM   #7
Petrah
A Pyroguard Emberseer
 
Petrah's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2008
Posts: 2,988
I thought you could do this with Miks or SCT.. unless I'm not understanding, which is highly likely lol.
__________________
♪~ ( ) I My Sonos!
AddOn Authors: If your addon spams the chat box with "Addon v8.3.4.5.3 now loaded!", please add an option to disable it!
  Reply With Quote
08-28-10, 08:11 AM   #8
sacrife
An Onyxian Warder
 
sacrife's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 384
Well you can with Mik's. And if you position above the player head and disables the default blizzard combat damage you might simulate what the OP wants.
__________________

  Reply With Quote
08-28-10, 08:13 AM   #9
LaDyNaaMAH
A Deviate Faerie Dragon
 
LaDyNaaMAH's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2010
Posts: 10
Well the whole problem is that i don't want to REPLACE blizzard's combat text, just adding few own messages, the thing is... there is option to toggle buffs gain/fade... that sucks cause it monitors auras that i couldn't care less such as priest prayers that lasts for one hour and don't need to be reapplied too often... besides... i am warrior, that's their business to maintain forts, not mine... i just wanna messages "hey! watch your goddamn shout!" above my character...
__________________
Why don't you ask me how it feels like to be a freak?
From my workshop:
MyLoot - v1.2 Release available.
ShoutControl - v0.1 Beta available.
  Reply With Quote
08-28-10, 09:38 AM   #10
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
http://www.wowace.com/addons/libsink-2-0/
__________________
"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
08-28-10, 09:57 AM   #11
TheRealArkayn
A Deviate Faerie Dragon
 
TheRealArkayn's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 15
I've determined it is impossible to change the font size of the default damage output without manually modifying the .ttf file and using an add-on like xDamageFont. I'm actually not even sure modifying the .ttf would prove successful. Font size may be controlled by the game's rendering engine.
  Reply With Quote
08-28-10, 10:02 AM   #12
LaDyNaaMAH
A Deviate Faerie Dragon
 
LaDyNaaMAH's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2010
Posts: 10
I believe that using another font might make the text look different but it can't change it's size unless you create a font just for this purpose and even if you would try it might be either technically impossible to do or the results might be undesirable...
__________________
Why don't you ask me how it feels like to be a freak?
From my workshop:
MyLoot - v1.2 Release available.
ShoutControl - v0.1 Beta available.
  Reply With Quote
08-28-10, 10:11 AM   #13
Nobgul
A Molten Giant
 
Nobgul's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 693
Thats because you do not need to change the "size of the text". You need to change the "Scale" of frame where the text is being displayed. Which may be impossible with the standard blizzard SCT.
  Reply With Quote
08-28-10, 10:14 AM   #14
TheRealArkayn
A Deviate Faerie Dragon
 
TheRealArkayn's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 15
This isn't about the standard Blizzard SCT. SCT has nothing to do with this topic.
  Reply With Quote
08-28-10, 10:22 AM   #15
Nobgul
A Molten Giant
 
Nobgul's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 693
I may be tired by xDamageFont changes the damage font of the scrolling combat text doesn't it? You know you hit something it shows you yuor damage which is SCT.

Or am I just being stupid here?
Originally Posted by WaldoJeffers View Post
Hey, this is the code for a mod called Good Damage Font which "changes the normal WoW damage font to the cool kind you see in a lot of WoW pvp videos" Can i please get some help with manipulating the size of this font please? The font in game is a little to small

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()
Thanks for anything I can get
  Reply With Quote
08-28-10, 04:44 PM   #16
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
You're not being stupid. This thread *is* about the Blizzard FCT (aka. SCT).
__________________
"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
08-28-10, 04:51 PM   #17
TheRealArkayn
A Deviate Faerie Dragon
 
TheRealArkayn's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 15
I consider the Blizzard SCT to be the messages like *Stunned!* that scroll from directly upon your character; in contrast, the damage font is the numerical text generated in the 3D world. It pops out of an enemy's head, drops, and lands at its feet. I'm not sure if the SCT is at all configurable, and frankly I don't care. It's the damage font that I and the OP want to alter the size of.
  Reply With Quote
08-28-10, 05:07 PM   #18
Nobgul
A Molten Giant
 
Nobgul's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 693
Thank you Seerah,
When I Posted sleep was needed.

Lol ok, no worries. And yes you can change the "Scale" aka "size" I was able to a few minutes ago with some slick LUA.

Originally Posted by TheRealArkayn View Post
I consider the Blizzard SCT to be the messages like *Stunned!* that scroll from directly upon your character; in contrast, the damage font is the numerical text generated in the 3D world. It pops out of an enemy's head, drops, and lands at its feet. I'm not sure if the SCT is at all configurable, and frankly I don't care. It's the damage font that I and the OP want to alter the size of.

Last edited by Nobgul : 08-28-10 at 05:10 PM.
  Reply With Quote
08-28-10, 08:38 PM   #19
TheRealArkayn
A Deviate Faerie Dragon
 
TheRealArkayn's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 15
Why ya holdin' out, nobgul?

I'd certainly like to see the lua for increasing my damage font size. If it helps, I'll even donate $5 when I see it working.
  Reply With Quote
09-01-10, 12:09 AM   #20
Miiru
A Flamescale Wyrmkin
 
Miiru's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 138
Soooo any news on this one? >:
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Code to change font size for damage text


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