- Fixed issues (including a crash) that could occur loading plain text fonts that contained blank lines
- Added deployment target for .NET 5.0
- Fixed a crash which occurred when trying to load a plain text font and texture file names contained spaces. Thanks to abenedik for the fix
- No longer requires a custom
global.json
to force an older SDK version in order to build the 3.5 target
- Fixed a crash loading text or xml fonts with negative values if the OS culture uses a different sign
- Fixed an issue if a text based font was missing a named value
- Added deployment targets for .NET Framework 3.5, 4.0, 4.5.2, 4.6.2, 4.6.2, 4.8, .NET Standard 1.3, .NET Standard 2.0, .NET Standard 2.1, .NET Core 2.1, .NET Core 2.2, and .NET Core 3.1
- Added support for BMFont version 3 binary fonts
- Added additional constructor to
Character
struct - Added
X
,Y
,Width
andHeight
properties to theCharacter
class - Added
OffsetX
andOffsetY
properties to theCharacter
class - Added
IsEmpty
and staticEmpty
properties to theCharacter
class - Added
InvalidChar
to theBitmapFont
class. If a BMFont explicitly defines the "invalid" character, this will be assigned to this property, otherwise it will useCharacter.Empty
- Performance improvements when loading text fonts
BitmapFont[char]
will no longer throw if a character not present in the font is requested, instead the value of theInvalidChar
property will be returned
- The
Character.Bounds
property has been deprecated and will be removed in a future version. TheX
,Y
,Width
andHeight
properties should be used instead - The
Character.Offset
property has been deprecated and will be removed in a future version. TheOffsetX
andOffsetY
properties should be used instead
- Due to switch to SDK projects, the .NET Framework 2.0 target the library was originally compiled under is no longer available
- API documentation is once again included in the NuGet package
- Added benchmark project
- Added tests
- Added SourceLink package support
- The
LineHeight
andBaseHeight
property values were swapped when loading XML format fonts
BitmapFont.GetKerning
always returned zero
- Replaced digital signature
- Corrected version information
- Removed nuget.exe and related resources as this is now handled natively by Visual Studio 2015
- Fixed an issue where missing attributes in plain text font files could cause a crash. Thanks to rds1983 for the fix.
- Added documentation
- Removed
BitmapFont.NormalizeLineBreaks
as this method should never have been added
- Added NuGet package
- Moved the load code from
BitmapFontLoader
into theBitmapFont
, leaving the original methods as placeholders. This now means you can overrideBitmapFont.Load
if you need to do any custom processing, something you couldn't do with the static method - Added new
Load
methods that supports using aStream
orTextReader
to avoid the need for a file - Added new
LoadText
andLoadXml
methods that support strings, again therefore no longer requiring a file - Minor performance improvements
- For some inexplicable reason, the XML font loader was loading the XML document twice
Note: Only the Load methods that take a file name will set the
FileName
property of thePage
object to a fully qualified path. The other methods will leave them as relative paths and you will need to handle this yourself.
- Added strong name
- Added
CLSCompliant
attribute
- Initial release