示例#1
0
 public void SaveFont()
 {
     if (!string.IsNullOrEmpty(FilePath) && FilePath.EndsWith(".pck"))
     {
         // PCK Save
         using (var stream = new MemoryStream())
         {
             FontCodeFile.Save(stream);
             PCKFontArchive.ReplaceFile(PCKFontArchive.SearchForFile(".code"), stream.ToArray());
         }
         PCKFontArchive.Save(FilePath);
     }
     else
     {
         // Code Save
         FontCodeFile.Save(FilePath);
     }
 }