public Font(string path, string name = null) : base() { this.Name = name ?? path.Split('/', '\\').Last().Split('.')[0]; Glyphs = JsonConvert.DeserializeObject <GlyphTable>(File.ReadAllText(path)); _FontCache.Add(this); }
public Font(string name, GlyphTable glyphs) : base(name) { this.Glyphs = glyphs; _FontCache.Add(this); }