示例#1
0
        private static GameFont LoadHiResFont()
        {
            GameFont font = GameFontReader.FromDirectory(FontDirectory);

            if (font == null)
            {
                font = GameFontReader.HiResFromGameData();
                GameFontWriter.ToDirectory(font, FontDirectory);
            }
            return(font);
        }
示例#2
0
        public void WriteExtraFonts(GameFont extraFont)
        {
            XmlElement node = _root.EnsureChildElement("ExtraFont");

            node.RemoveAll();

            bool isExists = extraFont != null;

            node.SetBoolean("IsExists", isExists);

            if (!isExists)
            {
                return;
            }

            string exfDirPath = Path.ChangeExtension(_xmlPath, ".exf");

            GameFontWriter.ToDirectory(extraFont, exfDirPath);
        }
示例#3
0
 public void ImportHiRes()
 {
     GameFontWriter.HiResToGameData(this);
 }
示例#4
0
 public void SaveHiRes()
 {
     GameFontWriter.ToDirectory(this, FontDirectory);
 }