private void RefreshText(string text)
{
GorgonLibrary.Graphics.Font font;
if (string.IsNullOrEmpty(_font))
{
font = FontManager.GetDefaultFont();
}
else
{
font = FontManager.GetFont(_font);
}
_textSprite = new TextSprite("Arial", text, font, _color);
if (!_outlineColor.IsEmpty)
{
_textSprite.ShadowColor = _outlineColor;
_textSprite.ShadowDirection = FontShadowDirection.LowerRight;
_textSprite.Shadowed = true;
}
SetAlignment(_isRightAligned);
Text = text;
}