SetJustifyV is not for anchoring (SetPoint), it purely to set the vertical justification of the text inside a FontString (Think of the FontString as a container you anchor and the text inside as something separate that you control the look of based on the containers dimensions along with SetJustifyV/SetJustifyH).
For Cata (and presumably the other versions at some point) you can't use "CENTER" for SetJustifV, only "MIDDLE". Retail and Vanilla will sitll accept "CENTER" or "MIDDLE" for the time being but you may as well change those.
If you have saved any FontStrings SetJustifyV settings in your SavedVariables as "CENTER" then they will also cause an error and the SV entries will need to be updated to "MIDDLE".
Example:
Lua Code:
local Text = "This is text to test. [%s] "
local V = { "TOP", "MIDDLE", "BOTTOM" }
local H = { "LEFT", "CENTER", "RIGHT" }
local last
for i = 1, 3 do
local t1 = UIParent:CreateFontString()
t1:SetFontObject(GameFontNormal)
t1:SetSize(55, 100)
t1:SetPoint("TOP", last and last or UIParent, last and "BOTTOM" or nil)
t1:SetJustifyV(V[i])
t1:SetText(format(Text, V[i]))
local x = UIParent:CreateTexture()
x:SetAllPoints(t1)
x:SetColorTexture(random(0, 255) / 255, random(0, 255) / 255, random(0, 255) / 255, 0.3)
local t2 = UIParent:CreateFontString()
t2:SetFontObject(GameFontNormal)
t2:SetSize(250, 20)
t2:SetPoint("LEFT", t1, "RIGHT", 10, 0)
t2:SetJustifyH(H[i])
t2:SetText(format(Text, H[i]))
local x = UIParent:CreateTexture()
x:SetAllPoints(t2)
x:SetColorTexture(random(0, 255) / 255, random(0, 255) / 255, random(0, 255) / 255, 0.3)
last = t1
end
-- add a no size FontString that will adjust to fit the text, JustifyV is "CENTER" by default
local t1 = UIParent:CreateFontString()
t1:SetFontObject(GameFontNormal)
--t1:SetSize(55, 100)
t1:SetPoint("TOP", last, "BOTTOM", 0, -10)
--t1:SetJustifyV(V[i])
t1:SetText("NO SIZE\n" .. Text .. Text .."\n" .. Text .."\n" .. Text .. Text .. Text)
local x = UIParent:CreateTexture()
x:SetAllPoints(t1)
x:SetColorTexture(random(0, 255) / 255, random(0, 255) / 255, random(0, 255) / 255, 0.3)
If the FontString is too narrow for a word it should terminate with
...