Skip to content

Releases: tommyettinger/textratypist

0.2.0 "Family Matters"

02 Mar 06:26
Compare
Choose a tag to compare

This is another big release! New here is the concept of a "font family", which provides a group of options for other typefaces that a given Font can render in one drawing call. Typically, you would create the family first, then use the first font in it as the main Font, with the family then assigned to that main Font. Most of the demos/tests include font families now, so you can take a look at FontSwitchTest or other examples to get started. There's some clean-up in the known fonts, including more support for non-distance-field fonts. Avoiding distance fields can be useful with font families, since having one Font using SDF, another using MSDF, and another using no distance field would be... tricky. Also new in this release are some fixes for unusual behavior of TypingLabel effects in some cases relating to word wrap, and more-correct behavior of Font's markup and drawing methods when curly-braced content is encountered (it should go into the Layout because TypingLabel can need it, but not be rendered).

I hope you enjoy the new features and fixes!

0.1.6 "Floofermelon"

22 Feb 04:29
Compare
Choose a tag to compare

This is a much bigger release than the last one, both figuratively and literally! You can now scale text reasonably well to sizes between 0% (or more reasonably, 25%) and 375%, in-line with other text with other sizes. There's lots of other improvements, like methods in Font to extract colors, styles, scale, and chars from glyphs without bitwise magic. This can also load fonts from SadConsole's format in addition to the existing BMFont format, and has some small improvements for the block-drawing mode.

A possible breaking change is that now, instead of a ColorLookup returning a null Integer if no color was found, now it always returns a non-null int, using 256 (or 0x00000100) as a sentinel value that indicates no color was found. In RGBA8888, 0x00000100 is fully transparent and very slightly blue but almost black. There should be very few, if any, cases where 256 is needed as a valid color.

0.1.5 "One Cool Cat"

07 Jan 03:17
Compare
Choose a tag to compare

This release fixes a small, but potentially bad, bug with wrapping in a TypingLabel if the Font used kerning. It also adds nice convenience methods, one static, to Font to allow producing styled long glyphs more easily. Not much else to say!

0.1.4 "The Cat Came Back"

24 Dec 05:47
Compare
Choose a tag to compare

This release fixes several bugs across mostly TypingLabel, but also Font. Alpha wasn't rendered correctly before; only the batch alpha was used before and the glyph alpha was ignored (now they are multiplied). That fixes FadeEffect when used with alpha. A nasty bug with text wrapping while certain effects were active would have caused text to be almost-randomly duplicated in long spans on the second line and later lines in a wrapped TypingLabel (this has been fixed). Alignment is handled well in TypingLabel now; before, using center alignment would move the text to the right, and using right alignment would move it to the left, but neither would change the per-line alignment. Now alignment is respected and TypingLabel can expand from right to left for a right-aligned label, or outwards in both directions for a center-aligned one.

0.1.3 "Keyboard Cat's Revenge"

12 Dec 00:02
Compare
Choose a tag to compare

This release only exists as a quick fix before the current libGDX game jam, and only addresses an incorrect-line-break issue with TypingLabel. Some words would go onto a new line too soon, and then the Layout would be out-of-sorts with the shown text, resulting in one-word lines and extra line breaks. This seems fixed now; it may have a performance impact, but I haven't noticed one yet.

0.1.2 "Keyboard Cat Types Furiously"

10 Dec 07:12
Compare
Choose a tag to compare

This release is almost entirely a set of bugfixes needed to get TypingLabel, and to a lesser extent TextraLabel, working correctly as Scene2D widgets. This was an absolutely maddening series of fixes upon fixes, and I hope it all works, but it seems to for now. The layout system needed a lot of work, but now text will take up more vertical space as it adds lines, and will lay itself out again if the width changes. There's a vital fix for a case where very small widths for a TypingLabel could exhaust all JVM memory (because it would keep trying to find a way to break a line that couldn't be broken). Tokens are now parsed upon layout changes (but still may need to be parsed in the current places), which lets the scene2d.ui part work correctly. Lots of stuff. Big thanks to @raeleus and D.Q. for getting me going on this again.

Also, there's a ton of known fonts still, so I hope those can be useful.

0.1.1 "Jolt of Awareness"

03 Nov 06:50
Compare
Choose a tag to compare

It's another release! There are JARs here! They support styles on top of typing-label's effects! There's a JOLT effect! There's configuration for already-known fonts, and links to the fonts in this repo! You should use Gradle to get these dependencies instead!

0.1.0 "One Small Step"

22 Oct 05:03
Compare
Choose a tag to compare

It's an initial release! There are JARs here! They support styles on top of typing-label's effects! You should use Gradle to get these dependencies instead!