Beispiel #1
0
        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);
        }
Beispiel #2
0
 public Font(string name, GlyphTable glyphs) : base(name)
 {
     this.Glyphs = glyphs;
     _FontCache.Add(this);
 }