View Single Post
04-14-15, 07:07 PM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Just like frames and other objects, a fontstring needs to either use a template (an existing font object) or have visual properties set in order for you to be able to see it.

Here's a simple, barebones example.
Lua Code:
  1. local f = CreateFrame("Frame")
  2. f:SetPoint("CENTER")
  3. local text = f:CreateFontString(nil, nil, "GameFontNormal")
  4. text:SetPoint("CENTER")
  5. text:SetText("Hello!")

If you are having other problems, we will need to see your code. (We're not psychic. )
__________________
"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