Refactor BitmapFont (#887)

* Update file header

* Created initial project to move BitmapFont too

* XMl, Text, and Binar reading now supported for BMFont

* Refactor BittmapFont

* Update content pipeline from BitmapFont refactor

* Update changelog
This commit is contained in:
Christopher Whitley
2024-06-11 00:25:10 -04:00
committed by GitHub
parent 1f0235c605
commit 66277568c8
39 changed files with 1775 additions and 641 deletions
@@ -14,12 +14,14 @@ namespace MonoGame.Extended.Content.Pipeline.BitmapFonts
writer.Write(textureAsset);
var fontFile = result.FontFile;
writer.Write(fontFile.FontName);
writer.Write(fontFile.Info.FontSize);
writer.Write(fontFile.Common.LineHeight);
writer.Write(fontFile.Chars.Count);
writer.Write(fontFile.Characters.Count);
foreach (var c in fontFile.Chars)
foreach (var c in fontFile.Characters)
{
writer.Write(c.Id);
writer.Write(c.ID);
writer.Write(c.Page);
writer.Write(c.X);
writer.Write(c.Y);
@@ -49,4 +51,4 @@ namespace MonoGame.Extended.Content.Pipeline.BitmapFonts
return "MonoGame.Extended.BitmapFonts.BitmapFontReader, MonoGame.Extended";
}
}
}
}