View Single Post
06-10-23, 10:56 PM   #6
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,333
Unexpected behavior, but my own tests are confirming it as well. I simplified it down to running through a FontString, which would be where the processing happens, stripping the overhead of the Tooltip code.
Lua Code:
  1. local ProcessLocalizedString; do--  Package persistent FontString object into function prototype's scope
  2.     local ConverterFontString=UIParent:CreateFontString(nil,"BACKGROUND","GameFontNormal");
  3.     function ProcessLocalizedString(text)
  4.         ConverterFontString:SetText(text);
  5.         return ConverterFontString:GetText();
  6.     end
  7. end
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote