View Single Post
01-09-14, 03:45 AM   #1
glupikreten
A Theradrim Guardian
Join Date: Apr 2009
Posts: 60
SetFont size help please

Hi,

I have
customFrame.text = customFrame:CreateFontString(nil, "BACKGROUND", "PVPInfoTextFont");
customFrame.text:SetFont("Fonts\\DAMAGE.ttf",22,"OUTLINE");

Why is 22 font size the biggest i can go in this case? If i put into 48 size remains 22... if i put 20 it scales down a bit as expected.

As you can see i'm not good at lua at all... so if anyone have any advice how to make font bigger ...


************************************
Whole frame
************************************
customFrame=CreateFrame("Frame");
customFrame:ClearAllPoints();
customFrame:SetHeight(30);
customFrame:SetWidth(300);
customFrame:SetScript("OnUpdate", customFrame_OnUpdate);
customFrame:Hide();
customFrame.text = customFrame:CreateFontString(nil, "BACKGROUND", "PVPInfoTextFont");
customFrame.text:SetFont("Fonts\\DAMAGE.ttf",22,"OUTLINE");
customFrame.text:SetAllPoints();
customFrame:SetPoint("CENTER", 0, 250);
customFrameTime = 0;
customFrame:EnableMouse(false)
customFrame:SetMovable(false)
  Reply With Quote