예제 #1
0
        public bool ReadExtraFonts(Location location)
        {
            if (_root == null)
            {
                return(false);
            }

            XmlElement node = _root["ExtraFont"];

            if (node == null)
            {
                return(false);
            }

            if (!node.GetBoolean("IsExists"))
            {
                return(true);
            }

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

            GameFont result = GameFontReader.FromDirectory(exfDirPath);

            location.ExtraFont = result;

            location.SaveRequest &= ~LocationProperty.ExtraFonts;
            location.Importable  |= LocationProperty.ExtraFonts;
            return(true);
        }
예제 #2
0
파일: GameFont.cs 프로젝트: rebootus/Esthar
        private static GameFont LoadHiResFont()
        {
            GameFont font = GameFontReader.FromDirectory(FontDirectory);

            if (font == null)
            {
                font = GameFontReader.HiResFromGameData();
                GameFontWriter.ToDirectory(font, FontDirectory);
            }
            return(font);
        }