private void AfterDeserialized(System.Runtime.Serialization.StreamingContext context)
{
if (Engine.Fonts.ContainsKey(Name))
{
var master = Engine.Fonts[Name];
Initialize(master, SizeMultiple);
}
else
{
throw new Exception($"A font is being used that has not been added to the engine. Name: {Name}");
}
}