Quantcast
WoWInterface - View Single Post - SetFont size help please
View Single Post
01-09-14, 03:49 AM   #2
Wimpface
A Molten Giant
 
Wimpface's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 648
Code:
customFrame.text = customFrame:CreateFontString(nil, "BACKGROUND", "PVPInfoTextFont");
Try without the red part, does that work? I'm fairly sure the third argument of CreateFontString is just so you don't have to set a font etc. manually, instead it'll inherit the style of an already existing template.

I'm not 100% sure about this, but this is what I gathered from when I was messing around with DailyChecklist.

EDIT: Some more reading on fontstrings
http://wowprogramming.com/docs/widge...eateFontString
http://wowprogramming.com/docs/widgets/FontString
http://wowprogramming.com/docs/widgets/FontInstance
__________________
All I see is strobe lights blinding me in my hindsight.
  Reply With Quote