From cb6a6ae75e4c3d877ab089dd1d743349f6367420 Mon Sep 17 00:00:00 2001 From: Tommy Ettinger Date: Sat, 9 Jul 2022 02:24:40 -0700 Subject: [PATCH] Release 0.6.0 ! Former-commit-id: 439b0cbd5cd351292f45726e647fc95306ba912a --- README.md | 18 +- build.gradle | 2 +- docs/apidocs/allclasses-frame.html | 2 +- docs/apidocs/allclasses-noframe.html | 2 +- .../textra/ColorLookup.GdxColorLookup.html | 4 +- .../tommyettinger/textra/ColorLookup.html | 4 +- .../github/tommyettinger/textra/Effect.html | 4 +- .../textra/Font.DistanceFieldType.html | 4 +- .../tommyettinger/textra/Font.FontFamily.html | 4 +- .../textra/Font.GlyphRegion.html | 75 ++++- .../com/github/tommyettinger/textra/Font.html | 301 +++++++++++++----- .../textra/ImageTextraButton.html | 4 +- .../tommyettinger/textra/KnownFonts.html | 139 ++++++-- .../github/tommyettinger/textra/Layout.html | 4 +- .../com/github/tommyettinger/textra/Line.html | 4 +- .../tommyettinger/textra/TextraButton.html | 4 +- .../tommyettinger/textra/TextraCheckBox.html | 4 +- .../tommyettinger/textra/TextraDialog.html | 4 +- .../tommyettinger/textra/TextraLabel.html | 4 +- .../tommyettinger/textra/TextraTooltip.html | 4 +- .../tommyettinger/textra/TextraWindow.html | 4 +- .../tommyettinger/textra/TokenCategory.html | 4 +- .../tommyettinger/textra/TypingAdapter.html | 4 +- .../tommyettinger/textra/TypingConfig.html | 4 +- .../tommyettinger/textra/TypingLabel.html | 4 +- .../tommyettinger/textra/TypingListener.html | 4 +- .../textra/effects/BlinkEffect.html | 4 +- .../textra/effects/CarouselEffect.html | 4 +- .../textra/effects/CrowdEffect.html | 4 +- .../textra/effects/EaseEffect.html | 4 +- .../textra/effects/EmergeEffect.html | 4 +- .../textra/effects/FadeEffect.html | 4 +- .../textra/effects/GradientEffect.html | 4 +- .../textra/effects/HangEffect.html | 4 +- .../textra/effects/HeartbeatEffect.html | 4 +- .../textra/effects/JoltEffect.html | 4 +- .../textra/effects/JumpEffect.html | 4 +- .../textra/effects/RainbowEffect.html | 4 +- .../textra/effects/RotateEffect.html | 4 +- .../textra/effects/ScaleEffect.html | 4 +- .../textra/effects/ShakeEffect.html | 4 +- .../textra/effects/ShrinkEffect.html | 4 +- .../textra/effects/SickEffect.html | 4 +- .../textra/effects/SlideEffect.html | 4 +- .../textra/effects/SpinEffect.html | 4 +- .../textra/effects/SpiralEffect.html | 4 +- .../textra/effects/SquashEffect.html | 4 +- .../textra/effects/WaveEffect.html | 4 +- .../textra/effects/WindEffect.html | 4 +- .../textra/effects/package-frame.html | 2 +- .../textra/effects/package-summary.html | 4 +- .../textra/effects/package-tree.html | 4 +- .../tommyettinger/textra/package-frame.html | 2 +- .../tommyettinger/textra/package-summary.html | 4 +- .../tommyettinger/textra/package-tree.html | 6 +- .../textra/utils/BlockUtils.html | 4 +- .../textra/utils/ColorUtils.html | 4 +- .../textra/utils/NoiseUtils.html | 4 +- .../textra/utils/package-frame.html | 2 +- .../textra/utils/package-summary.html | 4 +- .../textra/utils/package-tree.html | 4 +- docs/apidocs/constant-values.html | 4 +- docs/apidocs/deprecated-list.html | 4 +- docs/apidocs/help-doc.html | 4 +- docs/apidocs/index-all.html | 52 ++- docs/apidocs/index.html | 2 +- docs/apidocs/overview-frame.html | 2 +- docs/apidocs/overview-summary.html | 6 +- docs/apidocs/overview-tree.html | 4 +- gradle.properties | 2 +- 70 files changed, 577 insertions(+), 254 deletions(-) diff --git a/README.md b/README.md index eecce92d..ba2da612 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ What does this look like? A little something like this... Or perhaps like this... -![Animated preview](images/preview.gif) +![Animated preview](https://i.imgur.com/c2BIAno.gif) ## It's got labels! @@ -30,7 +30,7 @@ between two colors, or go across a whole rainbow. Lots of options; lots of fun. typing-label, but there have been some changes. You can check [the TextraTypist wiki](https://github.com/tommyettinger/textratypist/wiki/Examples) for more information. -As of 0.5.5, there are many new effects. Jolt, Spiral, Spin, Crowd, Shrink, Emerge, Heartbeat, Carousel, Squash, Scale, +As of 0.6.0, there are many new effects. Jolt, Spiral, Spin, Crowd, Shrink, Emerge, Heartbeat, Carousel, Squash, Scale, and Rotate are all new to TextraTypist (not in typing-label). You can see usage instructions and sample GIFs at [the TextraTypist wiki's Tokens page](https://github.com/tommyettinger/textratypist/wiki/Tokens). Most of these effects make use of the smooth scaling and rotation options that effects can use starting in TextraTypist 0.5.1 . @@ -70,6 +70,10 @@ square brackets like `[*]`, or you can use `{STYLE=BOLD}` to do the same thing. `{COLOR=Lighter Orange-Red}` (which would need that color to be defined). - One way colors such as `Lighter Orange-Red` can be defined is done in [SquidSquad](https://github.com/yellowstonegames/SquidSquad), which defines its own `ColorLookup`. +- `[+region name]`, where region name is the name of a TextureRegion from a registered TextureAtlas, won't change the + style, but will produce that TextureRegion in-line with the text. + - This is commonly used with `KnownFonts.addEmoji()` to add the 3000+ Twemoji icons to a Font. + - If you use Twemoji, the phrasees `[+saxophone]` and `[+🎷]` will each show a saxophone icon. ## But wait, there's fonts! @@ -92,6 +96,9 @@ between any of those 13 fonts using the `[@Medieval]` syntax (where Medieval is for "KingThings Foundation"). All of these fonts work without a distance field effect, so they won't look as good at very large sizes, but are compatible with each other. +The Twemoji icons are also present in an atlas of over-3000 32x32 images; `KnownFonts.addEmoji()` can register them with +a Font so the `[+name]` syntax mentioned above can draw emoji inline. + The license files for each font are included in the same folder, in `knownFonts` here. All fonts provided here were checked to ensure their licenses permit commercial use without fees, and all do. Most require attribution; check the licenses for details. @@ -132,7 +139,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.5" +implementation "com.github.tommyettinger:textratypist:0.6.0" ``` This assumes you already depend on libGDX; TextraTypist depends on version 1.11.0 or higher. The requirement for 1.11.0 @@ -141,7 +148,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.5:sources" +implementation "com.github.tommyettinger:textratypist:0.6.0:sources" implementation "com.github.tommyettinger:regexodus:0.1.13:sources" ``` @@ -167,6 +174,9 @@ as-is, this Apache-licensed project is fully compliant with MIT. The full MIT li also present in all library source files here. The Apache license does not typically apply to non-code resources in the `src/test/resources` folder; individual fonts have their own licenses stored in that directory. +Twemoji isn't a font, so it might be best to mention it separately. It's licensed under CC-BY 4.0, and requires +attribution to Twitter if used. + The logo was made by Raymond "raeleus" Buckley and contributed to this project. It can be used freely for any purpose, but I request that it only be used to refer to this project unless substantially modified. diff --git a/build.gradle b/build.gradle index 4164ff59..734eec0e 100644 --- a/build.gradle +++ b/build.gradle @@ -20,7 +20,7 @@ def projectName = 'textratypist' version "$VERSION_NAME" group 'com.github.tommyettinger' -//api "com.github.tommyettinger:textratypist:0.5.5" +//api "com.github.tommyettinger:textratypist:0.6.0" [compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF-8' diff --git a/docs/apidocs/allclasses-frame.html b/docs/apidocs/allclasses-frame.html index cc98d637..bcf27944 100644 --- a/docs/apidocs/allclasses-frame.html +++ b/docs/apidocs/allclasses-frame.html @@ -3,7 +3,7 @@ -All Classes (textratypist 0.5.5 API) +All Classes (textratypist 0.6.0 API) diff --git a/docs/apidocs/allclasses-noframe.html b/docs/apidocs/allclasses-noframe.html index 9489bb2c..f6cd9c3d 100644 --- a/docs/apidocs/allclasses-noframe.html +++ b/docs/apidocs/allclasses-noframe.html @@ -3,7 +3,7 @@ -All Classes (textratypist 0.5.5 API) +All Classes (textratypist 0.6.0 API) diff --git a/docs/apidocs/com/github/tommyettinger/textra/ColorLookup.GdxColorLookup.html b/docs/apidocs/com/github/tommyettinger/textra/ColorLookup.GdxColorLookup.html index f5b85d44..fd438ad1 100644 --- a/docs/apidocs/com/github/tommyettinger/textra/ColorLookup.GdxColorLookup.html +++ b/docs/apidocs/com/github/tommyettinger/textra/ColorLookup.GdxColorLookup.html @@ -3,7 +3,7 @@ -ColorLookup.GdxColorLookup (textratypist 0.5.5 API) +ColorLookup.GdxColorLookup (textratypist 0.6.0 API) @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,13 +11,13 @@ @@ -11,7 +11,7 @@ @@ -11,13 +11,13 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ diff --git a/docs/apidocs/com/github/tommyettinger/textra/effects/package-summary.html b/docs/apidocs/com/github/tommyettinger/textra/effects/package-summary.html index 48f0d55a..3ad84a1d 100644 --- a/docs/apidocs/com/github/tommyettinger/textra/effects/package-summary.html +++ b/docs/apidocs/com/github/tommyettinger/textra/effects/package-summary.html @@ -3,7 +3,7 @@ -com.github.tommyettinger.textra.effects (textratypist 0.5.5 API) +com.github.tommyettinger.textra.effects (textratypist 0.6.0 API) @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ diff --git a/docs/apidocs/com/github/tommyettinger/textra/package-summary.html b/docs/apidocs/com/github/tommyettinger/textra/package-summary.html index c0a8d33b..b8dbb28d 100644 --- a/docs/apidocs/com/github/tommyettinger/textra/package-summary.html +++ b/docs/apidocs/com/github/tommyettinger/textra/package-summary.html @@ -3,7 +3,7 @@ -com.github.tommyettinger.textra (textratypist 0.5.5 API) +com.github.tommyettinger.textra (textratypist 0.6.0 API) @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ diff --git a/docs/apidocs/com/github/tommyettinger/textra/utils/package-summary.html b/docs/apidocs/com/github/tommyettinger/textra/utils/package-summary.html index 7bab126b..a5560fd3 100644 --- a/docs/apidocs/com/github/tommyettinger/textra/utils/package-summary.html +++ b/docs/apidocs/com/github/tommyettinger/textra/utils/package-summary.html @@ -3,7 +3,7 @@ -com.github.tommyettinger.textra.utils (textratypist 0.5.5 API) +com.github.tommyettinger.textra.utils (textratypist 0.6.0 API) @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ diff --git a/docs/apidocs/overview-summary.html b/docs/apidocs/overview-summary.html index e1f54839..dc07b57d 100644 --- a/docs/apidocs/overview-summary.html +++ b/docs/apidocs/overview-summary.html @@ -3,7 +3,7 @@ -Overview (textratypist 0.5.5 API) +Overview (textratypist 0.6.0 API) @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@