Exemple #1
0
        public static FfntFile ReadFfntFile(Stream inputStream)
        {
            FfntFile ffntFile = new FfntFile();

            ffntFile.Read(inputStream);
            return(ffntFile);
        }
        private static void SaveFont(FfntFile ffntFile, string fileName, string outputPath)
        {
            XmlSerializer serializer = new XmlSerializer(typeof (FfntFile), new[] {typeof (GlyphMap), typeof (FontData)});

            string outputFilePath = Path.Combine(outputPath, fileName + ".xml");
            using (var outputStream = new FileStream(outputFilePath, FileMode.Create))
            {
                serializer.Serialize(outputStream, ffntFile);
            }
        }
 public static FfntFile ReadFfntFile(Stream inputStream)
 {
     FfntFile ffntFile = new FfntFile();
     ffntFile.Read(inputStream);
     return ffntFile;
 }