mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 03:56:31 +00:00
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:
committed by
GitHub
parent
1f0235c605
commit
66277568c8
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user