View Single Post
02-24-09, 04:21 PM   #800
Zyonin
Coffee powered Kaldorei
 
Zyonin's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 1,443
Originally Posted by MoonWitch View Post
local font = "Interface\\AddOnName\\font.ttf"

fontString = parentFrame:CreateFontString(nil, "OVERLAY")
fontString:SetFont(font, fontSizeOfYourChoice)
fontString:SetTextColor(r, g, b)

Note : when specifying folders in locations of files, you or use "x\\x\\x" (double \) or [=[x\x\x]=]

In your first line (self.Health.Text = self.Health:CreateFontString(nil, 'OVERLAY', 'GameFontHighlightSmallRight')) -> you are already giving a font to use. Drop that part.
Thanks MW, its getting late in my part of the world so i will continue my banging away at this tomarrow. I know I am close, this might be just the crack I need to get through.
__________________
Twitter