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
@@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user