コード例 #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
        public bool ReadExtraFonts(Location location)
        {
            GameFont font = GameFontReader.FromGameData(_locationDirectory, _name);

            location.ExtraFont = font;

            location.SaveRequest &= ~LocationProperty.ExtraFonts;
            location.Importable  &= ~LocationProperty.ExtraFonts;
            return(true);
        }
コード例 #3
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);
        }