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
@@ -126,7 +126,7 @@ namespace MonoGame.Extended.Gui.Controls
foreach (var glyph in font.GetGlyphs(textInfo.Text, textInfo.Position))
{
var fontRegionWidth = glyph.FontRegion?.Width ?? 0;
var fontRegionWidth = glyph.Character?.TextureRegion?.Width ?? 0;
var glyphMiddle = (int) (glyph.Position.X + fontRegionWidth * 0.5f);
if (position.X >= glyphMiddle)