Skip to content

Commit

Permalink
Release 0.5.4 !
Browse files Browse the repository at this point in the history
Former-commit-id: 565e972
  • Loading branch information
tommyettinger committed Jun 18, 2022
1 parent bc8bf51 commit f3c39d4
Show file tree
Hide file tree
Showing 115 changed files with 3,136 additions and 2,478 deletions.
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,15 @@ licenses for details.

You can rotate individual glyphs (if you draw them individually) or rotate whole blocks of text as a Layout, using an
optional overload of `Font.drawGlyph()` or `Font.drawGlyphs()`. Custom effects for `TypingLabel` can also individually
change the rotation of any glyph, as well as its position and scale on x and/or y. You can also, for some fonts, have
change the rotation of any glyph, as well as its position and scale on x and/or y. You can rotate a TextraLabel or
TypingLabel by using their `setRotation()` methods, but these are currently only even remotely usable for Labels without
background graphics. Any help with the rotation code would be appreciated! You can also, for some fonts, have
box-drawing characters and block elements be automatically generated. This needs a solid white block character (of any
size, typically 1x1) present in the font at id 0 (used here because most fonts don't use it) or 9608 (the Unicode full
block index, `'\u2588'`). This also enables a better guarantee of underline and strikethrough characters connecting
properly, and without smudging where two underscores or hyphens overlap each other. `Font` attempts to enable this by
default, but if it fails then it falls back to using underscores for underline and hyphens for strikethrough. All the
size, typically 1x1) present in the font at id 0 (used here because most fonts don't use it) or better, 9608 (the
Unicode full block index, `'\u2588'`, which is preferred because BitmapFont treats id 0 differently). This also enables
a better guarantee of underline and strikethrough characters connecting properly, and without smudging where two
underscores or hyphens overlap each other. `Font` attempts to enable this in some cases, or it can be set with a
parameter, but if it fails then it falls back to using underscores for underline and hyphens for strikethrough. All the
fonts in `KnownFonts` either are configured to use a solid block or to specifically avoid it because that font renders
better without it. Note that if you create a `Font` from a libGDX `BitmapFont`, this defaults to not even trying to make
grid glyphs, because BitmapFonts rarely have a suitable solid block char.
Expand All @@ -129,7 +132,7 @@ for some usage. A counterpart to `TextArea` is planned.
You probably want to get this with Gradle! The dependency for a libGDX project's core module looks like:

```groovy
implementation "com.github.tommyettinger:textratypist:0.5.3"
implementation "com.github.tommyettinger:textratypist:0.5.4"
```

This assumes you already depend on libGDX; TextraTypist depends on version 1.11.0 or higher. The requirement for 1.11.0
Expand All @@ -138,7 +141,7 @@ was added in TextraTypist 0.5.0 because of some breaking changes in tooltip code
If you use GWT, this should be compatible. It needs these dependencies in the html module:

```groovy
implementation "com.github.tommyettinger:textratypist:0.5.3:sources"
implementation "com.github.tommyettinger:textratypist:0.5.4:sources"
implementation "com.github.tommyettinger:regexodus:0.1.13:sources"
```

Expand Down Expand Up @@ -171,7 +174,7 @@ but I request that it only be used to refer to this project unless substantially

Wow, raeleus has really helped a tremendous amount. Both by testing TextraTypist in his Skin Composer app (which found
quite a lot of bugs, small and large), and advising on proper scene2d.ui layout practices (which were not easy to get
100% right), the large 0.5.2 release would not be what it is today without his input. Thank you!
100% right), the large 0.5.2 release (and those after it) would not be what it is today without his input. Thank you!

Of course, I have to thank Rafa Skoberg for writing quite a lot of the code here! About 2/3 of the effects are almost
purely by Rafa, much of the TypingLabel-related code is nearly unchanged from his work, and in general he showed what
Expand Down
3 changes: 2 additions & 1 deletion docs/apidocs/allclasses-frame.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>All Classes (textratypist 0.5.3 API)</title>
<title>All Classes (textratypist 0.5.4 API)</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script>
</head>
Expand Down Expand Up @@ -37,6 +37,7 @@ <h1 class="bar">All&nbsp;Classes</h1>
<li><a href="com/github/tommyettinger/textra/Line.html" title="class in com.github.tommyettinger.textra" target="classFrame">Line</a></li>
<li><a href="com/github/tommyettinger/textra/utils/NoiseUtils.html" title="class in com.github.tommyettinger.textra.utils" target="classFrame">NoiseUtils</a></li>
<li><a href="com/github/tommyettinger/textra/effects/RainbowEffect.html" title="class in com.github.tommyettinger.textra.effects" target="classFrame">RainbowEffect</a></li>
<li><a href="com/github/tommyettinger/textra/effects/RotateEffect.html" title="class in com.github.tommyettinger.textra.effects" target="classFrame">RotateEffect</a></li>
<li><a href="com/github/tommyettinger/textra/effects/ScaleEffect.html" title="class in com.github.tommyettinger.textra.effects" target="classFrame">ScaleEffect</a></li>
<li><a href="com/github/tommyettinger/textra/effects/ShakeEffect.html" title="class in com.github.tommyettinger.textra.effects" target="classFrame">ShakeEffect</a></li>
<li><a href="com/github/tommyettinger/textra/effects/ShrinkEffect.html" title="class in com.github.tommyettinger.textra.effects" target="classFrame">ShrinkEffect</a></li>
Expand Down
3 changes: 2 additions & 1 deletion docs/apidocs/allclasses-noframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>All Classes (textratypist 0.5.3 API)</title>
<title>All Classes (textratypist 0.5.4 API)</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script>
</head>
Expand Down Expand Up @@ -37,6 +37,7 @@ <h1 class="bar">All&nbsp;Classes</h1>
<li><a href="com/github/tommyettinger/textra/Line.html" title="class in com.github.tommyettinger.textra">Line</a></li>
<li><a href="com/github/tommyettinger/textra/utils/NoiseUtils.html" title="class in com.github.tommyettinger.textra.utils">NoiseUtils</a></li>
<li><a href="com/github/tommyettinger/textra/effects/RainbowEffect.html" title="class in com.github.tommyettinger.textra.effects">RainbowEffect</a></li>
<li><a href="com/github/tommyettinger/textra/effects/RotateEffect.html" title="class in com.github.tommyettinger.textra.effects">RotateEffect</a></li>
<li><a href="com/github/tommyettinger/textra/effects/ScaleEffect.html" title="class in com.github.tommyettinger.textra.effects">ScaleEffect</a></li>
<li><a href="com/github/tommyettinger/textra/effects/ShakeEffect.html" title="class in com.github.tommyettinger.textra.effects">ShakeEffect</a></li>
<li><a href="com/github/tommyettinger/textra/effects/ShrinkEffect.html" title="class in com.github.tommyettinger.textra.effects">ShrinkEffect</a></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>ColorLookup.GdxColorLookup (textratypist 0.5.3 API)</title>
<title>ColorLookup.GdxColorLookup (textratypist 0.5.4 API)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="ColorLookup.GdxColorLookup (textratypist 0.5.3 API)";
parent.document.title="ColorLookup.GdxColorLookup (textratypist 0.5.4 API)";
}
}
catch(err) {
Expand Down
4 changes: 2 additions & 2 deletions docs/apidocs/com/github/tommyettinger/textra/ColorLookup.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>ColorLookup (textratypist 0.5.3 API)</title>
<title>ColorLookup (textratypist 0.5.4 API)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="ColorLookup (textratypist 0.5.3 API)";
parent.document.title="ColorLookup (textratypist 0.5.4 API)";
}
}
catch(err) {
Expand Down
6 changes: 3 additions & 3 deletions docs/apidocs/com/github/tommyettinger/textra/Effect.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>Effect (textratypist 0.5.3 API)</title>
<title>Effect (textratypist 0.5.4 API)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Effect (textratypist 0.5.3 API)";
parent.document.title="Effect (textratypist 0.5.4 API)";
}
}
catch(err) {
Expand Down Expand Up @@ -107,7 +107,7 @@ <h2 title="Class Effect" class="title">Class Effect</h2>
<li class="blockList">
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../com/github/tommyettinger/textra/effects/BlinkEffect.html" title="class in com.github.tommyettinger.textra.effects">BlinkEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/CarouselEffect.html" title="class in com.github.tommyettinger.textra.effects">CarouselEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/CrowdEffect.html" title="class in com.github.tommyettinger.textra.effects">CrowdEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/EaseEffect.html" title="class in com.github.tommyettinger.textra.effects">EaseEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/EmergeEffect.html" title="class in com.github.tommyettinger.textra.effects">EmergeEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/FadeEffect.html" title="class in com.github.tommyettinger.textra.effects">FadeEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/GradientEffect.html" title="class in com.github.tommyettinger.textra.effects">GradientEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/HangEffect.html" title="class in com.github.tommyettinger.textra.effects">HangEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/HeartbeatEffect.html" title="class in com.github.tommyettinger.textra.effects">HeartbeatEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/JoltEffect.html" title="class in com.github.tommyettinger.textra.effects">JoltEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/JumpEffect.html" title="class in com.github.tommyettinger.textra.effects">JumpEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/RainbowEffect.html" title="class in com.github.tommyettinger.textra.effects">RainbowEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/ScaleEffect.html" title="class in com.github.tommyettinger.textra.effects">ScaleEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/ShakeEffect.html" title="class in com.github.tommyettinger.textra.effects">ShakeEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/ShrinkEffect.html" title="class in com.github.tommyettinger.textra.effects">ShrinkEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/SickEffect.html" title="class in com.github.tommyettinger.textra.effects">SickEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/SlideEffect.html" title="class in com.github.tommyettinger.textra.effects">SlideEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/SpinEffect.html" title="class in com.github.tommyettinger.textra.effects">SpinEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/SpiralEffect.html" title="class in com.github.tommyettinger.textra.effects">SpiralEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/SquashEffect.html" title="class in com.github.tommyettinger.textra.effects">SquashEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/WaveEffect.html" title="class in com.github.tommyettinger.textra.effects">WaveEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/WindEffect.html" title="class in com.github.tommyettinger.textra.effects">WindEffect</a></dd>
<dd><a href="../../../../com/github/tommyettinger/textra/effects/BlinkEffect.html" title="class in com.github.tommyettinger.textra.effects">BlinkEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/CarouselEffect.html" title="class in com.github.tommyettinger.textra.effects">CarouselEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/CrowdEffect.html" title="class in com.github.tommyettinger.textra.effects">CrowdEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/EaseEffect.html" title="class in com.github.tommyettinger.textra.effects">EaseEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/EmergeEffect.html" title="class in com.github.tommyettinger.textra.effects">EmergeEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/FadeEffect.html" title="class in com.github.tommyettinger.textra.effects">FadeEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/GradientEffect.html" title="class in com.github.tommyettinger.textra.effects">GradientEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/HangEffect.html" title="class in com.github.tommyettinger.textra.effects">HangEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/HeartbeatEffect.html" title="class in com.github.tommyettinger.textra.effects">HeartbeatEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/JoltEffect.html" title="class in com.github.tommyettinger.textra.effects">JoltEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/JumpEffect.html" title="class in com.github.tommyettinger.textra.effects">JumpEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/RainbowEffect.html" title="class in com.github.tommyettinger.textra.effects">RainbowEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/RotateEffect.html" title="class in com.github.tommyettinger.textra.effects">RotateEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/ScaleEffect.html" title="class in com.github.tommyettinger.textra.effects">ScaleEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/ShakeEffect.html" title="class in com.github.tommyettinger.textra.effects">ShakeEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/ShrinkEffect.html" title="class in com.github.tommyettinger.textra.effects">ShrinkEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/SickEffect.html" title="class in com.github.tommyettinger.textra.effects">SickEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/SlideEffect.html" title="class in com.github.tommyettinger.textra.effects">SlideEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/SpinEffect.html" title="class in com.github.tommyettinger.textra.effects">SpinEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/SpiralEffect.html" title="class in com.github.tommyettinger.textra.effects">SpiralEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/SquashEffect.html" title="class in com.github.tommyettinger.textra.effects">SquashEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/WaveEffect.html" title="class in com.github.tommyettinger.textra.effects">WaveEffect</a>, <a href="../../../../com/github/tommyettinger/textra/effects/WindEffect.html" title="class in com.github.tommyettinger.textra.effects">WindEffect</a></dd>
</dl>
<hr>
<br>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>Font.DistanceFieldType (textratypist 0.5.3 API)</title>
<title>Font.DistanceFieldType (textratypist 0.5.4 API)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Font.DistanceFieldType (textratypist 0.5.3 API)";
parent.document.title="Font.DistanceFieldType (textratypist 0.5.4 API)";
}
}
catch(err) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>Font.FontFamily (textratypist 0.5.3 API)</title>
<title>Font.FontFamily (textratypist 0.5.4 API)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Font.FontFamily (textratypist 0.5.3 API)";
parent.document.title="Font.FontFamily (textratypist 0.5.4 API)";
}
}
catch(err) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>Font.GlyphRegion (textratypist 0.5.3 API)</title>
<title>Font.GlyphRegion (textratypist 0.5.4 API)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Font.GlyphRegion (textratypist 0.5.3 API)";
parent.document.title="Font.GlyphRegion (textratypist 0.5.4 API)";
}
}
catch(err) {
Expand Down
8 changes: 4 additions & 4 deletions docs/apidocs/com/github/tommyettinger/textra/Font.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>Font (textratypist 0.5.3 API)</title>
<title>Font (textratypist 0.5.4 API)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Font (textratypist 0.5.3 API)";
parent.document.title="Font (textratypist 0.5.4 API)";
}
}
catch(err) {
Expand Down Expand Up @@ -3327,7 +3327,7 @@ <h4>markupGlyph</h4>
<dd><code>chr</code> - a single char to apply markup to</dd>
<dd><code>markup</code> - a String containing only markup syntax, like "[*][_][RED]" for bold underline in red</dd>
<dd><code>colorLookup</code> - a ColorLookup (often a method reference or <a href="../../../../com/github/tommyettinger/textra/ColorLookup.GdxColorLookup.html#INSTANCE"><code>ColorLookup.GdxColorLookup.INSTANCE</code></a>) to get
colors from textual names or descriptions</dd>
colors from textual names or descriptions</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a long that encodes the given char with the specified markup</dd>
</dl>
Expand Down Expand Up @@ -3386,7 +3386,7 @@ <h4>markupGlyph</h4>
<dd><code>chr</code> - a single char to apply markup to</dd>
<dd><code>markup</code> - a String containing only markup syntax, like "[*][_][RED]" for bold underline in red</dd>
<dd><code>colorLookup</code> - a ColorLookup (often a method reference or <a href="../../../../com/github/tommyettinger/textra/ColorLookup.GdxColorLookup.html#INSTANCE"><code>ColorLookup.GdxColorLookup.INSTANCE</code></a>) to get
colors from textual names or descriptions</dd>
colors from textual names or descriptions</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a long that encodes the given char with the specified markup</dd>
</dl>
Expand Down
Loading

0 comments on commit f3c39d4

Please sign in to comment.