Exemple #1
0
        public void SaveAsMCMDocument()
        {
            string path = dialogService.GetFileSavePath("Save MCM Font File", "mcm", "mcm File|*.mcm");

            if (path == null)
            {
                return;
            }

            if (openFilePath == null)
            {
                openFilePath = path;
            }

            CurrentGlyphSet.SaveMcmFile(path);
        }
Exemple #2
0
        public void SaveAsHDocument()
        {
            string path = dialogService.GetFileSavePath("Save Header Font File", "h", "Header File|*.h");

            if (path == null)
            {
                return;
            }

            if (openFilePath == null)
            {
                openFilePath = path;
            }

            CurrentGlyphSet.SaveHFile(path);
        }
Exemple #3
0
        public void SaveDocument()
        {
            if (openFilePath == null)
            {
                SaveAsMCMDocument();
                return;
            }

            if (Path.GetExtension(openFilePath) == ".mcm")
            {
                CurrentGlyphSet.SaveMcmFile(openFilePath);
            }
            else if (Path.GetExtension(openFilePath) == ".h")
            {
                CurrentGlyphSet.SaveHFile(openFilePath);
            }
        }