Skip to content

Releases: rds1983/SpriteFontPlus

0.8.5.43

15 Oct 19:25
Compare
Choose a tag to compare

BREAKING CHANGE: DynamicSpriteFont had been moved into the new project: https://github.com/rds1983/FontStashXNA
SpriteFontPlus would stick to its original scope - extending functionality of the XNA SpriteFont.

0.8.5.42

15 Oct 19:20
Compare
Choose a tag to compare

0.8.5.42

0.8.1.40

16 Aug 09:26
Compare
Choose a tag to compare

Fixes:
#45 - MeasureString is somewhat wrong when Font is stroked

0.8.1.39

15 Aug 20:28
Compare
Choose a tag to compare

New Features

Blurry Text

Blur level is specified in the font creation code like this:

var blurryFont = DynamicSpriteFont.FromTtf(stream, 30, 1024, 1024, 1); // 1 is blur level

Now this font will draw text like this:
image

Stroked Text

Stroke level is specified in the font creation code like this:

var strokeFont = DynamicSpriteFont.FromTtf(stream, 30, 1024, 1024, 0, 1); // 1 is stroke level

Now this font will draw text like this:
image

Many thanks to bartwe as his fork of SFF was used to merge features from.

0.8.0.38

15 Jun 15:36
b372c3f
Compare
Choose a tag to compare

#37 - Added Functions to get glyph dimensions

0.8.0.37

09 May 06:17
Compare
Choose a tag to compare

#34 - DynamicSpriteFont.Measure(" ") returns zero width

0.8.0.36

08 May 10:36
Compare
Choose a tag to compare

General Changes:

  • Returned back to StbTrueTypeSharp(from SafeStbTrueTypeSharp), so SpriteFontPlus is unsafe again.

New Features:

  • DynamicSpriteFont's set of methods accepting StringBuilder parameter.
  • DynamicSpriteFont's set of methods accepting array of colors for every individual glyph. Thus this code:
_spriteBatch.DrawString(_font, "Colored Text", new Vector2(0, 0), new Color[]
		{
			Color.Red,
			Color.Blue,
			Color.Green,
			Color.Aquamarine,
			Color.Azure,
			Color.Chartreuse,
			Color.Lavender,
			Color.OldLace,
			Color.PaleGreen,
			Color.SaddleBrown,
			Color.IndianRed,
			Color.ForestGreen,
			Color.Khaki
		});

Would render following:
image

Closed Issues:
#31 - Colors per glyph with DrawString
#33 - Feature Request: Add to DynamicSpriteFont methods that accept StringBuilder as parameter

0.7.5.26

27 Jan 18:49
Compare
Choose a tag to compare

Changes:

  • Removed FontId property from DynamicSpriteFont. Now a glyph is searched within all ttfs of DynamicSpriteFont. Thus now it's possible to to draw glyphs from multiple different ttfs in one DrawString call:
    image

  • Made major refactoring of FontStashSharp(library working behind DynamicSpriteFont) to make its code more performant and easier to read.

Closed Issues:

  • #19 - Feature Request: Add a .FromTtf overload that accepts a Stream
  • #21 - Add fallback glyph for some missing glyph
  • #22 - Make it so glyph is searched within all fonts of DynamicSpriteFont and remove FontId
  • #24 - Refactoring: Remove Alignment from FontStashSharp
  • #26 - Refactoring: Move Font loading into Font class. Also move there Ascender, Descender and LineHeight calculation.
  • #28 - Refactoring: Move kernings data inside FontGlyph class

0.7.1.25

04 Jan 17:36
Compare
Choose a tag to compare
  • Fixed #18 by introducing new property DynamicSpriteFont.UseKerning(default value is true)

0.7.1.24

04 Jan 11:05
Compare
Choose a tag to compare