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); }
private static GameFont LoadHiResFont() { GameFont font = GameFontReader.FromDirectory(FontDirectory); if (font == null) { font = GameFontReader.HiResFromGameData(); GameFontWriter.ToDirectory(font, FontDirectory); } return(font); }