コード例 #1
0
ファイル: Font.cs プロジェクト: Mrcarrot1/winecrash
        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);
        }
コード例 #2
0
ファイル: Font.cs プロジェクト: Mrcarrot1/winecrash
 public Font(string name, GlyphTable glyphs) : base(name)
 {
     this.Glyphs = glyphs;
     _FontCache.Add(this);
 }