示例#1
0
 public static void AddTtfFile(string file)
 {
     if (loadedTtf.Contains(file))
     {
         return;
     }
     if (!File.Exists(file))
     {
         throw new FileNotFoundException(file);
     }
     loadedTtf.Add(file);
     RunningPlatform.AddTtfFile(file);
 }
示例#2
0
 public static void AddTtfFile(string file)
 {
     if (LoadedTTFs.Contains(file))
     {
         return;
     }
     if (!File.Exists(file))
     {
         throw new FileNotFoundException(file);
     }
     LoadedTTFs.Add(file);
     RunningPlatform.AddTtfFile(file);
     FontLoaded?.Invoke();
 }