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