View Single Post
09-01-12, 08:55 AM   #248
Meorawr
A Chromatic Dragonspawn
AddOn Author - Click to view addons
Join Date: Nov 2010
Posts: 193
If you're combining it with an outline style, it works perfectly fine.

Oh and I take back what I said about it not crashing. I think my quick test on it yesterday did something odd - either that or the bug doesn't always result in a client crash.

Test #1: Works, creates the fontstring and displays "BANANAS!" at size 32 with an outline.
Lua Code:
  1. local __T = UIParent:CreateFontString();
  2. __T:SetFont([[Fonts\FRIZQT__.ttf]], 32, "OUTLINE");
  3. __T:SetText("BANANAS!");
  4. __T:SetPoint("CENTER");

Test #2: Works, same as above but with the MONOCHROME style added.
Lua Code:
  1. local __T = UIParent:CreateFontString();
  2. __T:SetFont([[Fonts\FRIZQT__.ttf]], 32, "MONOCHROME, OUTLINE");
  3. __T:SetText("BANANAS!");
  4. __T:SetPoint("CENTER");

Test #3: Crashes, no outline style specified.
Lua Code:
  1. local __T = UIParent:CreateFontString();
  2. __T:SetFont([[Fonts\FRIZQT__.ttf]], 32, "MONOCHROME");
  3. __T:SetText("BANANAS!");
  4. __T:SetPoint("CENTER");

Last edited by Meorawr : 09-01-12 at 09:04 AM.