Skip to content

Commit

Permalink
Release 0.4.0 !
Browse files Browse the repository at this point in the history
Former-commit-id: ca104cf
  • Loading branch information
tommyettinger committed May 8, 2022
1 parent 2e378b8 commit 5072d83
Show file tree
Hide file tree
Showing 61 changed files with 5,859 additions and 305 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ characters and block elements be automatically generated. This needs a solid whi
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). 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 of the fonts in `KnownFonts`
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.

These two features are new in 0.3.0, and are expected to see more attention in future releases (such as more
configuration for rotation origin).

## Hold the phone, there's widgets!

Starting in the 0.4.0 release (in development), there are various widgets that replace their
Starting in the 0.4.0 release, there are various widgets that replace their
scene2d.ui counterparts and swap out `Label` for `TextraLabel`, allowing you to use markup in them.
The widgets are `ImageTextraButton`, `TextraButton`, `TextraCheckBox`, `TextraDialog`, `TextraLabel`, `TextraTooltip`,
and `TextraWindow`, at least, so far.
Expand All @@ -120,7 +120,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.3.0"
implementation "com.github.tommyettinger:textratypist:0.4.0"
```

This assumes you already depend on libGDX; TextraTypist depends on version 1.10.0 or higher, and should have no problems
Expand All @@ -131,7 +131,7 @@ a different version for 1.10.1 (-SNAPSHOT) and higher vs. 1.10.0 .
If you use GWT, this should be compatible. It needs these dependencies in the html module:

```groovy
implementation "com.github.tommyettinger:textratypist:0.3.0:sources"
implementation "com.github.tommyettinger:textratypist:0.4.0:sources"
implementation "com.github.tommyettinger:regexodus:0.1.13:sources"
```

Expand Down
8 changes: 7 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.3.0 API)</title>
<title>All Classes (textratypist 0.4.0 API)</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script>
</head>
Expand All @@ -25,6 +25,7 @@ <h1 class="bar">All&nbsp;Classes</h1>
<li><a href="com/github/tommyettinger/textra/Font.GlyphRegion.html" title="class in com.github.tommyettinger.textra" target="classFrame">Font.GlyphRegion</a></li>
<li><a href="com/github/tommyettinger/textra/effects/GradientEffect.html" title="class in com.github.tommyettinger.textra.effects" target="classFrame">GradientEffect</a></li>
<li><a href="com/github/tommyettinger/textra/effects/HangEffect.html" title="class in com.github.tommyettinger.textra.effects" target="classFrame">HangEffect</a></li>
<li><a href="com/github/tommyettinger/textra/ImageTextraButton.html" title="class in com.github.tommyettinger.textra" target="classFrame">ImageTextraButton</a></li>
<li><a href="com/github/tommyettinger/textra/effects/JoltEffect.html" title="class in com.github.tommyettinger.textra.effects" target="classFrame">JoltEffect</a></li>
<li><a href="com/github/tommyettinger/textra/effects/JumpEffect.html" title="class in com.github.tommyettinger.textra.effects" target="classFrame">JumpEffect</a></li>
<li><a href="com/github/tommyettinger/textra/KnownFonts.html" title="class in com.github.tommyettinger.textra" target="classFrame">KnownFonts</a></li>
Expand All @@ -35,7 +36,12 @@ <h1 class="bar">All&nbsp;Classes</h1>
<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/SickEffect.html" title="class in com.github.tommyettinger.textra.effects" target="classFrame">SickEffect</a></li>
<li><a href="com/github/tommyettinger/textra/effects/SlideEffect.html" title="class in com.github.tommyettinger.textra.effects" target="classFrame">SlideEffect</a></li>
<li><a href="com/github/tommyettinger/textra/TextraButton.html" title="class in com.github.tommyettinger.textra" target="classFrame">TextraButton</a></li>
<li><a href="com/github/tommyettinger/textra/TextraCheckBox.html" title="class in com.github.tommyettinger.textra" target="classFrame">TextraCheckBox</a></li>
<li><a href="com/github/tommyettinger/textra/TextraDialog.html" title="class in com.github.tommyettinger.textra" target="classFrame">TextraDialog</a></li>
<li><a href="com/github/tommyettinger/textra/TextraLabel.html" title="class in com.github.tommyettinger.textra" target="classFrame">TextraLabel</a></li>
<li><a href="com/github/tommyettinger/textra/TextraTooltip.html" title="class in com.github.tommyettinger.textra" target="classFrame">TextraTooltip</a></li>
<li><a href="com/github/tommyettinger/textra/TextraWindow.html" title="class in com.github.tommyettinger.textra" target="classFrame">TextraWindow</a></li>
<li><a href="com/github/tommyettinger/textra/TokenCategory.html" title="enum in com.github.tommyettinger.textra" target="classFrame">TokenCategory</a></li>
<li><a href="com/github/tommyettinger/textra/TypingAdapter.html" title="class in com.github.tommyettinger.textra" target="classFrame">TypingAdapter</a></li>
<li><a href="com/github/tommyettinger/textra/TypingConfig.html" title="class in com.github.tommyettinger.textra" target="classFrame">TypingConfig</a></li>
Expand Down
8 changes: 7 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.3.0 API)</title>
<title>All Classes (textratypist 0.4.0 API)</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script>
</head>
Expand All @@ -25,6 +25,7 @@ <h1 class="bar">All&nbsp;Classes</h1>
<li><a href="com/github/tommyettinger/textra/Font.GlyphRegion.html" title="class in com.github.tommyettinger.textra">Font.GlyphRegion</a></li>
<li><a href="com/github/tommyettinger/textra/effects/GradientEffect.html" title="class in com.github.tommyettinger.textra.effects">GradientEffect</a></li>
<li><a href="com/github/tommyettinger/textra/effects/HangEffect.html" title="class in com.github.tommyettinger.textra.effects">HangEffect</a></li>
<li><a href="com/github/tommyettinger/textra/ImageTextraButton.html" title="class in com.github.tommyettinger.textra">ImageTextraButton</a></li>
<li><a href="com/github/tommyettinger/textra/effects/JoltEffect.html" title="class in com.github.tommyettinger.textra.effects">JoltEffect</a></li>
<li><a href="com/github/tommyettinger/textra/effects/JumpEffect.html" title="class in com.github.tommyettinger.textra.effects">JumpEffect</a></li>
<li><a href="com/github/tommyettinger/textra/KnownFonts.html" title="class in com.github.tommyettinger.textra">KnownFonts</a></li>
Expand All @@ -35,7 +36,12 @@ <h1 class="bar">All&nbsp;Classes</h1>
<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/SickEffect.html" title="class in com.github.tommyettinger.textra.effects">SickEffect</a></li>
<li><a href="com/github/tommyettinger/textra/effects/SlideEffect.html" title="class in com.github.tommyettinger.textra.effects">SlideEffect</a></li>
<li><a href="com/github/tommyettinger/textra/TextraButton.html" title="class in com.github.tommyettinger.textra">TextraButton</a></li>
<li><a href="com/github/tommyettinger/textra/TextraCheckBox.html" title="class in com.github.tommyettinger.textra">TextraCheckBox</a></li>
<li><a href="com/github/tommyettinger/textra/TextraDialog.html" title="class in com.github.tommyettinger.textra">TextraDialog</a></li>
<li><a href="com/github/tommyettinger/textra/TextraLabel.html" title="class in com.github.tommyettinger.textra">TextraLabel</a></li>
<li><a href="com/github/tommyettinger/textra/TextraTooltip.html" title="class in com.github.tommyettinger.textra">TextraTooltip</a></li>
<li><a href="com/github/tommyettinger/textra/TextraWindow.html" title="class in com.github.tommyettinger.textra">TextraWindow</a></li>
<li><a href="com/github/tommyettinger/textra/TokenCategory.html" title="enum in com.github.tommyettinger.textra">TokenCategory</a></li>
<li><a href="com/github/tommyettinger/textra/TypingAdapter.html" title="class in com.github.tommyettinger.textra">TypingAdapter</a></li>
<li><a href="com/github/tommyettinger/textra/TypingConfig.html" title="class in com.github.tommyettinger.textra">TypingConfig</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.3.0 API)</title>
<title>ColorLookup.GdxColorLookup (textratypist 0.4.0 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.3.0 API)";
parent.document.title="ColorLookup.GdxColorLookup (textratypist 0.4.0 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.3.0 API)</title>
<title>ColorLookup (textratypist 0.4.0 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.3.0 API)";
parent.document.title="ColorLookup (textratypist 0.4.0 API)";
}
}
catch(err) {
Expand Down
4 changes: 2 additions & 2 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.3.0 API)</title>
<title>Effect (textratypist 0.4.0 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.3.0 API)";
parent.document.title="Effect (textratypist 0.4.0 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.DistanceFieldType (textratypist 0.3.0 API)</title>
<title>Font.DistanceFieldType (textratypist 0.4.0 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.3.0 API)";
parent.document.title="Font.DistanceFieldType (textratypist 0.4.0 API)";
}
}
catch(err) {
Expand Down
71 changes: 63 additions & 8 deletions docs/apidocs/com/github/tommyettinger/textra/Font.FontFamily.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.FontFamily (textratypist 0.3.0 API)</title>
<title>Font.FontFamily (textratypist 0.4.0 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.3.0 API)";
parent.document.title="Font.FontFamily (textratypist 0.4.0 API)";
}
}
catch(err) {
Expand Down Expand Up @@ -171,6 +171,19 @@ <h3>Constructor Summary</h3>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/github/tommyettinger/textra/Font.FontFamily.html#FontFamily-com.github.tommyettinger.textra.Font:A-">FontFamily</a></span>(<a href="../../../../com/github/tommyettinger/textra/Font.html" title="class in com.github.tommyettinger.textra">Font</a>[]&nbsp;fonts)</code>
<div class="block">Creates a FontFamily given an array of Font values, using the <a href="../../../../com/github/tommyettinger/textra/Font.html#name"><code>Font.name</code></a> of each Font as its alias.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/github/tommyettinger/textra/Font.FontFamily.html#FontFamily-com.github.tommyettinger.textra.Font:A-int-int-">FontFamily</a></span>(<a href="../../../../com/github/tommyettinger/textra/Font.html" title="class in com.github.tommyettinger.textra">Font</a>[]&nbsp;fonts,
int&nbsp;offset,
int&nbsp;length)</code>
<div class="block">Creates a FontFamily given an array of Font values that and offset/length values for those arrays (allowing
<code>Array</code> to sometimes be used to get the items for fonts).</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/github/tommyettinger/textra/Font.FontFamily.html#FontFamily-com.badlogic.gdx.utils.OrderedMap-">FontFamily</a></span>(com.badlogic.gdx.utils.OrderedMap&lt;java.lang.String,<a href="../../../../com/github/tommyettinger/textra/Font.html" title="class in com.github.tommyettinger.textra">Font</a>&gt;&nbsp;map)</code>
<div class="block">Constructs a FontFamily given an OrderedMap of String keys (names of Fonts) to Font values (the Fonts that
can be switched between).</div>
Expand Down Expand Up @@ -276,6 +289,45 @@ <h4>FontFamily</h4>
<div class="block">Creates a FontFamily that only allows staying on the same font, unless later configured otherwise.</div>
</li>
</ul>
<a name="FontFamily-com.github.tommyettinger.textra.Font:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FontFamily</h4>
<pre>public&nbsp;FontFamily(<a href="../../../../com/github/tommyettinger/textra/Font.html" title="class in com.github.tommyettinger.textra">Font</a>[]&nbsp;fonts)</pre>
<div class="block">Creates a FontFamily given an array of Font values, using the <a href="../../../../com/github/tommyettinger/textra/Font.html#name"><code>Font.name</code></a> of each Font as its alias.
This allows switching to different fonts using the [@Name] syntax. This also registers aliases for the
Strings "0" through up to "15" to refer to the Font values with the same indices (it can register fewer
aliases than up to "15" if there are fewer than 16 Fonts). You should avoid using more than 16 fonts here.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>fonts</code> - a non-null array of Font values that should each have their name set (as by <a href="../../../../com/github/tommyettinger/textra/Font.html#setName-java.lang.String-"><code>Font.setName(String)</code></a></dd>
</dl>
</li>
</ul>
<a name="FontFamily-com.github.tommyettinger.textra.Font:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FontFamily</h4>
<pre>public&nbsp;FontFamily(<a href="../../../../com/github/tommyettinger/textra/Font.html" title="class in com.github.tommyettinger.textra">Font</a>[]&nbsp;fonts,
int&nbsp;offset,
int&nbsp;length)</pre>
<div class="block">Creates a FontFamily given an array of Font values that and offset/length values for those arrays (allowing
<code>Array</code> to sometimes be used to get the items for fonts). This uses the <a href="../../../../com/github/tommyettinger/textra/Font.html#name"><code>Font.name</code></a> of each Font
as its alias. This allows switching to different fonts using the [@Name] syntax. This registers aliases for
the Strings "0" through up to "15" to refer to the Font values with the same indices (it can register fewer
aliases than up to "15" if there are fewer than 16 Fonts). You should avoid using more than 16 fonts here.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>fonts</code> - an array of Font values that should have the same length as aliases (no more than 16)</dd>
<dd><code>offset</code> - where to start accessing fonts, as a non-negative index</dd>
<dd><code>length</code> - how many items to use from fonts, if that many are provided</dd>
</dl>
</li>
</ul>
<a name="FontFamily-java.lang.String:A-com.github.tommyettinger.textra.Font:A-">
<!-- -->
</a>
Expand All @@ -286,8 +338,9 @@ <h4>FontFamily</h4>
<a href="../../../../com/github/tommyettinger/textra/Font.html" title="class in com.github.tommyettinger.textra">Font</a>[]&nbsp;fonts)</pre>
<div class="block">Creates a FontFamily given an array of String names and a (almost-always same-sized) array of Font values
that those names will refer to. This allows switching to different fonts using the [@Name] syntax. This
also registers aliases for the Strings "0" through up to "15" to refer to the Font values with the same
indices (it can register fewer aliases than up to "15" if there are fewer than 16 Fonts). You should avoid
registers aliases for the Strings "0" through up to "15" to refer to the Font values with the same indices
(it can register fewer aliases than up to "15" if there are fewer than 16 Fonts). It also registers the
<a href="../../../../com/github/tommyettinger/textra/Font.html#name"><code>Font.name</code></a> of each Font as an alias. You should avoid using more than 16 fonts here. You should avoid
using more than 16 fonts with this.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
Expand All @@ -309,9 +362,9 @@ <h4>FontFamily</h4>
<div class="block">Creates a FontFamily given an array of String names, a (almost-always same-sized) array of Font values that
those names will refer to, and offset/length values for those arrays (allowing <code>Array</code> to sometimes be
used to get the items for aliases and fonts). This allows switching to different fonts using the [@Name]
syntax. This also registers aliases for the Strings "0" through up to "15" to refer to the Font values with
the same indices (it can register fewer aliases than up to "15" if there are fewer than 16 Fonts). You should
avoid using more than 16 fonts with this.</div>
syntax. This registers aliases for the Strings "0" through up to "15" to refer to the Font values with the
same indices (it can register fewer aliases than up to "15" if there are fewer than 16 Fonts). It also
registers the <a href="../../../../com/github/tommyettinger/textra/Font.html#name"><code>Font.name</code></a> of each Font as an alias. You should avoid using more than 16 fonts here.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>aliases</code> - an array of up to 16 String names to use for fonts (individual items may be null)</dd>
Expand All @@ -329,7 +382,9 @@ <h4>FontFamily</h4>
<h4>FontFamily</h4>
<pre>public&nbsp;FontFamily(com.badlogic.gdx.utils.OrderedMap&lt;java.lang.String,<a href="../../../../com/github/tommyettinger/textra/Font.html" title="class in com.github.tommyettinger.textra">Font</a>&gt;&nbsp;map)</pre>
<div class="block">Constructs a FontFamily given an OrderedMap of String keys (names of Fonts) to Font values (the Fonts that
can be switched between). This only uses up to the first 16 keys of map.</div>
can be switched between). This registers the Strings "0" up to "15" to be aliases for the Fonts with those
indices in the map. It also registers the <a href="../../../../com/github/tommyettinger/textra/Font.html#name"><code>Font.name</code></a> of each Font as an alias. This only uses up to
the first 16 keys of map.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>map</code> - an OrderedMap of String keys to Font values</dd>
Expand Down
Loading

0 comments on commit 5072d83

Please sign in to comment.