private void UpdateSpriteFont()
{
SpriteFont font = null;
try
{
if (!string.IsNullOrEmpty(this.fontPath))
{
font = this.Assets.LoadAsset<SpriteFont>(this.fontPath);
}
else
{
font = StaticResources.DefaultSpriteFont;
}
}
catch (Exception)
{
font = null;
}
this.spriteFont = font;
}