diff --git a/README.md b/README.md index 77d249f8..28e4c600 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Extra features for something like typing-label, with both effects and styles. What does this look like? A little something like this... -![Still preview](https://i.imgur.com/eIUH9Cc.png) +![Still preview](https://i.imgur.com/Xkcm92I.png) Or perhaps like this... ![Animated preview](images/preview.gif) @@ -47,10 +47,14 @@ to do the same thing. The full list of styles: - `[!]` toggles all upper case mode (replacing any other case mode). Can use style names `!`, `UP`, `UPPER`. - `[,]` toggles all lower case mode (replacing any other case mode). Can use style names `,`, `LOW`, `LOWER`. - `[;]` toggles capitalize each word mode (replacing any other case mode). Can use style names `;`, `EACH`, `TITLE`. +- `[%DDD]`, where DDD is a percentage from 0 to 375, scales text to that multiple. Can be used with `{SIZE=150%}`, `{SIZE=%25}`, or similarly `{STYLE=200%}`. +- `[%]` on its own sets text to the default 100% scale. - `[#HHHHHHHH]`, where HHHHHHHH is a hex RGB888 or RGBA8888 int color, changes the color. This is a normal `{COLOR=#HHHHHHHH}` tag. - `[COLORNAME]`, where COLORNAME is a typically-upper-case color name that will be looked up externally, changes the color. - By default, this looks up COLORNAME in libGDX's `Colors` class, but it can be configured to create colors differently. - - You can use `Font`'s `setColorLookup()` method with your own `ColorLookup` implementation to do what you want here. + - You can use `Font`'s `setColorLookup()` method with your own `ColorLookup` implementation to do what you want here. + - `TypingLabel` does still try to look up color names in `Colors`, but will fall back to using whatever `ColorLookup` + a `Font` uses. You can clear the known names with `Colors.getColors().clear()`, which will force a `ColorLookup` to be used. - The name can optionally be preceded by `|`, which allows looking up colors with names that contain punctuation. For example, `[|;_;]` would look up a color called `;_;`, "the color of sadness," and would not act like `[;]`. - This also can be used with a color tag, such as `{COLOR=SKY}` (which Colors can handle right away) or @@ -80,7 +84,7 @@ variety of font types isn't amazing, but it should be a good starting point. 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.1.5" +implementation "com.github.tommyettinger:textratypist:0.1.6" ``` This assumes you already depend on libGDX; textratypist depends on version 1.10.0 or higher, and should have no problems @@ -91,7 +95,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.1.5:sources" +implementation "com.github.tommyettinger:textratypist:0.1.6:sources" implementation "com.github.tommyettinger:regexodus:0.1.13:sources" ``` diff --git a/docs/apidocs/allclasses-index.html b/docs/apidocs/allclasses-index.html index 63b449a6..73058f41 100644 --- a/docs/apidocs/allclasses-index.html +++ b/docs/apidocs/allclasses-index.html @@ -1,9 +1,8 @@ - - -All Classes (textratypist 0.1.5 API) + +All Classes and Interfaces (textratypist 0.1.6 API) @@ -29,161 +28,160 @@
-

All Classes

+

All Classes and Interfaces

-
+
Class
Description
- -
+ +
Blinks the entire text in two different colors at once, without interpolation.
- -
-
Allows looking up an RGBA8888 Integer color given a String key, returning either the color or null if none was found.
+ +
+
Allows looking up an RGBA8888 int color given a String key, returning either the color or 256 if none was found.
- -
-
The default ColorLookup, this simply looks up key in Colors, returning null if no Color exists by - that exact name (case-sensitive), or returning the RGBA8888 value of the color otherwise.
+ +
+
The default ColorLookup, this simply looks up key in Colors, returning 256 (fully transparent, + extremely dark blue) if no Color exists by that exact name (case-sensitive), or returning the RGBA8888 value + of the color otherwise.
- -
-
Just has methods to convert from HSL colors to RGB and back again, for hue-changing effects mainly.
+ +
+
A few static methods for commonly-used color handling tasks.
- -
+ +
Moves the text vertically easing it into the final position.
- -
+ +
Abstract text effect.
- -
+ +
Fades the text's color from between colors or alphas.
- -
+ +
A replacement for libGDX's BitmapFont class, supporting additional markup to allow styling text with various effects.
Defines what types of distance field font this can use and render.
- -
+ +
Describes the region of a glyph in a larger TextureRegion, carrying a little more info about the offsets that apply to where the glyph is rendered.
- -
+ +
Tints the text in a gradient pattern.
- -
+ +
Hangs the text in midair and suddenly drops it.
- -
+ +
Randomly selects and shakes individual characters in the text.
- -
+ +
Makes the text jumps and falls as if there was gravity.
- -
+ +
Preconfigured static Font instances, with any important metric adjustments already applied.
- -
+ +
A replacement for libGDX's GlyphLayout, more or less; stores one or more (possibly empty) Lines of text, which can use color and style markup from Font, and can be drawn with Font.drawGlyphs(Batch, Layout, float, float, int).
- -
+ +
One line of possibly-colorful, possibly-styled text, with a width and height set by Font.markup(String, Layout) on Lines in a Layout.
- -
+ +
Some 1D noise methods to be used when an effect needs smooth but random changes.
- -
+ +
Tints the text in a rainbow pattern.
- -
+ +
Shakes the text in a random pattern.
- -
+ +
Drips the text in a random pattern.
- -
+ +
Moves the text horizontally easing it into the final position.
- -
+ +
A scene2d.ui Widget that displays text using a Font rather than a libGDX BitmapFont.
 
- -
+ +
Simple listener for label events.
- -
+ +
Configuration class that easily allows the user to fine tune the library's functionality.
- -
+ +
An extension of Label that progressively shows the text as if it was being typed in real time, and allows the use of tokens in the following format: {TOKEN=PARAMETER}.
- -
+ +
Simple listener for label events.
- -
+ +
Moves the text vertically in a sine wave pattern.
- -
+ +
Moves the text in a wind pattern.
diff --git a/docs/apidocs/allpackages-index.html b/docs/apidocs/allpackages-index.html index 6b3b3fb8..753d5efa 100644 --- a/docs/apidocs/allpackages-index.html +++ b/docs/apidocs/allpackages-index.html @@ -1,9 +1,8 @@ - - -All Packages (textratypist 0.1.5 API) + +All Packages (textratypist 0.1.6 API) @@ -25,27 +24,25 @@
diff --git a/docs/apidocs/com/github/tommyettinger/textra/ColorLookup.GdxColorLookup.html b/docs/apidocs/com/github/tommyettinger/textra/ColorLookup.GdxColorLookup.html index 38baf3eb..1b448bf7 100644 --- a/docs/apidocs/com/github/tommyettinger/textra/ColorLookup.GdxColorLookup.html +++ b/docs/apidocs/com/github/tommyettinger/textra/ColorLookup.GdxColorLookup.html @@ -1,9 +1,8 @@ - - -ColorLookup.GdxColorLookup (textratypist 0.1.5 API) + +ColorLookup.GdxColorLookup (textratypist 0.1.6 API) @@ -29,42 +28,40 @@
@@ -73,10 +70,10 @@

Class ColorLookup.GdxColorLookup

-
java.lang.Object +
java.lang.Object
com.github.tommyettinger.textra.ColorLookup.GdxColorLookup
-
+
All Implemented Interfaces:
ColorLookup
@@ -87,33 +84,34 @@

Class ColorLookup.Gdx


public static class ColorLookup.GdxColorLookup -extends Object +extends Object implements ColorLookup
-
The default ColorLookup, this simply looks up key in Colors, returning null if no Color exists by - that exact name (case-sensitive), or returning the RGBA8888 value of the color otherwise.
+
The default ColorLookup, this simply looks up key in Colors, returning 256 (fully transparent, + extremely dark blue) if no Color exists by that exact name (case-sensitive), or returning the RGBA8888 value + of the color otherwise.
  • -
    +

    Nested Class Summary

    -

    Nested classes/interfaces inherited from interface com.github.tommyettinger.textra.ColorLookup

    +

    Nested classes/interfaces inherited from interface com.github.tommyettinger.textra.ColorLookup

    ColorLookup.GdxColorLookup
  • -
    +

    Field Summary

    Fields
    Modifier and Type
    Field
    Description
    - - + +
    The only way to access a GdxColorLookup.
    @@ -122,7 +120,7 @@

    Field Summary

  • -
    +

    Method Summary

    @@ -131,18 +129,18 @@

    Method Summary

    Modifier and Type
    Method
    Description
    - -
    getRgba​(String key)
    -
    -
    Uses key to look up an RGBA8888 color, and returns that color as an Integer if one was found, or returns - null if none was found.
    +
    int
    + +
    +
    Uses key to look up an RGBA8888 color, and returns that color as an int if one was found, or returns + 256 if none was found.
-

Methods inherited from class java.lang.Object

-clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+

Methods inherited from class java.lang.Object

+clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@@ -151,7 +149,7 @@

Methods inherited from cl
  • -
    +

    Field Details

    • @@ -167,24 +165,25 @@

      INSTANCE

    • -
      +

      Method Details

      • getRgba

        -
        public Integer getRgba(String key)
        +
        public int getRgba(String key)
        Description copied from interface: ColorLookup
        -
        Uses key to look up an RGBA8888 color, and returns that color as an Integer if one was found, or returns - null if none was found. This library will never call this method with a null key, and in most cases you can - safely assume key is non-null.
        +
        Uses key to look up an RGBA8888 color, and returns that color as an int if one was found, or returns + 256 if none was found. 256 is used because it is different from the more commonly-used 0 for fully-transparent, + while still being easy to remember and very rare to ever want (it is fully transparent, very dark blue). This + library will never call this method with a null key, and in most cases you can safely assume key is non-null.
        Specified by:
        getRgba in interface ColorLookup
        Parameters:
        key - the String key to use to look up or build a color; should not be null.
        Returns:
        -
        an RGBA8888 color that may be null.
        +
        an RGBA8888 color; if 256, this can be considered to not know how to look up the given key.
      • diff --git a/docs/apidocs/com/github/tommyettinger/textra/ColorLookup.html b/docs/apidocs/com/github/tommyettinger/textra/ColorLookup.html index 3fee9e77..710cb015 100644 --- a/docs/apidocs/com/github/tommyettinger/textra/ColorLookup.html +++ b/docs/apidocs/com/github/tommyettinger/textra/ColorLookup.html @@ -1,9 +1,8 @@ - - -ColorLookup (textratypist 0.1.5 API) + +ColorLookup (textratypist 0.1.6 API) @@ -29,42 +28,40 @@
        @@ -73,21 +70,24 @@

        Interface ColorLookup

        -
        +
        All Known Implementing Classes:
        ColorLookup.GdxColorLookup

        public interface ColorLookup
        -
        Allows looking up an RGBA8888 Integer color given a String key, returning either the color or null if none was found. - This is an extension point for games and libraries that may want their own way of looking up colors.
        +
        Allows looking up an RGBA8888 int color given a String key, returning either the color or 256 if none was found. + This is an extension point for games and libraries that may want their own way of looking up colors. +
        + You can see how this is used in SquidSquad, which uses + it in its squidglyph module to look up colors by potentially complex descriptive terms.
        • -
          +

          Nested Class Summary

          Nested Classes
          @@ -95,17 +95,18 @@

          Nested Class Summary

          Interface
          Description
          static class 
          - +
          -
          The default ColorLookup, this simply looks up key in Colors, returning null if no Color exists by - that exact name (case-sensitive), or returning the RGBA8888 value of the color otherwise.
          +
          The default ColorLookup, this simply looks up key in Colors, returning 256 (fully transparent, + extremely dark blue) if no Color exists by that exact name (case-sensitive), or returning the RGBA8888 value + of the color otherwise.
        • -
          +

          Method Summary

          @@ -114,11 +115,11 @@

          Method Summary

          Modifier and Type
          Method
          Description
          - -
          getRgba​(String key)
          -
          -
          Uses key to look up an RGBA8888 color, and returns that color as an Integer if one was found, or returns - null if none was found.
          +
          int
          + +
          +
          Uses key to look up an RGBA8888 color, and returns that color as an int if one was found, or returns + 256 if none was found.
          @@ -131,21 +132,22 @@

          Method Summary

          • -
            +

            Method Details

            • getRgba

              -
              Integer getRgba(String key)
              -
              Uses key to look up an RGBA8888 color, and returns that color as an Integer if one was found, or returns - null if none was found. This library will never call this method with a null key, and in most cases you can - safely assume key is non-null.
              +
              int getRgba(String key)
              +
              Uses key to look up an RGBA8888 color, and returns that color as an int if one was found, or returns + 256 if none was found. 256 is used because it is different from the more commonly-used 0 for fully-transparent, + while still being easy to remember and very rare to ever want (it is fully transparent, very dark blue). This + library will never call this method with a null key, and in most cases you can safely assume key is non-null.
              Parameters:
              key - the String key to use to look up or build a color; should not be null.
              Returns:
              -
              an RGBA8888 color that may be null.
              +
              an RGBA8888 color; if 256, this can be considered to not know how to look up the given key.
            • diff --git a/docs/apidocs/com/github/tommyettinger/textra/Effect.html b/docs/apidocs/com/github/tommyettinger/textra/Effect.html index f4b9f549..f787c8dc 100644 --- a/docs/apidocs/com/github/tommyettinger/textra/Effect.html +++ b/docs/apidocs/com/github/tommyettinger/textra/Effect.html @@ -1,9 +1,8 @@ - - -Effect (textratypist 0.1.5 API) + +Effect (textratypist 0.1.6 API) @@ -29,15 +28,15 @@
              @@ -73,24 +70,24 @@

              Class Effect

              -
              java.lang.Object +
              java.lang.Object
              com.github.tommyettinger.textra.Effect
              -
              +
              Direct Known Subclasses:
              BlinkEffect, EaseEffect, FadeEffect, GradientEffect, HangEffect, JoltEffect, JumpEffect, RainbowEffect, ShakeEffect, SickEffect, SlideEffect, WaveEffect, WindEffect

              public abstract class Effect -extends Object
              +extends Object
              Abstract text effect.
            @@ -220,7 +212,7 @@

            Methods inherited from cl
            • -
              +

              Field Details

              • @@ -258,13 +250,13 @@

                totalTime

              • -
                +

                Constructor Details

                @@ -272,19 +264,19 @@

                Effect

              • -
                +

                Method Details

                • update

                  -
                  public void update(float delta)
                  +
                  public void update(float delta)
                • apply

                  -
                  public final void apply(long glyph, +
                  public final void apply(long glyph, int glyphIndex, float delta)
                  Applies the effect to the given glyph.
                  @@ -293,7 +285,7 @@

                  apply

                • onApply

                  -
                  protected abstract void onApply(long glyph, +
                  protected abstract void onApply(long glyph, int localIndex, int globalIndex, float delta)
                  @@ -317,7 +309,7 @@

                  calculateFadeout

                • calculateProgress

                  -
                  protected float calculateProgress(float modifier)
                  +
                  protected float calculateProgress(float modifier)
                  Calculates a linear progress dividing the total time by the given modifier. Returns a value between 0 and 1 that loops in a ping-pong mode.
                  @@ -325,7 +317,7 @@

                  calculateProgress

                • calculateProgress

                  -
                  protected float calculateProgress(float modifier, +
                  protected float calculateProgress(float modifier, float offset)
                  Calculates a linear progress dividing the total time by the given modifier. Returns a value between 0 and 1 that loops in a ping-pong mode.
                  @@ -334,23 +326,16 @@

                  calculateProgress

                • calculateProgress

                  -
                  protected float calculateProgress(float modifier, +
                  protected float calculateProgress(float modifier, float offset, boolean pingpong)
                  Calculates a linear progress dividing the total time by the given modifier. Returns a value between 0 and 1.
                • -
                  -

                  getLineHeight

                  -
                  protected float getLineHeight()
                  -
                  Returns the line height of the label controlling this effect.
                  -
                  -
                • -
                • paramAsFloat

                  -
                  protected float paramAsFloat(String str, +
                  protected float paramAsFloat(String str, float defaultValue)
                  Returns a float value parsed from the given String, or the default value if the string couldn't be parsed.
                  @@ -358,14 +343,14 @@

                  paramAsFloat

                • paramAsBoolean

                  -
                  protected boolean paramAsBoolean(String str)
                  +
                  protected boolean paramAsBoolean(String str)
                  Returns a boolean value parsed from the given String, or the default value if the string couldn't be parsed.
                • paramAsColor

                  -
                  protected Integer paramAsColor(String str)
                  +
                  protected int paramAsColor(String str)
                  Parses a color from the given string. Returns null if the color couldn't be parsed.
                • diff --git a/docs/apidocs/com/github/tommyettinger/textra/Font.DistanceFieldType.html b/docs/apidocs/com/github/tommyettinger/textra/Font.DistanceFieldType.html index 1f98f331..579f37f0 100644 --- a/docs/apidocs/com/github/tommyettinger/textra/Font.DistanceFieldType.html +++ b/docs/apidocs/com/github/tommyettinger/textra/Font.DistanceFieldType.html @@ -1,9 +1,8 @@ - - -Font.DistanceFieldType (textratypist 0.1.5 API) + +Font.DistanceFieldType (textratypist 0.1.6 API) @@ -29,42 +28,40 @@
                  @@ -73,15 +70,15 @@

                  Enum Class Font.DistanceFieldType

                  -
                  java.lang.Object -
                  java.lang.Enum<Font.DistanceFieldType> +
                  java.lang.Object +
                  java.lang.Enum<Font.DistanceFieldType>
                  com.github.tommyettinger.textra.Font.DistanceFieldType
                  -
                  +
                  All Implemented Interfaces:
                  -
                  Serializable, Comparable<Font.DistanceFieldType>, Constable
                  +
                  Serializable, Comparable<Font.DistanceFieldType>, Constable
                  Enclosing class:
                  @@ -89,7 +86,7 @@

                  Enum Class Font.Dist


                  public static enum Font.DistanceFieldType -extends Enum<Font.DistanceFieldType>
                  +extends Enum<Font.DistanceFieldType>
                  Defines what types of distance field font this can use and render. STANDARD has no distance field. SDF is the signed distance field technique Hiero is compatible with, and uses only an alpha channel. @@ -99,32 +96,32 @@

                  Enum Class Font.Dist

                • -
                  +

                  Enum Constant Summary

                  Enum Constants
                  Enum Constant
                  Description
                  - +
                  Used by Multi-channel Signed Distance Field fonts, which are harder to create but can be more crisp than SDF fonts, with hard corners where the corners were hard in the original font.
                  - +
                  Used by Signed Distance Field fonts that are compatible with DistanceFieldFont, and may be created by Hiero with its Distance Field effect.
                  - +
                  Used by normal fonts with no distance field effect.
                  @@ -133,7 +130,7 @@

                  Enum Constant Summary

                • -
                  +

                  Method Summary

                  @@ -142,14 +139,14 @@

                  Method Summary

                  Modifier and Type
                  Method
                  Description
                  - -
                  valueOf​(String name)
                  -
                  + + +
                  Returns the enum constant of this class with the specified name.
                  - - -
                  + + +
                  Returns an array containing the constants of this enum class, in the order they are declared.
                  @@ -157,11 +154,11 @@

                  Method Summary

                  +

                  Methods inherited from class java.lang.Enum

                  +clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
                  -

                  Methods inherited from class java.lang.Object

                  -getClass, notify, notifyAll, wait, wait, wait
                  +

                  Methods inherited from class java.lang.Object

                  +getClass, notify, notifyAll, wait, wait, wait
                @@ -170,7 +167,7 @@

                Methods inherited from cl
                • -
                  +

                  Enum Constant Details

                  • @@ -207,7 +204,7 @@

                    MSDF

                  • -
                    +

                    Method Details

                    • @@ -225,7 +222,7 @@

                      values

                    • valueOf

                      -
                      public static Font.DistanceFieldType valueOf(String name)
                      +
                      public static Font.DistanceFieldType valueOf(String name)
                      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are @@ -236,8 +233,8 @@

                      valueOf

                      Returns:
                      the enum constant with the specified name
                      Throws:
                      -
                      IllegalArgumentException - if this enum class has no constant with the specified name
                      -
                      NullPointerException - if the argument is null
                      +
                      IllegalArgumentException - if this enum class has no constant with the specified name
                      +
                      NullPointerException - if the argument is null
                    • diff --git a/docs/apidocs/com/github/tommyettinger/textra/Font.GlyphRegion.html b/docs/apidocs/com/github/tommyettinger/textra/Font.GlyphRegion.html index 1c5af5a1..1499dc7f 100644 --- a/docs/apidocs/com/github/tommyettinger/textra/Font.GlyphRegion.html +++ b/docs/apidocs/com/github/tommyettinger/textra/Font.GlyphRegion.html @@ -1,9 +1,8 @@ - - -Font.GlyphRegion (textratypist 0.1.5 API) + +Font.GlyphRegion (textratypist 0.1.6 API) @@ -29,15 +28,15 @@
                      @@ -73,12 +70,12 @@

                      Class Font.GlyphRegion

                      -
                      java.lang.Object +
                      java.lang.Object
                      com.badlogic.gdx.graphics.g2d.TextureRegion
                      com.github.tommyettinger.textra.Font.GlyphRegion
                      -
                      +
                      Enclosing class:
                      Font
                      @@ -93,7 +90,7 @@

                      Class Font.GlyphRegion

                      • -
                        +

                        Field Summary

                        Fields
                        @@ -101,19 +98,19 @@

                        Field Summary

                        Field
                        Description
                        float
                        - +
                        The offset from the left of the original image to the left of the packed image, after whitespace was removed for packing.
                        float
                        - +
                        The offset from the bottom of the original image to the bottom of the packed image, after whitespace was removed for packing.
                        float
                        - +
                        How far to move the "cursor" to the right after drawing this GlyphRegion.
                        @@ -122,13 +119,13 @@

                        Field Summary

                      • -
                        +

                        Constructor Summary

                        Constructors
                        Constructor
                        Description
                        -
                        GlyphRegion​(com.badlogic.gdx.graphics.g2d.TextureRegion textureRegion, +
                        GlyphRegion(com.badlogic.gdx.graphics.g2d.TextureRegion textureRegion, int x, int y, int width, @@ -137,7 +134,7 @@

                        Constructor Summary

                        Creates a GlyphRegion from a parent TextureRegion (typically from an atlas), along with the lower-left x and y coordinates, the width, and the height of the GlyphRegion.
                        - +
                        Copies another GlyphRegion.
                        @@ -146,7 +143,7 @@

                        Constructor Summary

                      • -
                        +

                        Method Summary

                        @@ -155,10 +152,10 @@

                        Method Summary

                        Modifier and Type
                        Method
                        Description
                        -
                        void
                        -
                        flip​(boolean x, +
                        void
                        +
                        flip(boolean x, boolean y)
                        -
                        +
                        Flips the region, adjusting the offset so the image appears to be flipped as if no whitespace has been removed for packing.
                        @@ -166,11 +163,11 @@

                        Method Summary

                        -

                        Methods inherited from class com.badlogic.gdx.graphics.g2d.TextureRegion

                        +

                        Methods inherited from class com.badlogic.gdx.graphics.g2d.TextureRegion

                        getRegionHeight, getRegionWidth, getRegionX, getRegionY, getTexture, getU, getU2, getV, getV2, isFlipX, isFlipY, scroll, setRegion, setRegion, setRegion, setRegion, setRegion, setRegionHeight, setRegionWidth, setRegionX, setRegionY, setTexture, setU, setU2, setV, setV2, split, split
                        -

                        Methods inherited from class java.lang.Object

                        -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
                        +

                        Methods inherited from class java.lang.Object

                        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
                      @@ -179,7 +176,7 @@

                      Methods inherited from cl
                      • -
                        +

                        Field Details

                        • @@ -211,13 +208,13 @@

                          xAdvance

                        • -
                          +

                          Constructor Details

                          • GlyphRegion

                            -
                            public GlyphRegion(com.badlogic.gdx.graphics.g2d.TextureRegion textureRegion, +
                            public GlyphRegion(com.badlogic.gdx.graphics.g2d.TextureRegion textureRegion, int x, int y, int width, @@ -237,7 +234,7 @@

                            GlyphRegion

                          • GlyphRegion

                            -
                            public GlyphRegion(Font.GlyphRegion other)
                            +
                            public GlyphRegion(Font.GlyphRegion other)
                            Copies another GlyphRegion.
                            Parameters:
                            @@ -250,13 +247,13 @@

                            GlyphRegion

                          • -
                            +

                            Method Details

                            • flip

                              -
                              public void flip(boolean x, +
                              public void flip(boolean x, boolean y)
                              Flips the region, adjusting the offset so the image appears to be flipped as if no whitespace has been removed for packing.
                              diff --git a/docs/apidocs/com/github/tommyettinger/textra/Font.html b/docs/apidocs/com/github/tommyettinger/textra/Font.html index 887c34c2..18d39ca6 100644 --- a/docs/apidocs/com/github/tommyettinger/textra/Font.html +++ b/docs/apidocs/com/github/tommyettinger/textra/Font.html @@ -1,9 +1,8 @@ - - -Font (textratypist 0.1.5 API) + +Font (textratypist 0.1.6 API) @@ -29,42 +28,40 @@
                              @@ -73,17 +70,17 @@

                              Class Font

                              -
                              java.lang.Object +
                              java.lang.Object
                              com.github.tommyettinger.textra.Font
                              -
                              +
                              All Implemented Interfaces:
                              com.badlogic.gdx.utils.Disposable

                              public class Font -extends Object +extends Object implements com.badlogic.gdx.utils.Disposable
                              A replacement for libGDX's BitmapFont class, supporting additional markup to allow styling text with various effects. This includes a "faux bold" and oblique mode using one font image; you don't need a bold and italic/oblique image @@ -104,27 +101,31 @@

                              Class Font

                              drawGlyphs(Batch, Layout, float, float, int) or a similar method.
                              See Also:
                              -
                              The markup() method's documentation covers all the markup tags.
                              +
                              + +
                              • -
                                +

                                Nested Class Summary

                                Nested Classes
                                Modifier and Type
                                Class
                                Description
                                -
                                static class 
                                - +
                                static enum 
                                +
                                Defines what types of distance field font this can use and render.
                                static class 
                                - +
                                Describes the region of a glyph in a larger TextureRegion, carrying a little more info about the offsets that apply to where the glyph is rendered.
                                @@ -134,107 +135,118 @@

                                Nested Class Summary

                              • -
                                +

                                Field Summary

                                Fields
                                Modifier and Type
                                Field
                                Description
                                -
                                static long
                                - -
                                 
                                -
                                float
                                - -
                                -
                                Refers to the largest height of any glyph in the font, after scaling.
                                +
                                float
                                + +
                                +
                                When distanceField is Font.DistanceFieldType.SDF or Font.DistanceFieldType.MSDF, this determines + how much the edges of the glyphs should be aliased sharply (higher values) or anti-aliased softly (lower values).
                                +
                                static final long
                                + +
                                 
                                float
                                - +
                                +
                                Refers to the largest height of any glyph in the font, after scaling.
                                +
                                +
                                float
                                + +
                                Only actually refers to a "cell" when isMono is true; otherwise refers to the largest width of any glyph in the font, after scaling.
                                - - -
                                + + +
                                Determines how colors are looked up by name; defaults to using Colors.
                                - - -
                                 
                                - - + +
                                 
                                -
                                float
                                - -
                                + + +
                                 
                                +
                                float
                                + +
                                When distanceField is Font.DistanceFieldType.SDF or Font.DistanceFieldType.MSDF, this determines how much the edges of the glyphs should be aliased sharply (higher values) or anti-aliased softly (lower values).
                                -
                                boolean
                                - -
                                 
                                -
                                com.badlogic.gdx.utils.IntIntMap
                                - +
                                boolean
                                +
                                 
                                -
                                com.badlogic.gdx.utils.IntMap<Font.GlyphRegion>
                                - +
                                com.badlogic.gdx.utils.IntIntMap
                                +
                                 
                                -
                                static long
                                - +
                                com.badlogic.gdx.utils.IntMap<Font.GlyphRegion>
                                +
                                 
                                -
                                static String
                                - -
                                +
                                static final long
                                + +
                                 
                                +
                                static final String
                                + +
                                Fragment shader source meant for MSDF fonts.
                                -
                                static long
                                - -
                                 
                                -
                                float
                                - -
                                -
                                Refers to the largest height of any glyph in the font, before any scaling.
                                -
                                +
                                static final long
                                + +
                                 
                                float
                                - +
                                +
                                Refers to the largest height of any glyph in the font, before any scaling.
                                +
                                +
                                float
                                + +
                                Only actually refers to a "cell" when isMono is true; otherwise refers to the largest width of any glyph in the font, before any scaling.
                                -
                                com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.g2d.TextureRegion>
                                - -
                                 
                                +
                                com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.g2d.TextureRegion>
                                + +
                                 
                                +
                                float
                                + +
                                +
                                Scale multiplier for width.
                                +
                                float
                                - +
                                -
                                Scale multiplier for width.
                                +
                                Scale multiplier for height.
                                -
                                float
                                - +
                                com.badlogic.gdx.graphics.glutils.ShaderProgram
                                +
                                -
                                Scale multiplier for height.
                                +
                                The ShaderProgram used to render this font, as used by enableShader(Batch).
                                -
                                com.badlogic.gdx.graphics.glutils.ShaderProgram
                                - +
                                char
                                +
                                -
                                The ShaderProgram used to render this font, as used by enableShader(Batch).
                                +
                                A char that will be used to draw solid blocks with drawBlocks(Batch, int[][], float, float).
                                -
                                static long
                                - +
                                static final long
                                +
                                 
                                -
                                static long
                                - +
                                static final long
                                +
                                 
                                -
                                static long
                                - +
                                static final long
                                +
                                 
                                -
                                static long
                                - +
                                static final long
                                +
                                 
                                -
                                static String
                                - +
                                static final String
                                +
                                The standard libGDX vertex shader source, which is also used by the MSDF shader.
                                @@ -243,13 +255,13 @@

                                Field Summary

                              • -
                                +

                                Constructor Summary

                                Constructors
                                Constructor
                                Description
                                -
                                Font​(com.badlogic.gdx.graphics.g2d.BitmapFont bmFont, +
                                Font(com.badlogic.gdx.graphics.g2d.BitmapFont bmFont, float xAdjust, float yAdjust, float widthAdjust, @@ -258,7 +270,7 @@

                                Constructor Summary

                                Constructs a new Font from the existing BitmapFont, using its same Textures and TextureRegions for glyphs, and without a distance field effect.
                                -
                                Font​(com.badlogic.gdx.graphics.g2d.BitmapFont bmFont, +
                                Font(com.badlogic.gdx.graphics.g2d.BitmapFont bmFont, Font.DistanceFieldType distanceField, float xAdjust, float yAdjust, @@ -268,110 +280,116 @@

                                Constructor Summary

                                Constructs a new Font from the existing BitmapFont, using its same Textures and TextureRegions for glyphs, and with the specified distance field effect.
                                -
                                Font​(Font toCopy)
                                +
                                Font(Font toCopy)
                                Copy constructor; does not copy the font's shader or colorLookup, if it has them (it uses the same reference for the new Font), but will fully copy everything else.
                                -
                                Font​(String fntName)
                                +
                                Font(String fntName)
                                Constructs a Font by reading in the given .fnt file and loading any images it specifies.
                                -
                                Font​(String fntName, +
                                Font(String fntName, + boolean sadConsole)
                                +
                                +
                                Constructs a new Font by reading in a SadConsole .font file with the given name (an internal handle is tried + first, then a local handle) and loading any images specified in that file.
                                +
                                +
                                Font(String fntName, float xAdjust, float yAdjust, float widthAdjust, float heightAdjust)
                                -
                                +
                                Constructs a new Font by reading in a .fnt file with the given name (an internal handle is tried first, then a - classpath handle) and loading any images specified in that file.
                                + local handle) and loading any images specified in that file.
                                -
                                Font​(String fntName, +
                                Font(String fntName, com.badlogic.gdx.graphics.g2d.TextureRegion textureRegion, float xAdjust, float yAdjust, float widthAdjust, float heightAdjust)
                                -
                                +
                                Constructs a font using the given TextureRegion that holds all of its glyphs, with no distance field effect.
                                -
                                Font​(String fntName, +
                                Font(String fntName, com.badlogic.gdx.graphics.g2d.TextureRegion textureRegion, Font.DistanceFieldType distanceField, float xAdjust, float yAdjust, float widthAdjust, float heightAdjust)
                                -
                                +
                                Constructs a font based off of an AngelCode BMFont .fnt file and the given TextureRegion that holds all of its glyphs, with the specified distance field effect.
                                -
                                Font​(String fntName, +
                                Font(String fntName, com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.g2d.TextureRegion> textureRegions, float xAdjust, float yAdjust, float widthAdjust, float heightAdjust)
                                -
                                +
                                Constructs a font based off of an AngelCode BMFont .fnt file and the given TextureRegion Array, with no distance field effect.
                                -
                                Font​(String fntName, +
                                Font(String fntName, com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.g2d.TextureRegion> textureRegions, Font.DistanceFieldType distanceField, float xAdjust, float yAdjust, float widthAdjust, float heightAdjust)
                                -
                                +
                                Constructs a font based off of an AngelCode BMFont .fnt file, with the given TextureRegion Array and specified distance field effect.
                                -
                                Font​(String fntName, +
                                Font(String fntName, Font.DistanceFieldType distanceField)
                                -
                                +
                                Constructs a Font by reading in the given .fnt file and loading any images it specifies.
                                -
                                Font​(String fntName, +
                                Font(String fntName, Font.DistanceFieldType distanceField, float xAdjust, float yAdjust, float widthAdjust, float heightAdjust)
                                -
                                +
                                Constructs a new Font by reading in a .fnt file with the given name (an internal handle is tried first, then a - classpath handle) and loading any images specified in that file.
                                + local handle) and loading any images specified in that file.
                                -
                                Font​(String fntName, - String textureName)
                                -
                                +
                                Font(String fntName, + String textureName)
                                +
                                Constructs a Font by reading in the given .fnt file and the given Texture by filename.
                                -
                                Font​(String fntName, - String textureName, +
                                Font(String fntName, + String textureName, float xAdjust, float yAdjust, float widthAdjust, float heightAdjust)
                                -
                                -
                                Constructs a new Font by reading in a Texture from the given named path (internal is tried, then classpath), +
                                +
                                Constructs a new Font by reading in a Texture from the given named path (internal is tried, then local), and no distance field effect.
                                -
                                Font​(String fntName, - String textureName, +
                                Font(String fntName, + String textureName, Font.DistanceFieldType distanceField)
                                -
                                +
                                Constructs a Font by reading in the given .fnt file and the given Texture by filename.
                                -
                                Font​(String fntName, - String textureName, +
                                Font(String fntName, + String textureName, Font.DistanceFieldType distanceField, float xAdjust, float yAdjust, float widthAdjust, float heightAdjust)
                                -
                                -
                                Constructs a new Font by reading in a Texture from the given named path (internal is tried, then classpath), +
                                +
                                Constructs a new Font by reading in a Texture from the given named path (internal is tried, then local), and the specified distance field effect.
                                @@ -379,7 +397,7 @@

                                Constructor Summary

                              • -
                                +

                                Method Summary

                                @@ -388,224 +406,296 @@

                                Method Summary

                                Modifier and Type
                                Method
                                Description
                                - -
                                adjustLineHeight​(float multiplier)
                                -
                                + +
                                adjustCellWidth(float multiplier)
                                +
                                +
                                Multiplies the width used by each glyph in a monospaced font by multiplier without changing the size of + any characters.
                                +
                                + +
                                adjustLineHeight(float multiplier)
                                +
                                Multiplies the line height by multiplier without changing the size of any characters.
                                -
                                void
                                - -
                                +
                                static long
                                +
                                applyChar(long glyph, + char c)
                                +
                                +
                                Replaces the section of glyph that stores its scale with the given float multiplier, rounded to a multiple of + 0.25 and wrapped to within 0.0 to 3.75, both inclusive.
                                +
                                +
                                static long
                                +
                                applyColor(long glyph, + int color)
                                +
                                +
                                Replaces the section of glyph that stores its color with the given RGBA8888 int color.
                                +
                                +
                                static long
                                +
                                applyScale(long glyph, + float scale)
                                +
                                +
                                Replaces the section of glyph that stores its scale with the given float multiplier, rounded to a multiple of + 0.25 and wrapped to within 0.0 to 3.75, both inclusive.
                                +
                                +
                                static long
                                +
                                applyStyle(long glyph, + long style)
                                +
                                +
                                Replaces the section of glyph that stores its style with the given long bits.You can get the bit constants with + BOLD, OBLIQUE, UNDERLINE, STRIKETHROUGH, SUBSCRIPT, + MIDSCRIPT, and SUPERSCRIPT.
                                +
                                + + +
                                +
                                Measures the actual width that the given Line will use when drawn.
                                +
                                +
                                void
                                + +
                                Releases all resources of this object.
                                -
                                void
                                -
                                drawBlocks​(com.badlogic.gdx.graphics.g2d.Batch batch, +
                                void
                                +
                                drawBlocks(com.badlogic.gdx.graphics.g2d.Batch batch, char blockChar, int[][] colors, float x, float y)
                                -
                                +
                                Draws a grid made of rectangular blocks of int colors (typically RGBA) at the given x,y position in world space.
                                -
                                void
                                -
                                drawBlocks​(com.badlogic.gdx.graphics.g2d.Batch batch, +
                                void
                                +
                                drawBlocks(com.badlogic.gdx.graphics.g2d.Batch batch, int[][] colors, float x, float y)
                                -
                                +
                                Draws a grid made of rectangular blocks of int colors (typically RGBA) at the given x,y position in world space.
                                -
                                float
                                -
                                drawGlyph​(com.badlogic.gdx.graphics.g2d.Batch batch, +
                                float
                                +
                                drawGlyph(com.badlogic.gdx.graphics.g2d.Batch batch, long glyph, float x, float y)
                                -
                                +
                                Draws the specified glyph with a Batch at the given x, y position.
                                -
                                float
                                -
                                drawGlyph​(com.badlogic.gdx.graphics.g2d.Batch batch, +
                                float
                                +
                                drawGlyph(com.badlogic.gdx.graphics.g2d.Batch batch, long glyph, float x, float y, float rotation)
                                -
                                +
                                Draws the specified glyph with a Batch at the given x, y position and with the specified counterclockwise rotation, measured in degrees.
                                -
                                float
                                -
                                drawGlyphs​(com.badlogic.gdx.graphics.g2d.Batch batch, +
                                float
                                +
                                drawGlyphs(com.badlogic.gdx.graphics.g2d.Batch batch, Layout glyphs, float x, float y)
                                -
                                +
                                Draws the specified Layout of glyphs with a Batch at a given x, y position, drawing the full layout.
                                -
                                float
                                -
                                drawGlyphs​(com.badlogic.gdx.graphics.g2d.Batch batch, +
                                float
                                +
                                drawGlyphs(com.badlogic.gdx.graphics.g2d.Batch batch, Layout glyphs, float x, float y, int align)
                                -
                                +
                                Draws the specified Layout of glyphs with a Batch at a given x, y position, using align to determine how to position the text.
                                -
                                float
                                -
                                drawGlyphs​(com.badlogic.gdx.graphics.g2d.Batch batch, +
                                float
                                +
                                drawGlyphs(com.badlogic.gdx.graphics.g2d.Batch batch, Line glyphs, float x, float y)
                                -
                                +
                                Draws the specified Line of glyphs with a Batch at a given x, y position, drawing the full Line using left alignment.
                                -
                                float
                                -
                                drawGlyphs​(com.badlogic.gdx.graphics.g2d.Batch batch, +
                                float
                                +
                                drawGlyphs(com.badlogic.gdx.graphics.g2d.Batch batch, Line glyphs, float x, float y, int align)
                                -
                                +
                                Draws the specified Line of glyphs with a Batch at a given x, y position, using align to determine how to position the text.
                                -
                                int
                                -
                                drawMarkupText​(com.badlogic.gdx.graphics.g2d.Batch batch, - String text, +
                                int
                                +
                                drawMarkupText(com.badlogic.gdx.graphics.g2d.Batch batch, + String text, float x, float y)
                                -
                                +
                                Draws the specified text at the given x,y position (in world space), parsing an extension of libGDX markup - and using it to determine color, size, position, shape, strikethrough, underline, and case of the given + and using it to determine color, size, position, shape, strikethrough, underline, case, and scale of the given CharSequence.
                                -
                                void
                                -
                                drawText​(com.badlogic.gdx.graphics.g2d.Batch batch, - CharSequence text, +
                                void
                                +
                                drawText(com.badlogic.gdx.graphics.g2d.Batch batch, + CharSequence text, float x, float y)
                                -
                                +
                                Draws the specified text at the given x,y position (in world space) with a white foreground.
                                -
                                void
                                -
                                drawText​(com.badlogic.gdx.graphics.g2d.Batch batch, - CharSequence text, +
                                void
                                +
                                drawText(com.badlogic.gdx.graphics.g2d.Batch batch, + CharSequence text, float x, float y, int color)
                                -
                                +
                                Draws the specified text at the given x,y position (in world space) with the given foreground color.
                                -
                                void
                                -
                                enableShader​(com.badlogic.gdx.graphics.g2d.Batch batch)
                                -
                                +
                                void
                                +
                                enableShader(com.badlogic.gdx.graphics.g2d.Batch batch)
                                +
                                Must be called before drawing anything with an SDF or MSDF font; does not need to be called for other fonts unless you are mixing them with SDF/MSDF fonts or other shaders.
                                - - -
                                +
                                static char
                                +
                                extractChar(long glyph)
                                +
                                +
                                Given a glyph as a long, this returns the char it displays.
                                +
                                +
                                static int
                                +
                                extractColor(long glyph)
                                +
                                +
                                Given a glyph as a long, this returns the RGBA8888 color it uses.
                                +
                                +
                                static float
                                +
                                extractScale(long glyph)
                                +
                                +
                                Given a glyph as a long, this returns the float multiplier it uses for scale.
                                +
                                +
                                static long
                                +
                                extractStyle(long glyph)
                                +
                                +
                                Given a glyph as a long, this returns the style bits it uses.
                                +
                                + + +
                                Gets the ColorLookup this uses to look up colors by name.
                                -
                                static boolean
                                -
                                isLowerCase​(char c)
                                -
                                +
                                static boolean
                                +
                                isLowerCase(char c)
                                +
                                Returns true if c is a lower-case letter, or false otherwise.
                                -
                                static boolean
                                -
                                isUpperCase​(char c)
                                -
                                +
                                static boolean
                                +
                                isUpperCase(char c)
                                +
                                Returns true if c is an upper-case letter, or false otherwise.
                                -
                                int
                                -
                                kerningPair​(char first, +
                                int
                                +
                                kerningPair(char first, char second)
                                -
                                +
                                Assembles two chars into a kerning pair that can be looked up as a key in kerning.
                                -
                                protected void
                                -
                                loadFNT​(String fntName, +
                                protected void
                                +
                                loadFNT(String fntName, float xAdjust, float yAdjust, float widthAdjust, float heightAdjust)
                                -
                                +
                                The gritty parsing code that pulls relevant info from an AngelCode BMFont .fnt file and uses it to assemble the - many TextureRegions this has for each glyph.
                                + many Font.GlyphRegions this has for each glyph.
                                +
                                +
                                protected void
                                +
                                loadSad(String fntName)
                                +
                                +
                                The parsing code that pulls relevant info from a SadConsole .font configuration file and uses it to assemble the + many Font.GlyphRegions this has for each glyph.
                                - -
                                markup​(String text, + +
                                markup(String text, Layout appendTo)
                                -
                                +
                                Reads markup from text, along with the chars to receive markup, processes it, and appends into appendTo, which is a Layout holding one or more Lines.
                                -
                                long
                                -
                                markupGlyph​(char chr, - String markup)
                                -
                                +
                                long
                                +
                                markupGlyph(char chr, + String markup)
                                +
                                Reads markup from markup, processes it, and applies it to the given char chr; returns a long in the format used for styled glyphs here.
                                -
                                static long
                                -
                                markupGlyph​(char chr, - String markup, +
                                static long
                                +
                                markupGlyph(char chr, + String markup, ColorLookup colorLookup)
                                -
                                +
                                Reads markup from markup, processes it, and applies it to the given char chr; returns a long in the format used for styled glyphs here.
                                -
                                float
                                -
                                measureWidth​(Line line)
                                -
                                +
                                float
                                + +
                                Measures the actual width that the given Line will use when drawn.
                                - -
                                regenerateLayout​(Layout changing)
                                -
                                 
                                - -
                                scale​(float horizontal, + + +
                                 
                                +
                                void
                                +
                                resizeDistanceField(int width, + int height)
                                +
                                +
                                Given the new width and height for a window, this attempts to adjust the actualCrispness of an + SDF or MSDF font so that it will display cleanly at a different size.
                                +
                                + +
                                scale(float horizontal, float vertical)
                                -
                                +
                                Scales the font by the given horizontal and vertical multipliers.
                                - -
                                scaleTo​(float width, + +
                                scaleTo(float width, float height)
                                -
                                +
                                Scales the font so that it will have the given width and height.
                                -
                                void
                                - -
                                +
                                void
                                + +
                                Unlikely to be used in most games, this allows changing how colors are looked up by name (or built) given a ColorLookup interface implementation.
                                - - -
                                + + +
                                Calls setTextureFilter(Texture.TextureFilter, Texture.TextureFilter) with Texture.TextureFilter.Linear for both min and mag filters.
                                - -
                                setTextureFilter​(com.badlogic.gdx.graphics.Texture.TextureFilter minFilter, + +
                                setTextureFilter(com.badlogic.gdx.graphics.Texture.TextureFilter minFilter, com.badlogic.gdx.graphics.Texture.TextureFilter magFilter)
                                -
                                +
                                Sets the texture filters on each Texture that holds a TextureRegion used by the font to the given minFilter and magFilter.
                                -
                                float
                                -
                                xAdvance​(long glyph)
                                -
                                +
                                float
                                +
                                xAdvance(long glyph)
                                +
                                Gets the distance to advance the cursor after drawing glyph, scaled by scaleX as if drawing.
                                -

                                Methods inherited from class java.lang.Object

                                -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
                                +

                                Methods inherited from class java.lang.Object

                                +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
                              @@ -614,7 +704,7 @@

                              Methods inherited from cl
                              • -
                                +

                                Field Details

                                • @@ -654,12 +744,24 @@

                                  kerning

                              • +
                                +

                                actualCrispness

                                +
                                public float actualCrispness
                                +
                                When distanceField is Font.DistanceFieldType.SDF or Font.DistanceFieldType.MSDF, this determines + how much the edges of the glyphs should be aliased sharply (higher values) or anti-aliased softly (lower values). + The default value is 1. This is set internally by resizeDistanceField(int, int) using + distanceFieldCrispness as a multiplier; when you want to have a change to crispness persist, use that + other field.
                                +
                                +
                              • +
                              • distanceFieldCrispness

                                public float distanceFieldCrispness
                                When distanceField is Font.DistanceFieldType.SDF or Font.DistanceFieldType.MSDF, this determines how much the edges of the glyphs should be aliased sharply (higher values) or anti-aliased softly (lower values). - The default value is 1.
                                + The default value is 1. This is used as a persistent multiplier that can be configured per-font, whereas + actualCrispness is the working value that changes often but is influenced by this one.

                            • @@ -707,6 +809,15 @@

                              scaleY

                          • +
                            +

                            solidBlock

                            +
                            public char solidBlock
                            +
                            A char that will be used to draw solid blocks with drawBlocks(Batch, int[][], float, float). The glyph + that corresponds to this char should be a maximum-size block of solid white pixels in most cases. Because Glamer + (which generated many of the knownFonts here) places a solid block at character 0, this defaults to u0000 .
                            +
                            +
                          • +
                          • colorLookup

                            public ColorLookup colorLookup
                            @@ -719,7 +830,11 @@

                            BOLD

                            public static final long BOLD
                            See Also:
                            -
                            Constant Field Values
                            +
                            + +
                          • @@ -729,7 +844,11 @@

                            OBLIQUE

                            public static final long OBLIQUE
                            See Also:
                            -
                            Constant Field Values
                            +
                            + +
                          • @@ -739,7 +858,11 @@

                            UNDERLINE

                            public static final long UNDERLINE
                            See Also:
                            -
                            Constant Field Values
                            +
                            + +
                        • @@ -749,7 +872,11 @@

                          STRIKETHROUGH

                          public static final long STRIKETHROUGH
                          See Also:
                          -
                          Constant Field Values
                          +
                          + +
                      • @@ -759,7 +886,11 @@

                        SUBSCRIPT

                        public static final long SUBSCRIPT
                        See Also:
                        -
                        Constant Field Values
                        +
                        + +

                      @@ -769,7 +900,11 @@

                      MIDSCRIPT

                      public static final long MIDSCRIPT
                      See Also:
                      -
                      Constant Field Values
                      +
                      + +
                      @@ -779,30 +914,42 @@

                      SUPERSCRIPT

                      public static final long SUPERSCRIPT
                      See Also:
                      -
                      Constant Field Values
                      +
                      + +
                  • vertexShader

                    -
                    public static final String vertexShader
                    +
                    public static final String vertexShader
                    The standard libGDX vertex shader source, which is also used by the MSDF shader.
                    See Also:
                    -
                    Constant Field Values
                    +
                    + +
                  • msdfFragmentShader

                    -
                    public static final String msdfFragmentShader
                    +
                    public static final String msdfFragmentShader
                    Fragment shader source meant for MSDF fonts. This is automatically used when enableShader(Batch) is called and the distanceField is Font.DistanceFieldType.MSDF.
                    See Also:
                    -
                    Constant Field Values
                    +
                    + +
                  • @@ -817,7 +964,7 @@

                    shader

                    Font.DistanceFieldType.SDF. It can be set to a user-defined ShaderProgram; if it is meant to render MSDF or SDF fonts, then the ShaderProgram should have a uniform float u_smoothing; that will be set by enableShader(Batch). Values passed to u_smoothing can vary a lot, depending on how the - font was initially created, its current scale, and its distanceFieldCrispness field. You can + font was initially created, its current scale, and its actualCrispness field. You can also use a user-defined ShaderProgram with a font using Font.DistanceFieldType.STANDARD, which may be easier and can use any uniforms you normally could with a ShaderProgram, since enableShader() won't change any of the uniforms.

@@ -828,13 +975,13 @@

shader

  • -
    +

    Constructor Details

    • Font

      -
      public Font(String fntName)
      +
      public Font(String fntName)
      Constructs a Font by reading in the given .fnt file and loading any images it specifies. Tries an internal handle first, then a local handle. Does not use a distance field effect.
      @@ -846,7 +993,7 @@

      Font

    • Font

      -
      public Font(String fntName, +
      public Font(String fntName, Font.DistanceFieldType distanceField)
      Constructs a Font by reading in the given .fnt file and loading any images it specifies. Tries an internal handle first, then a local handle. Uses the specified distance field effect.
      @@ -860,8 +1007,8 @@

      Font

    • Font

      -
      public Font(String fntName, - String textureName)
      +
      public Font(String fntName, + String textureName)
      Constructs a Font by reading in the given .fnt file and the given Texture by filename. Tries an internal handle first, then a local handle. Does not use a distance field effect.
      @@ -873,8 +1020,8 @@

      Font

    • Font

      -
      public Font(String fntName, - String textureName, +
      public Font(String fntName, + String textureName, Font.DistanceFieldType distanceField)
      Constructs a Font by reading in the given .fnt file and the given Texture by filename. Tries an internal handle first, then a local handle. Uses the specified distance field effect.
      @@ -888,7 +1035,7 @@

      Font

    • Font

      -
      public Font(Font toCopy)
      +
      public Font(Font toCopy)
      Copy constructor; does not copy the font's shader or colorLookup, if it has them (it uses the same reference for the new Font), but will fully copy everything else.
      @@ -900,13 +1047,19 @@

      Font

    • Font

      -
      public Font(String fntName, +
      public Font(String fntName, float xAdjust, float yAdjust, float widthAdjust, float heightAdjust)
      Constructs a new Font by reading in a .fnt file with the given name (an internal handle is tried first, then a - classpath handle) and loading any images specified in that file. No distance field effect is used.
      + local handle) and loading any images specified in that file. No distance field effect is used. + This allows globally adjusting the x and y positions of glyphs in the font, as well as + globally adjusting the horizontal and vertical space glyphs take up. Changing these adjustments by small values + can drastically improve the appearance of text, but has to be manually edited; every font is quite different. + If you want to add empty space around each character, you can add approximately the normal + originalCellWidth to widthAdjust and about half that to xAdjust; this can be used to make the glyphs fit + in square cells.
      Parameters:
      fntName - the path and filename of a .fnt file this will load; may be internal or local
      @@ -920,14 +1073,20 @@

      Font

    • Font

      -
      public Font(String fntName, +
      public Font(String fntName, Font.DistanceFieldType distanceField, float xAdjust, float yAdjust, float widthAdjust, float heightAdjust)
      Constructs a new Font by reading in a .fnt file with the given name (an internal handle is tried first, then a - classpath handle) and loading any images specified in that file. The specified distance field effect is used.
      + local handle) and loading any images specified in that file. The specified distance field effect is used. + This allows globally adjusting the x and y positions of glyphs in the font, as well as + globally adjusting the horizontal and vertical space glyphs take up. Changing these adjustments by small values + can drastically improve the appearance of text, but has to be manually edited; every font is quite different. + If you want to add empty space around each character, you can add approximately the normal + originalCellWidth to widthAdjust and about half that to xAdjust; this can be used to make the glyphs fit + in square cells.
      Parameters:
      fntName - the path and filename of a .fnt file this will load; may be internal or local
      @@ -942,14 +1101,20 @@

      Font

    • Font

      -
      public Font(String fntName, - String textureName, +
      public Font(String fntName, + String textureName, float xAdjust, float yAdjust, float widthAdjust, float heightAdjust)
      -
      Constructs a new Font by reading in a Texture from the given named path (internal is tried, then classpath), - and no distance field effect.
      +
      Constructs a new Font by reading in a Texture from the given named path (internal is tried, then local), + and no distance field effect. + This allows globally adjusting the x and y positions of glyphs in the font, as well as + globally adjusting the horizontal and vertical space glyphs take up. Changing these adjustments by small values + can drastically improve the appearance of text, but has to be manually edited; every font is quite different. + If you want to add empty space around each character, you can add approximately the normal + originalCellWidth to widthAdjust and about half that to xAdjust; this can be used to make the glyphs fit + in square cells.
      Parameters:
      fntName - the path and filename of a .fnt file this will load; may be internal or local
      @@ -964,15 +1129,21 @@

      Font

    • Font

      -
      public Font(String fntName, - String textureName, +
      public Font(String fntName, + String textureName, Font.DistanceFieldType distanceField, float xAdjust, float yAdjust, float widthAdjust, float heightAdjust)
      -
      Constructs a new Font by reading in a Texture from the given named path (internal is tried, then classpath), - and the specified distance field effect.
      +
      Constructs a new Font by reading in a Texture from the given named path (internal is tried, then local), + and the specified distance field effect. + This allows globally adjusting the x and y positions of glyphs in the font, as well as + globally adjusting the horizontal and vertical space glyphs take up. Changing these adjustments by small values + can drastically improve the appearance of text, but has to be manually edited; every font is quite different. + If you want to add empty space around each character, you can add approximately the normal + originalCellWidth to widthAdjust and about half that to xAdjust; this can be used to make the glyphs fit + in square cells.
      Parameters:
      fntName - the path and filename of a .fnt file this will load; may be internal or local
      @@ -988,13 +1159,19 @@

      Font

    • Font

      -
      public Font(String fntName, +
      public Font(String fntName, com.badlogic.gdx.graphics.g2d.TextureRegion textureRegion, float xAdjust, float yAdjust, float widthAdjust, float heightAdjust)
      -
      Constructs a font using the given TextureRegion that holds all of its glyphs, with no distance field effect.
      +
      Constructs a font using the given TextureRegion that holds all of its glyphs, with no distance field effect. + This allows globally adjusting the x and y positions of glyphs in the font, as well as + globally adjusting the horizontal and vertical space glyphs take up. Changing these adjustments by small values + can drastically improve the appearance of text, but has to be manually edited; every font is quite different. + If you want to add empty space around each character, you can add approximately the normal + originalCellWidth to widthAdjust and about half that to xAdjust; this can be used to make the glyphs fit + in square cells.
      Parameters:
      fntName - the path and filename of a .fnt file this will load; may be internal or local
      @@ -1009,7 +1186,7 @@

      Font

    • Font

      -
      public Font(String fntName, +
      public Font(String fntName, com.badlogic.gdx.graphics.g2d.TextureRegion textureRegion, Font.DistanceFieldType distanceField, float xAdjust, @@ -1017,7 +1194,13 @@

      Font

      float widthAdjust, float heightAdjust)
      Constructs a font based off of an AngelCode BMFont .fnt file and the given TextureRegion that holds all of its - glyphs, with the specified distance field effect.
      + glyphs, with the specified distance field effect. + This allows globally adjusting the x and y positions of glyphs in the font, as well as + globally adjusting the horizontal and vertical space glyphs take up. Changing these adjustments by small values + can drastically improve the appearance of text, but has to be manually edited; every font is quite different. + If you want to add empty space around each character, you can add approximately the normal + originalCellWidth to widthAdjust and about half that to xAdjust; this can be used to make the glyphs fit + in square cells.
      Parameters:
      fntName - the path and filename of a .fnt file this will load; may be internal or local
      @@ -1033,14 +1216,19 @@

      Font

    • Font

      -
      public Font(String fntName, +
      public Font(String fntName, com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.g2d.TextureRegion> textureRegions, float xAdjust, float yAdjust, float widthAdjust, float heightAdjust)
      Constructs a font based off of an AngelCode BMFont .fnt file and the given TextureRegion Array, with no distance - field effect.
      + field effect. This allows globally adjusting the x and y positions of glyphs in the font, as well as + globally adjusting the horizontal and vertical space glyphs take up. Changing these adjustments by small values + can drastically improve the appearance of text, but has to be manually edited; every font is quite different. + If you want to add empty space around each character, you can add approximately the normal + originalCellWidth to widthAdjust and about half that to xAdjust; this can be used to make the glyphs fit + in square cells.
      Parameters:
      fntName - the path and filename of a .fnt file this will load; may be internal or local
      @@ -1055,7 +1243,7 @@

      Font

    • Font

      -
      public Font(String fntName, +
      public Font(String fntName, com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.g2d.TextureRegion> textureRegions, Font.DistanceFieldType distanceField, float xAdjust, @@ -1063,7 +1251,12 @@

      Font

      float widthAdjust, float heightAdjust)
      Constructs a font based off of an AngelCode BMFont .fnt file, with the given TextureRegion Array and specified - distance field effect.
      + distance field effect. This allows globally adjusting the x and y positions of glyphs in the font, as well as + globally adjusting the horizontal and vertical space glyphs take up. Changing these adjustments by small values + can drastically improve the appearance of text, but has to be manually edited; every font is quite different. + If you want to add empty space around each character, you can add approximately the normal + originalCellWidth to widthAdjust and about half that to xAdjust; this can be used to make the glyphs fit + in square cells.
      Parameters:
      fntName - the path and filename of a .fnt file this will load; may be internal or local
      @@ -1079,7 +1272,7 @@

      Font

    • Font

      -
      public Font(com.badlogic.gdx.graphics.g2d.BitmapFont bmFont, +
      public Font(com.badlogic.gdx.graphics.g2d.BitmapFont bmFont, float xAdjust, float yAdjust, float widthAdjust, @@ -1099,7 +1292,7 @@

      Font

    • Font

      -
      public Font(com.badlogic.gdx.graphics.g2d.BitmapFont bmFont, +
      public Font(com.badlogic.gdx.graphics.g2d.BitmapFont bmFont, Font.DistanceFieldType distanceField, float xAdjust, float yAdjust, @@ -1118,12 +1311,27 @@

      Font

    • +
    • +
      +

      Font

      +
      public Font(String fntName, + boolean sadConsole)
      +
      Constructs a new Font by reading in a SadConsole .font file with the given name (an internal handle is tried + first, then a local handle) and loading any images specified in that file. This never uses a distance field + effect, and always tries to load one image by the path specified in the .font file.
      +
      +
      Parameters:
      +
      fntName - the path and filename of a .font file this will load; may be internal or local
      +
      sadConsole - the value is ignored here; the presence of this parameter says to load a SadConsole .font file
      +
      +
      +
  • -
    +

    Method Details

    • @@ -1140,7 +1348,7 @@

      getColorLookup

    • setColorLookup

      -
      public void setColorLookup(ColorLookup lookup)
      +
      public void setColorLookup(ColorLookup lookup)
      Unlikely to be used in most games, this allows changing how colors are looked up by name (or built) given a ColorLookup interface implementation.
      @@ -1152,9 +1360,9 @@

      setColorLookup

    • isLowerCase

      -
      public static boolean isLowerCase(char c)
      +
      public static boolean isLowerCase(char c)
      Returns true if c is a lower-case letter, or false otherwise. - Similar to Character.isLowerCase(char), but should actually work on GWT.
      + Similar to Character.isLowerCase(char), but should actually work on GWT.
  • Parameters:
    c - a char to check
    @@ -1166,9 +1374,9 @@

    isLowerCase

  • isUpperCase

    -
    public static boolean isUpperCase(char c)
    +
    public static boolean isUpperCase(char c)
    Returns true if c is an upper-case letter, or false otherwise. - Similar to Character.isUpperCase(char), but should actually work on GWT.
    + Similar to Character.isUpperCase(char), but should actually work on GWT.
  • Parameters:
    c - a char to check
    @@ -1180,13 +1388,13 @@

    isUpperCase

  • loadFNT

    -
    protected void loadFNT(String fntName, +
    protected void loadFNT(String fntName, float xAdjust, float yAdjust, float widthAdjust, float heightAdjust)
    The gritty parsing code that pulls relevant info from an AngelCode BMFont .fnt file and uses it to assemble the - many TextureRegions this has for each glyph.
    + many Font.GlyphRegions this has for each glyph.
    Parameters:
    fntName - the file name of the .fnt file; can be internal or local
    @@ -1198,9 +1406,21 @@

    loadFNT

  • +
    +

    loadSad

    +
    protected void loadSad(String fntName)
    +
    The parsing code that pulls relevant info from a SadConsole .font configuration file and uses it to assemble the + many Font.GlyphRegions this has for each glyph.
    +
    +
    Parameters:
    +
    fntName - the name of a font file this will load from an internal or local file handle (tried in that order)
    +
    +
    +
  • +
  • kerningPair

    -
    public int kerningPair(char first, +
    public int kerningPair(char first, char second)
    Assembles two chars into a kerning pair that can be looked up as a key in kerning. If you give such a pair to kerning's IntIntMap.get(int, int) method, you'll get the amount of @@ -1217,7 +1437,7 @@

    kerningPair

  • scale

    -
    public Font scale(float horizontal, +
    public Font scale(float horizontal, float vertical)
    Scales the font by the given horizontal and vertical multipliers.
    @@ -1232,7 +1452,7 @@

    scale

  • scaleTo

    -
    public Font scaleTo(float width, +
    public Font scaleTo(float width, float height)
    Scales the font so that it will have the given width and height.
    @@ -1247,7 +1467,7 @@

    scaleTo

  • adjustLineHeight

    -
    public Font adjustLineHeight(float multiplier)
    +
    public Font adjustLineHeight(float multiplier)
    Multiplies the line height by multiplier without changing the size of any characters. This can cut off the tops of letters if the multiplier is too small.
    @@ -1259,6 +1479,20 @@

    adjustLineHeight

  • +
    +

    adjustCellWidth

    +
    public Font adjustCellWidth(float multiplier)
    +
    Multiplies the width used by each glyph in a monospaced font by multiplier without changing the size of + any characters.
    +
    +
    Parameters:
    +
    multiplier - will be applied to cellWidth and originalCellWidth
    +
    Returns:
    +
    this Font, for chaining
    +
    +
    +
  • +
  • setTextureFilter

    public Font setTextureFilter()
    @@ -1280,7 +1514,7 @@

    setTextureFilter

  • setTextureFilter

    -
    public Font setTextureFilter(com.badlogic.gdx.graphics.Texture.TextureFilter minFilter, +
    public Font setTextureFilter(com.badlogic.gdx.graphics.Texture.TextureFilter minFilter, com.badlogic.gdx.graphics.Texture.TextureFilter magFilter)
    Sets the texture filters on each Texture that holds a TextureRegion used by the font to the given minFilter and magFilter. You may want to use this to set a font using @@ -1299,7 +1533,7 @@

    setTextureFilter

  • enableShader

    -
    public void enableShader(com.badlogic.gdx.graphics.g2d.Batch batch)
    +
    public void enableShader(com.badlogic.gdx.graphics.g2d.Batch batch)
    Must be called before drawing anything with an SDF or MSDF font; does not need to be called for other fonts unless you are mixing them with SDF/MSDF fonts or other shaders. This also resets the Batch color to white, in case it had been left with a different setting before. If this Font is not an MSDF font, then this resets batch's @@ -1318,8 +1552,8 @@

    enableShader

  • drawText

    -
    public void drawText(com.badlogic.gdx.graphics.g2d.Batch batch, - CharSequence text, +
    public void drawText(com.badlogic.gdx.graphics.g2d.Batch batch, + CharSequence text, float x, float y)
    Draws the specified text at the given x,y position (in world space) with a white foreground.
    @@ -1335,8 +1569,8 @@

    drawText

  • drawText

    -
    public void drawText(com.badlogic.gdx.graphics.g2d.Batch batch, - CharSequence text, +
    public void drawText(com.badlogic.gdx.graphics.g2d.Batch batch, + CharSequence text, float x, float y, int color)
    @@ -1354,21 +1588,25 @@

    drawText

  • drawBlocks

    -
    public void drawBlocks(com.badlogic.gdx.graphics.g2d.Batch batch, +
    public void drawBlocks(com.badlogic.gdx.graphics.g2d.Batch batch, int[][] colors, float x, float y)
    Draws a grid made of rectangular blocks of int colors (typically RGBA) at the given x,y position in world space. - This is only useful for monospace fonts. - This assumes there is a full-block character at char u0000; Glamer produces fonts that have this already. + This is only useful for monospace fonts. This assumes there is a full-block character at char u0000 by default, + or at solidBlock if you have set that field; Glamer produces fonts that have a block at u0000 already. The colors parameter should be a rectangular 2D array, and because any colors that are the default int value 0 will be treated as transparent RGBA values, if a value is not assigned to a slot in the array - then nothing will be drawn there. This is usually called before other methods that draw foreground text. + then nothing will be drawn there. The 2D array is treated as [x][y] indexed here. This is usually called before + other methods that draw foreground text.
    Internally, this uses Batch.draw(Texture, float[], int, int) to draw each rectangle with minimal overhead, and this also means it is unaffected by the batch color. If you want to alter the colors using a shader, the shader will receive each color in colors as its a_color attribute, the same as if it - was passed via the batch color.
    + was passed via the batch color. +
    + If you want to change the alpha of the colors array, you can use + ColorUtils.multiplyAllAlpha(int[][], float).
    Parameters:
    batch - typically a SpriteBatch
    @@ -1381,7 +1619,7 @@

    drawBlocks

  • drawBlocks

    -
    public void drawBlocks(com.badlogic.gdx.graphics.g2d.Batch batch, +
    public void drawBlocks(com.badlogic.gdx.graphics.g2d.Batch batch, char blockChar, int[][] colors, float x, @@ -1391,12 +1629,16 @@

    drawBlocks

    The blockChar should visually be represented by a very large block, occupying all of a monospaced cell. The colors parameter should be a rectangular 2D array, and because any colors that are the default int value 0 will be treated as transparent RGBA values, if a value is not assigned to a slot in the array - then nothing will be drawn there. This is usually called before other methods that draw foreground text. + then nothing will be drawn there. The 2D array is treated as [x][y] indexed here. This is usually called before + other methods that draw foreground text.
    Internally, this uses Batch.draw(Texture, float[], int, int) to draw each rectangle with minimal overhead, and this also means it is unaffected by the batch color. If you want to alter the colors using a shader, the shader will receive each color in colors as its a_color attribute, the same as if it - was passed via the batch color.
    + was passed via the batch color. +
    + If you want to change the alpha of the colors array, you can use + ColorUtils.multiplyAllAlpha(int[][], float).
    Parameters:
    batch - typically a SpriteBatch
    @@ -1410,12 +1652,12 @@

    drawBlocks

  • drawMarkupText

    -
    public int drawMarkupText(com.badlogic.gdx.graphics.g2d.Batch batch, - String text, +
    public int drawMarkupText(com.badlogic.gdx.graphics.g2d.Batch batch, + String text, float x, float y)
    Draws the specified text at the given x,y position (in world space), parsing an extension of libGDX markup - and using it to determine color, size, position, shape, strikethrough, underline, and case of the given + and using it to determine color, size, position, shape, strikethrough, underline, case, and scale of the given CharSequence. The text drawn will start as white, with the normal size as by cellWidth and cellHeight, normal case, and without bold, italic, superscript, subscript, strikethrough, or underline. Markup starts with [; the next non-letter character determines what that piece of markup @@ -1433,6 +1675,9 @@

    drawMarkupText

  • [!] toggles all upper case mode.
  • [,] toggles all lower case mode.
  • [;] toggles capitalize each word mode.
  • +
  • [%P], where P is a percentage from 0 to 375, changes the scale to that percentage (rounded to + the nearest 25% mark).
  • +
  • [%], with no number just after it, resets scale to 100%.
  • [#HHHHHHHH], where HHHHHHHH is a hex RGB888 or RGBA8888 int color, changes the color.
  • [COLORNAME], where "COLORNAME" is a typically-upper-case color name that will be looked up with getColorLookup(), changes the color. The name can optionally be preceded by |, which allows @@ -1456,7 +1701,7 @@

    drawMarkupText

  • drawGlyphs

    -
    public float drawGlyphs(com.badlogic.gdx.graphics.g2d.Batch batch, +
    public float drawGlyphs(com.badlogic.gdx.graphics.g2d.Batch batch, Layout glyphs, float x, float y)
    @@ -1475,7 +1720,7 @@

    drawGlyphs

  • drawGlyphs

    -
    public float drawGlyphs(com.badlogic.gdx.graphics.g2d.Batch batch, +
    public float drawGlyphs(com.badlogic.gdx.graphics.g2d.Batch batch, Layout glyphs, float x, float y, @@ -1499,7 +1744,7 @@

    drawGlyphs

  • drawGlyphs

    -
    public float drawGlyphs(com.badlogic.gdx.graphics.g2d.Batch batch, +
    public float drawGlyphs(com.badlogic.gdx.graphics.g2d.Batch batch, Line glyphs, float x, float y)
    @@ -1519,7 +1764,7 @@

    drawGlyphs

  • drawGlyphs

    -
    public float drawGlyphs(com.badlogic.gdx.graphics.g2d.Batch batch, +
    public float drawGlyphs(com.badlogic.gdx.graphics.g2d.Batch batch, Line glyphs, float x, float y, @@ -1543,7 +1788,7 @@

    drawGlyphs

  • xAdvance

    -
    public float xAdvance(long glyph)
    +
    public float xAdvance(long glyph)
    Gets the distance to advance the cursor after drawing glyph, scaled by scaleX as if drawing. This handles monospaced fonts correctly and ensures that for variable-width fonts, subscript, midscript, and superscript halve the advance amount. This does not consider kerning, if the font has it. If the glyph is fully @@ -1559,7 +1804,20 @@

    xAdvance

  • measureWidth

    -
    public float measureWidth(Line line)
    +
    public float measureWidth(Line line)
    +
    Measures the actual width that the given Line will use when drawn.
    +
    +
    Parameters:
    +
    line - a Line, as from inside a Layout
    +
    Returns:
    +
    the width in world units
    +
    +
    +
  • +
  • +
    +

    calculateSize

    +
    public Line calculateSize(Line line)
    Measures the actual width that the given Line will use when drawn.
    Parameters:
    @@ -1572,7 +1830,7 @@

    measureWidth

  • drawGlyph

    -
    public float drawGlyph(com.badlogic.gdx.graphics.g2d.Batch batch, +
    public float drawGlyph(com.badlogic.gdx.graphics.g2d.Batch batch, long glyph, float x, float y)
    @@ -1593,7 +1851,7 @@

    drawGlyph

  • drawGlyph

    -
    public float drawGlyph(com.badlogic.gdx.graphics.g2d.Batch batch, +
    public float drawGlyph(com.badlogic.gdx.graphics.g2d.Batch batch, long glyph, float x, float y, @@ -1618,13 +1876,13 @@

    drawGlyph

  • markup

    -
    public Layout markup(String text, +
    public Layout markup(String text, Layout appendTo)
    Reads markup from text, along with the chars to receive markup, processes it, and appends into appendTo, which is a Layout holding one or more Lines. A common way of getting a Layout is with - Pools.obtain(Layout.class); you can free the Layout when you are done using it with - Pools.free(Object). This parses an extension of libGDX markup and uses it to determine color, size, - position, shape, strikethrough, underline, and case of the given CharSequence. It also reads typing markup, for + Layout.POOL.obtain(); you can free the Layout when you are done using it with Pool.free(Object) + on Layout.POOL. This parses an extension of libGDX markup and uses it to determine color, size, position, + shape, strikethrough, underline, case, and scale of the given CharSequence. It also reads typing markup, for effects, but passes it through without changing it and without considering it for line wrapping or text position. The text drawn will start in appendTo's Layout.baseColor, which is usually white, with the normal size as determined by the font's metrics and scale (scaleX and scaleY), normal case, and @@ -1643,6 +1901,9 @@

    markup

  • [!] toggles all upper case mode.
  • [,] toggles all lower case mode.
  • [;] toggles capitalize each word mode.
  • +
  • [%P], where P is a percentage from 0 to 375, changes the scale to that percentage (rounded to + the nearest 25% mark).
  • +
  • [%], with no number just after it, resets scale to 100%.
  • [#HHHHHHHH], where HHHHHHHH is a hex RGB888 or RGBA8888 int color, changes the color.
  • [COLORNAME], where "COLORNAME" is a typically-upper-case color name that will be looked up in getColorLookup(), changes the color. The name can optionally be preceded by |, which allows @@ -1661,11 +1922,11 @@

    markup

  • markupGlyph

    -
    public long markupGlyph(char chr, - String markup)
    +
    public long markupGlyph(char chr, + String markup)
    Reads markup from markup, processes it, and applies it to the given char chr; returns a long in the format used for styled glyphs here. This parses an extension of libGDX markup and uses it to determine - color, size, position, shape, strikethrough, underline, and case of the given char. + color, size, position, shape, strikethrough, underline, case, and scale of the given char. The char drawn will start in white, with the normal size as determined by the font's metrics and scale (scaleX and scaleY), normal case, and without bold, italic, superscript, subscript, strikethrough, or underline. Markup starts with [; the next character determines what that piece of @@ -1682,6 +1943,9 @@

    markupGlyph

  • [!] toggles all upper case mode.
  • [,] toggles all lower case mode.
  • [;] toggles capitalize each word mode (this is the same as upper case mode here).
  • +
  • [%P], where P is a percentage from 0 to 375, changes the scale to that percentage (rounded to + the nearest 25% mark).
  • +
  • [%], with no number just after it, resets scale to 100% (this usually has no effect here).
  • [#HHHHHHHH], where HHHHHHHH is a hex RGB888 or RGBA8888 int color, changes the color.
  • [COLORNAME], where "COLORNAME" is a typically-upper-case color name that will be looked up in getColorLookup(), changes the color. The name can optionally be preceded by |, which allows @@ -1705,12 +1969,12 @@

    markupGlyph

  • markupGlyph

    -
    public static long markupGlyph(char chr, - String markup, +
    public static long markupGlyph(char chr, + String markup, ColorLookup colorLookup)
    Reads markup from markup, processes it, and applies it to the given char chr; returns a long in the format used for styled glyphs here. This parses an extension of libGDX markup and uses it to determine - color, size, position, shape, strikethrough, underline, and case of the given char. + color, size, position, shape, strikethrough, underline, case, and scale of the given char. The char drawn will start in white, with the normal size as determined by the font's metrics and scale (scaleX and scaleY), normal case, and without bold, italic, superscript, subscript, strikethrough, or underline. Markup starts with [; the next character determines what that piece of @@ -1727,6 +1991,9 @@

    markupGlyph

  • [!] toggles all upper case mode.
  • [,] toggles all lower case mode.
  • [;] toggles capitalize each word mode (this is the same as upper case mode here).
  • +
  • [%P], where P is a percentage from 0 to 375, changes the scale to that percentage (rounded to + the nearest 25% mark).
  • +
  • [%], with no number just after it, resets scale to 100% (this usually has no effect here).
  • [#HHHHHHHH], where HHHHHHHH is a hex RGB888 or RGBA8888 int color, changes the color.
  • [COLORNAME], where "COLORNAME" is a typically-upper-case color name that will be looked up in getColorLookup(), changes the color. The name can optionally be preceded by |, which allows @@ -1753,7 +2020,144 @@

    markupGlyph

  • regenerateLayout

    -
    public Layout regenerateLayout(Layout changing)
    +
    public Layout regenerateLayout(Layout changing)
    +
    +
  • +
  • +
    +

    resizeDistanceField

    +
    public void resizeDistanceField(int width, + int height)
    +
    Given the new width and height for a window, this attempts to adjust the actualCrispness of an + SDF or MSDF font so that it will display cleanly at a different size. Note that this ignores any previous setting + for this font's distanceFieldCrispness, so you may want to adjust that after each call. + This is a suggestion for what to call in your ApplicationListener.resize(int, int) + method for each SDF or MSDF font you have currently rendering.
    +
    +
    Parameters:
    +
    width - the new window width; usually a parameter in ApplicationListener.resize(int, int)
    +
    height - the new window height; usually a parameter in ApplicationListener.resize(int, int)
    +
    +
    +
  • +
  • +
    +

    extractColor

    +
    public static int extractColor(long glyph)
    +
    Given a glyph as a long, this returns the RGBA8888 color it uses.
    +
    +
    Parameters:
    +
    glyph - a glyph as a long, as used by Layout and Line
    +
    Returns:
    +
    the int color used by the given glyph, as RGBA8888
    +
    +
    +
  • +
  • +
    +

    applyColor

    +
    public static long applyColor(long glyph, + int color)
    +
    Replaces the section of glyph that stores its color with the given RGBA8888 int color.
    +
    +
    Parameters:
    +
    glyph - a glyph as a long, as used by Layout and Line
    +
    color - the int color to use, as an RGBA8888 int
    +
    Returns:
    +
    another long glyph that uses the specified color
    +
    +
    +
  • +
  • +
    +

    extractStyle

    +
    public static long extractStyle(long glyph)
    +
    Given a glyph as a long, this returns the style bits it uses. You can cross-reference these with + BOLD, OBLIQUE, UNDERLINE, STRIKETHROUGH, SUBSCRIPT, + MIDSCRIPT, and SUPERSCRIPT.
    +
    +
    Parameters:
    +
    glyph - a glyph as a long, as used by Layout and Line
    +
    Returns:
    +
    the style bits used by the given glyph
    +
    +
    +
  • +
  • +
    +

    applyStyle

    +
    public static long applyStyle(long glyph, + long style)
    +
    Replaces the section of glyph that stores its style with the given long bits.You can get the bit constants with + BOLD, OBLIQUE, UNDERLINE, STRIKETHROUGH, SUBSCRIPT, + MIDSCRIPT, and SUPERSCRIPT. Because only a small section is used from style, you can pass an + existing styled glyph as the second parameter to copy its style information into glyph.
    +
    +
    Parameters:
    +
    glyph - a glyph as a long, as used by Layout and Line
    +
    style - the long style bits to use, which should usually be bits from the aforementioned constants
    +
    Returns:
    +
    another long glyph that uses the specified style
    +
    +
    +
  • +
  • +
    +

    extractScale

    +
    public static float extractScale(long glyph)
    +
    Given a glyph as a long, this returns the float multiplier it uses for scale.
    +
    +
    Parameters:
    +
    glyph - a glyph as a long, as used by Layout and Line
    +
    Returns:
    +
    the float scale used by the given glyph, from 0.0f to 3.75f
    +
    +
    +
  • +
  • +
    +

    applyScale

    +
    public static long applyScale(long glyph, + float scale)
    +
    Replaces the section of glyph that stores its scale with the given float multiplier, rounded to a multiple of + 0.25 and wrapped to within 0.0 to 3.75, both inclusive.
    +
    +
    Parameters:
    +
    glyph - a glyph as a long, as used by Layout and Line
    +
    scale - the float scale to use, which should be between 0.0 and 3.75, both inclusive
    +
    Returns:
    +
    another long glyph that uses the specified scale
    +
    +
    +
  • +
  • +
    +

    extractChar

    +
    public static char extractChar(long glyph)
    +
    Given a glyph as a long, this returns the char it displays. This automatically corrects the placeholder char + u0002 to the glyph it displays as, '['.
    +
    +
    Parameters:
    +
    glyph - a glyph as a long, as used by Layout and Line
    +
    Returns:
    +
    the char used by the given glyph
    +
    +
    +
  • +
  • +
    +

    applyChar

    +
    public static long applyChar(long glyph, + char c)
    +
    Replaces the section of glyph that stores its scale with the given float multiplier, rounded to a multiple of + 0.25 and wrapped to within 0.0 to 3.75, both inclusive.
    +
    +
    Parameters:
    +
    glyph - a glyph as a long, as used by Layout and Line
    +
    c - the char to use
    +
    Returns:
    +
    another long glyph that uses the specified char
    +
  • diff --git a/docs/apidocs/com/github/tommyettinger/textra/KnownFonts.html b/docs/apidocs/com/github/tommyettinger/textra/KnownFonts.html index 56fe9b56..e1a05e11 100644 --- a/docs/apidocs/com/github/tommyettinger/textra/KnownFonts.html +++ b/docs/apidocs/com/github/tommyettinger/textra/KnownFonts.html @@ -1,9 +1,8 @@ - - -KnownFonts (textratypist 0.1.5 API) + +KnownFonts (textratypist 0.1.6 API) @@ -29,15 +28,15 @@
    @@ -73,17 +70,17 @@

    Class KnownFonts

    -
    java.lang.Object +
    java.lang.Object
    com.github.tommyettinger.textra.KnownFonts
    -
    +
    All Implemented Interfaces:
    com.badlogic.gdx.LifecycleListener

    public class KnownFonts -extends Object +extends Object implements com.badlogic.gdx.LifecycleListener
    Preconfigured static Font instances, with any important metric adjustments already applied. This uses a singleton to ensure each font exists at most once, and implements LifecycleListener to ensure that when the @@ -100,7 +97,7 @@

    Class KnownFonts

    • -
      +

      Method Summary

      @@ -109,110 +106,116 @@

      Method Summary

      Modifier and Type
      Method
      Description
      -
      void
      - -
       
      -
      static Font
      - -
      +
      void
      + +
       
      +
      static Font
      + +
      Returns a Font already configured to use a square font with 45-degree angled sections, based on the typeface used on the Atari ST console, that should scale cleanly to many sizes.
      -
      static Font
      - -
      +
      static Font
      + +
      Returns a Font already configured to use a very-legible variable-width font with strong support for Canadian Aboriginal Syllabic, that should scale pretty well from a height of about 86 down to a height of maybe 30.
      -
      static Font
      - -
      +
      static Font
      + +
      Returns a Font already configured to use a quirky fixed-width font with good Unicode support and a humanist style, that should scale cleanly to even very large sizes (using an MSDF technique).
      -
      static Font
      - -
      +
      static Font
      + +
      Returns a Font configured to use a cozy fixed-width bitmap font, Cozette by slavfox.
      -
      static Font
      - -
      +
      static Font
      + +
      A nice old standby font with very broad language support, DejaVu Sans Mono is fixed-width and can be clearly readable but doesn't do anything unusual stylistically.
      -
      static Font
      - -
      +
      static Font
      + +
      Returns a Font already configured to use a variable-width serif font with excellent Unicode support, that should scale cleanly to even very large sizes (using an SDF technique).
      -
      static Font
      - -
      +
      static Font
      + +
      +
      Returns a Font configured to use a classic, nostalgic fixed-width bitmap font, + IBM 8x16 from the early, oft-beloved computer line.
      +
      +
      static Font
      + +
      A customized version of Inconsolata LGC, a fixed-width geometric font that supports a large range of Latin, Greek, and Cyrillic glyphs, plus box drawing and some dingbat characters (like zodiac signs).
      -
      static Font
      - -
      +
      static Font
      + +
      Returns a Font already configured to use a highly-legible fixed-width font with good Unicode support and a sans-serif geometric style, that should scale cleanly to even very large sizes (using an MSDF technique).
      -
      static Font
      - -
      +
      static Font
      + +
      Returns a Font already configured to use a highly-legible fixed-width font with good Unicode support and a slab-serif geometric style, that should scale cleanly to even very large sizes (using an MSDF technique).
      -
      static Font
      - -
      +
      static Font
      + +
      Returns a Font already configured to use a fairly-legible variable-width ornamental/medieval font, that should scale pretty well from a height of about 90 down to a height of maybe 30.
      -
      static Font
      - -
      +
      static Font
      + +
      Returns a Font already configured to use a variable-width serif font with good Unicode support, that should scale cleanly to even very large sizes (using an MSDF technique).
      -
      static Font
      - -
      +
      static Font
      + +
      Returns a Font configured to use a clean variable-width font, Open Sans.
      -
      static Font
      - -
      +
      static Font
      + +
      Returns a Font already configured to use a variable-width "science-fiction/high-tech" font, that should scale pretty well down, but not up.
      -
      static Font
      - -
      +
      static Font
      + +
      Returns a Font already configured to use a very-legible condensed variable-width font with excellent Unicode support, that should scale pretty well from a height of about 62 down to a height of maybe 20.
      -
      static Font
      - -
      +
      static Font
      + +
      Returns a Font already configured to use a variable-width, narrow, humanist font, that should scale pretty well down, but not up.
      -
      void
      - -
       
      -
      void
      - -
       
      +
      void
      + +
       
      +
      void
      + +
       
      -

      Methods inherited from class java.lang.Object

      -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      +

      Methods inherited from class java.lang.Object

      +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    @@ -221,7 +224,7 @@

    Methods inherited from cl
    • -
      +

      Method Details

      • @@ -276,7 +279,9 @@

        getAStarry

        typeface used on the Atari ST console, that should scale cleanly to many sizes. This font only supports ASCII, but it supports all of it. Caches the result for later calls. The font is "a-starry", based on "Atari ST (low-res)" by Damien Guard; it is available under a CC-BY-SA-3.0 license, which requires attribution to Damien - Guard (and technically Tommy Ettinger, because he made changes in a-starry) if you use it. + Guard (and technically Tommy Ettinger, because he made changes in a-starry) if you use it. This uses the + Multi-channel Signed Distance Field (MSDF) technique as opposed to the normal Signed Distance Field technique, + which gives the rendered font sharper edges and precise corners instead of rounded tips on strokes.

        @@ -422,8 +427,9 @@

        getIosevkaSlab

        getGentium

        public static Font getGentium()
        Returns a Font already configured to use a variable-width serif font with excellent Unicode support, that should - scale cleanly to even very large sizes (using an SDF technique). - Caches the result for later calls. The font used is Gentium, an open-source (SIL Open Font + scale cleanly to even very large sizes (using an SDF technique). You usually will want to reduce the line height + of this Font after you scale it; using KnownFonts.getGentium().scaleTo(55, 45).adjustLineHeight(0.8f) + usually works. Caches the result for later calls. The font used is Gentium, an open-source (SIL Open Font License) typeface by SIL (see https://software.sil.org/gentium/ ). It supports a lot of glyphs, including quite a bit of extended Latin, Greek, and Cyrillic, as well as some less-common glyphs from various real languages. This uses the Signed Distance Field (SDF) technique, which may be slightly fuzzy when zoomed in heavily, but should be @@ -599,6 +605,33 @@

        getRobotoCondensed

    • +
      +

      getIBM8x16

      +
      public static Font getIBM8x16()
      +
      Returns a Font configured to use a classic, nostalgic fixed-width bitmap font, + IBM 8x16 from the early, oft-beloved computer line. This font is notably loaded + from a SadConsole format file, which shouldn't affect how it looks (but in reality, + it might). This does not scale except to integer multiples, but it should look very + crisp at its default size of 8x16 pixels. This supports some extra characters, but + not at the typical Unicode codepoints. +
      + This does not include a license because the source, SadConsole's fonts, + did not include one. It is doubtful that IBM would have any issues with respectful use + of their signature font throughout the 1980s, but if the legality is concerning, you + can use getCozette() for a different bitmap font. +
      + Needs files: +
        +
      • https://github.com/tommyettinger/textratypist/blob/main/knownFonts/IBM.font
      • +
      • https://github.com/tommyettinger/textratypist/blob/main/knownFonts/IBM8x16.png
      • +
      +
      +
      Returns:
      +
      the Font object that represents an 8x16 font included with early IBM computers
      +
      +
      +
    • +
    • pause

      public void pause()
      diff --git a/docs/apidocs/com/github/tommyettinger/textra/Layout.html b/docs/apidocs/com/github/tommyettinger/textra/Layout.html index 49f5b08d..96cff1a4 100644 --- a/docs/apidocs/com/github/tommyettinger/textra/Layout.html +++ b/docs/apidocs/com/github/tommyettinger/textra/Layout.html @@ -1,9 +1,8 @@ - - -Layout (textratypist 0.1.5 API) + +Layout (textratypist 0.1.6 API) @@ -29,15 +28,15 @@
      @@ -73,28 +70,28 @@

      Class Layout

      -
      java.lang.Object +
      java.lang.Object
      com.github.tommyettinger.textra.Layout
      -
      +
      All Implemented Interfaces:
      com.badlogic.gdx.utils.Pool.Poolable

      public class Layout -extends Object +extends Object implements com.badlogic.gdx.utils.Pool.Poolable
      A replacement for libGDX's GlyphLayout, more or less; stores one or more (possibly empty) Lines of text, which can use color and style markup from Font, and can be drawn with Font.drawGlyphs(Batch, Layout, float, float, int). This is a Poolable class, and you can obtain a Layout with - Pools.obtain(Layout.class) followed by setting the font, or just using a constructor.
      + Layout.POOL.obtain() followed by setting the font, or just using a constructor.
      @@ -267,10 +272,16 @@

      Methods inherited from cl
      • -
        +

        Field Details

        • +
          +

          POOL

          +
          public static final com.badlogic.gdx.utils.Pool<Layout> POOL
          +
          +
        • +
        • font

          protected Font font
          @@ -297,7 +308,7 @@

          atLimit

        • ellipsis

          -
          protected String ellipsis
          +
          protected String ellipsis
        • @@ -317,7 +328,7 @@

          baseColor

        • -
          +

          Constructor Details

          • @@ -329,7 +340,7 @@

            Layout

          • Layout

            -
            public Layout(Font font)
            +
            public Layout(Font font)
          @@ -337,13 +348,13 @@

          Layout

        • -
          +

          Method Details

          • font

            -
            public Layout font(Font font)
            +
            public Layout font(Font font)
            One of the ways to set the font on a Layout; this one returns this Layout for chaining.
            Parameters:
            @@ -362,7 +373,7 @@

            getFont

          • setFont

            -
            public void setFont(Font font)
            +
            public void setFont(Font font)
            One of the ways to set the font on a Layout; this is a traditional setter.
            Parameters:
            @@ -373,7 +384,7 @@

            setFont

          • add

            -
            public Layout add(long glyph)
            +
            public Layout add(long glyph)
            Adds a long glyph as processed by Font to store color and style info with the char.
            Parameters:
            @@ -410,7 +421,7 @@

            lines

          • getLine

            -
            public Line getLine(int i)
            +
            public Line getLine(int i)
            Gets a Line from this by its index.
            Parameters:
            @@ -435,7 +446,7 @@

            pushLine

          • insertLine

            -
            public Line insertLine(int index)
            +
            public Line insertLine(int index)
          • @@ -447,7 +458,7 @@

            getTargetWidth

          • setTargetWidth

            -
            public Layout setTargetWidth(float targetWidth)
            +
            public Layout setTargetWidth(float targetWidth)
          • @@ -467,7 +478,7 @@

            getBaseColor

          • setBaseColor

            -
            public void setBaseColor(float baseColor)
            +
            public void setBaseColor(float baseColor)
            Sets the base color of the Layout; this is what font color will be used immediately after resetting formatting with [], as well as the initial color used by text that hasn't been formatted. This takes the color as a primitive float, which you can get from a Color object with @@ -481,7 +492,7 @@

            setBaseColor

          • setBaseColor

            -
            public void setBaseColor(com.badlogic.gdx.graphics.Color baseColor)
            +
            public void setBaseColor(com.badlogic.gdx.graphics.Color baseColor)
            Sets the base color of the Layout; this is what font color will be used immediately after resetting formatting with [], as well as the initial color used by text that hasn't been formatted. If the given Color is null, this treats it as white.
            @@ -505,7 +516,7 @@

            getMaxLines

          • setMaxLines

            -
            public void setMaxLines(int maxLines)
            +
            public void setMaxLines(int maxLines)
            Sets the maximum number of Lines this Layout can contain; this is always at least 1.
            Parameters:
            @@ -516,7 +527,7 @@

            setMaxLines

          • getEllipsis

            -
            public String getEllipsis()
            +
            public String getEllipsis()
            Gets the ellipsis, which may be null, or may be a String that can be placed at the end of the text if its max lines are exceeded.
            @@ -528,7 +539,7 @@

            getEllipsis

          • setEllipsis

            -
            public void setEllipsis(String ellipsis)
            +
            public void setEllipsis(String ellipsis)
            Sets the ellipsis text, which replaces the last few glyphs if non-null and the text added would exceed the getMaxLines() of this Layout. For the ellipsis to appear, this has to be called with a non-null String (often "...", or "…" if the font supports it), and @@ -552,10 +563,28 @@

            reset

          • +
            +

            appendIntoDirect

            +
            public StringBuilder appendIntoDirect(StringBuilder sb)
            +
            Can be useful if you want to append many Layouts into a StringBuilder. This does not treat character u0002 any + differently from other characters, which is where it differs from appendInto(StringBuilder). + This does not add or remove newlines from the Layout's contents, and can produce line breaks if they appear.
            +
            +
            Parameters:
            +
            sb - a non-null StringBuilder from the JDK
            +
            Returns:
            +
            sb, for chaining
            +
            +
            +
          • +
          • appendInto

            -
            public StringBuilder appendInto(StringBuilder sb)
            -
            Primarily used by toString(), but can be useful if you want to append many Layouts into a StringBuilder.
            +
            public StringBuilder appendInto(StringBuilder sb)
            +
            Primarily used by toString(), but can be useful if you want to append many Layouts into a StringBuilder. + This treats instances of the character u0002 as '[', as the library does internally, instead of + potentially printing a gibberish character. + This does not add or remove newlines from the Layout's contents, and can produce line breaks if they appear.
            Parameters:
            sb - a non-null StringBuilder from the JDK
            @@ -567,10 +596,10 @@

            appendInto

          • toString

            -
            public String toString()
            +
            public String toString()
            Overrides:
            -
            toString in class Object
            +
            toString in class Object
          • diff --git a/docs/apidocs/com/github/tommyettinger/textra/Line.html b/docs/apidocs/com/github/tommyettinger/textra/Line.html index 79827750..c9427332 100644 --- a/docs/apidocs/com/github/tommyettinger/textra/Line.html +++ b/docs/apidocs/com/github/tommyettinger/textra/Line.html @@ -1,9 +1,8 @@ - - -Line (textratypist 0.1.5 API) + +Line (textratypist 0.1.6 API) @@ -29,15 +28,15 @@
            @@ -73,64 +70,67 @@

            Class Line

            -
            java.lang.Object +
            java.lang.Object
            com.github.tommyettinger.textra.Line
            -
            +
            All Implemented Interfaces:
            com.badlogic.gdx.utils.Pool.Poolable

            public class Line -extends Object +extends Object implements com.badlogic.gdx.utils.Pool.Poolable
            One line of possibly-colorful, possibly-styled text, with a width and height set by Font.markup(String, Layout) on Lines in a Layout. This stores each (colorful, styled) char as a long in a libGDX LongArray. This is a Poolable class, and you can obtain a - Line with Pools.obtain(Line.class), or just using a constructor.
            + Line with Line.POOL.obtain(), or just using a constructor.
          @@ -168,10 +168,16 @@

          Methods inherited from cl
          • -
            +

            Field Details

            • +
              +

              POOL

              +
              public static final com.badlogic.gdx.utils.Pool<Line> POOL
              +
              +
            • +
            • glyphs

              public final com.badlogic.gdx.utils.LongArray glyphs
              @@ -194,7 +200,7 @@

              height

            • -
              +

              Constructor Details

              • @@ -206,7 +212,7 @@

                Line

              • Line

                -
                public Line(int capacity)
                +
                public Line(int capacity)
              @@ -214,13 +220,13 @@

              Line

            • -
              +

              Method Details

              • size

                -
                public Line size(float width, +
                public Line size(float width, float height)
              • @@ -238,16 +244,16 @@

                reset

              • appendTo

                -
                public StringBuilder appendTo(StringBuilder sb)
                +
                public StringBuilder appendTo(StringBuilder sb)
              • toString

                -
                public String toString()
                +
                public String toString()
                Overrides:
                -
                toString in class Object
                +
                toString in class Object
              • diff --git a/docs/apidocs/com/github/tommyettinger/textra/TextraLabel.html b/docs/apidocs/com/github/tommyettinger/textra/TextraLabel.html index b135846e..fb8fcece 100644 --- a/docs/apidocs/com/github/tommyettinger/textra/TextraLabel.html +++ b/docs/apidocs/com/github/tommyettinger/textra/TextraLabel.html @@ -1,9 +1,8 @@ - - -TextraLabel (textratypist 0.1.5 API) + +TextraLabel (textratypist 0.1.6 API) @@ -29,15 +28,15 @@
                @@ -73,14 +70,14 @@

                Class TextraLabel

                -
                java.lang.Object +
                java.lang.Object
                com.badlogic.gdx.scenes.scene2d.Actor
                com.badlogic.gdx.scenes.scene2d.ui.Widget
                com.github.tommyettinger.textra.TextraLabel
                -
                +
                All Implemented Interfaces:
                com.badlogic.gdx.scenes.scene2d.utils.Layout
                @@ -101,7 +98,7 @@

                Class TextraLabel

                • -
                  +

                  Field Summary

                  Fields
                  @@ -109,47 +106,47 @@

                  Field Summary

                  Field
                  Description
                  int
                  - +
                   
                  - +
                   
                  - +
                   
                  - - + +
                   
                  boolean
                  - +
                   
                • -
                  +

                  Constructor Summary

                  Constructors
                  Constructor
                  Description
                  - +
                   
                  -
                  TextraLabel​(String text, +
                  TextraLabel(String text, com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle style)
                   
                  -
                  TextraLabel​(String text, +
                  TextraLabel(String text, com.badlogic.gdx.scenes.scene2d.ui.Skin skin)
                   
                  -
                  TextraLabel​(String text, +
                  TextraLabel(String text, com.badlogic.gdx.scenes.scene2d.ui.Skin skin, - String styleName)
                  + String styleName)
                   
                  -
                  TextraLabel​(String text, +
                  TextraLabel(String text, Font font)
                   
                  -
                  TextraLabel​(String text, +
                  TextraLabel(String text, Font font, com.badlogic.gdx.graphics.Color color)
                   
                  @@ -158,7 +155,7 @@

                  Constructor Summary

                • -
                  +

                  Method Summary

                  @@ -167,56 +164,56 @@

                  Method Summary

                  Modifier and Type
                  Method
                  Description
                  -
                  void
                  -
                  draw​(com.badlogic.gdx.graphics.g2d.Batch batch, +
                  void
                  +
                  draw(com.badlogic.gdx.graphics.g2d.Batch batch, float parentAlpha)
                  -
                   
                  -
                  int
                  - -
                  +
                   
                  +
                  int
                  + +
                  Gets the alignment for the text in this TextraLabel.
                  -
                  float
                  - -
                   
                  -
                  float
                  - -
                   
                  -
                  boolean
                  - -
                   
                  -
                  void
                  - -
                   
                  -
                  void
                  -
                  setAlignment​(int alignment)
                  -
                  +
                  float
                  + +
                   
                  +
                  float
                  + +
                   
                  +
                  boolean
                  + +
                   
                  +
                  void
                  + +
                   
                  +
                  void
                  +
                  setAlignment(int alignment)
                  +
                  Sets the alignment for the text in this TextraLabel.
                  -
                  void
                  -
                  setSize​(float width, +
                  void
                  +
                  setSize(float width, float height)
                  -
                   
                  -
                  void
                  -
                  setText​(String markupText)
                  -
                  +
                   
                  +
                  void
                  +
                  setText(String markupText)
                  +
                  Changes the text in this TextraLabel to the given String, parsing any markup in it.
                  -
                  void
                  -
                  setWrap​(boolean wrap)
                  -
                   
                  +
                  void
                  +
                  setWrap(boolean wrap)
                  +
                   
                  -

                  Methods inherited from class com.badlogic.gdx.scenes.scene2d.ui.Widget

                  +

                  Methods inherited from class com.badlogic.gdx.scenes.scene2d.ui.Widget

                  getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, invalidate, invalidateHierarchy, needsLayout, pack, setFillParent, setLayoutEnabled, sizeChanged, validate
                  -

                  Methods inherited from class com.badlogic.gdx.scenes.scene2d.Actor

                  +

                  Methods inherited from class com.badlogic.gdx.scenes.scene2d.Actor

                  act, addAction, addCaptureListener, addListener, ancestorsVisible, ascendantsVisible, clear, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, drawDebug, drawDebugBounds, fire, firstAscendant, getActions, getCaptureListeners, getColor, getDebug, getHeight, getListeners, getName, getOriginX, getOriginY, getParent, getRight, getRotation, getScaleX, getScaleY, getStage, getTop, getTouchable, getUserObject, getWidth, getX, getX, getY, getY, getZIndex, hasActions, hasKeyboardFocus, hasParent, hasScrollFocus, hit, isAscendantOf, isDescendantOf, isTouchable, isTouchFocusListener, isTouchFocusTarget, isVisible, localToActorCoordinates, localToAscendantCoordinates, localToParentCoordinates, localToScreenCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, positionChanged, remove, removeAction, removeCaptureListener, removeListener, rotateBy, rotationChanged, scaleBy, scaleBy, scaleChanged, screenToLocalCoordinates, setBounds, setColor, setColor, setDebug, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setParent, setPosition, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setStage, setTouchable, setUserObject, setVisible, setWidth, setX, setX, setY, setY, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, toBack, toFront, toString
                  -

                  Methods inherited from class java.lang.Object

                  -clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
                  +

                  Methods inherited from class java.lang.Object

                  +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
                @@ -225,7 +222,7 @@

                Methods inherited from cl

            @@ -166,7 +163,7 @@

            Methods inherited from cl
            • -
              +

              Enum Constant Details

              • @@ -228,7 +225,7 @@

                EFFECT_END

              • -
                +

                Method Details

                • @@ -246,7 +243,7 @@

                  values

                • valueOf

                  -
                  public static TokenCategory valueOf(String name)
                  +
                  public static TokenCategory valueOf(String name)
                  Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are @@ -257,8 +254,8 @@

                  valueOf

                  Returns:
                  the enum constant with the specified name
                  Throws:
                  -
                  IllegalArgumentException - if this enum class has no constant with the specified name
                  -
                  NullPointerException - if the argument is null
                  +
                  IllegalArgumentException - if this enum class has no constant with the specified name
                  +
                  NullPointerException - if the argument is null

  • diff --git a/docs/apidocs/com/github/tommyettinger/textra/TypingAdapter.html b/docs/apidocs/com/github/tommyettinger/textra/TypingAdapter.html index f4cbecec..0c65e479 100644 --- a/docs/apidocs/com/github/tommyettinger/textra/TypingAdapter.html +++ b/docs/apidocs/com/github/tommyettinger/textra/TypingAdapter.html @@ -1,9 +1,8 @@ - - -TypingAdapter (textratypist 0.1.5 API) + +TypingAdapter (textratypist 0.1.6 API) @@ -29,15 +28,15 @@
    @@ -73,17 +70,17 @@

    Class TypingAdapter

    -
    java.lang.Object +
    java.lang.Object
    com.github.tommyettinger.textra.TypingAdapter
    -
    +
    All Implemented Interfaces:
    TypingListener

    public class TypingAdapter -extends Object +extends Object implements TypingListener
    Simple listener for label events. You can derive from this and only override what you are interested in.
    @@ -91,20 +88,20 @@

    Class TypingAdapter

    @@ -147,7 +144,7 @@

    Methods inherited from cl

  • @@ -188,7 +185,7 @@

    Methods inherited from cl

  • +A B C D E F G H I J K L M N O P R S T U V W X 
    All Classes and Interfaces|All Packages|Constant Field Values
    diff --git a/docs/apidocs/index.html b/docs/apidocs/index.html index 5e742120..58be974a 100644 --- a/docs/apidocs/index.html +++ b/docs/apidocs/index.html @@ -1,9 +1,8 @@ - - -Overview (textratypist 0.1.5 API) + +Overview (textratypist 0.1.6 API) @@ -25,48 +24,46 @@
    -

    textratypist 0.1.5 API

    +

    textratypist 0.1.6 API

    Packages
    Package
    Description
    - -
    + +
    Contains the core of the library, such as the TypingLabel and Font classes.
    - -
    + +
    Contains the various effects that can be applied to text in a TypingLabel.
    - -
    + +
    Contains miscellaneous support code; currently this covers 1D noise and color editing.
    diff --git a/docs/apidocs/legal/ADDITIONAL_LICENSE_INFO b/docs/apidocs/legal/ADDITIONAL_LICENSE_INFO new file mode 100644 index 00000000..b62cc3ef --- /dev/null +++ b/docs/apidocs/legal/ADDITIONAL_LICENSE_INFO @@ -0,0 +1 @@ +Please see ..\java.base\ADDITIONAL_LICENSE_INFO diff --git a/docs/apidocs/legal/ASSEMBLY_EXCEPTION b/docs/apidocs/legal/ASSEMBLY_EXCEPTION new file mode 100644 index 00000000..0d4cfb40 --- /dev/null +++ b/docs/apidocs/legal/ASSEMBLY_EXCEPTION @@ -0,0 +1 @@ +Please see ..\java.base\ASSEMBLY_EXCEPTION diff --git a/docs/apidocs/legal/LICENSE b/docs/apidocs/legal/LICENSE new file mode 100644 index 00000000..4ad9fe40 --- /dev/null +++ b/docs/apidocs/legal/LICENSE @@ -0,0 +1 @@ +Please see ..\java.base\LICENSE diff --git a/docs/apidocs/legal/jquery.md b/docs/apidocs/legal/jquery.md new file mode 100644 index 00000000..8054a34c --- /dev/null +++ b/docs/apidocs/legal/jquery.md @@ -0,0 +1,72 @@ +## jQuery v3.5.1 + +### jQuery License +``` +jQuery v 3.5.1 +Copyright JS Foundation and other contributors, https://js.foundation/ + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +****************************************** + +The jQuery JavaScript Library v3.5.1 also includes Sizzle.js + +Sizzle.js includes the following license: + +Copyright JS Foundation and other contributors, https://js.foundation/ + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/jquery/sizzle + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +All files located in the node_modules and external directories are +externally maintained libraries used by this software which have their +own licenses; we recommend you read them, as their terms may differ from +the terms above. + +********************* + +``` diff --git a/docs/apidocs/legal/jqueryUI.md b/docs/apidocs/legal/jqueryUI.md new file mode 100644 index 00000000..8031bdb5 --- /dev/null +++ b/docs/apidocs/legal/jqueryUI.md @@ -0,0 +1,49 @@ +## jQuery UI v1.12.1 + +### jQuery UI License +``` +Copyright jQuery Foundation and other contributors, https://jquery.org/ + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/jquery/jquery-ui + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +Copyright and related rights for sample code are waived via CC0. Sample +code is defined as all source code contained within the demos directory. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +All files located in the node_modules and external directories are +externally maintained libraries used by this software which have their +own licenses; we recommend you read them, as their terms may differ from +the terms above. + +``` diff --git a/docs/apidocs/member-search-index.js b/docs/apidocs/member-search-index.js index f7030162..90604ccc 100644 --- a/docs/apidocs/member-search-index.js +++ b/docs/apidocs/member-search-index.js @@ -1 +1 @@ -memberSearchIndex = [{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"act(float)"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"add(long)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"adjustLineHeight(float)"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"align"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"appendInto(StringBuilder)","u":"appendInto(java.lang.StringBuilder)"},{"p":"com.github.tommyettinger.textra","c":"Line","l":"appendTo(StringBuilder)","u":"appendTo(java.lang.StringBuilder)"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"apply(long, int, float)","u":"apply(long,int,float)"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"atLimit"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"baseColor"},{"p":"com.github.tommyettinger.textra.effects","c":"BlinkEffect","l":"BlinkEffect(TypingLabel, String[])","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel,java.lang.String[])"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"BOLD"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"calculateFadeout()"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"calculateProgress(float)"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"calculateProgress(float, float)","u":"calculateProgress(float,float)"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"calculateProgress(float, float, boolean)","u":"calculateProgress(float,float,boolean)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"cancelSkipping()"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"cellHeight"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"cellWidth"},{"p":"com.github.tommyettinger.textra","c":"TypingConfig","l":"CHAR_LIMIT_PER_FRAME"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"clear()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"clearVariables()"},{"p":"com.github.tommyettinger.textra","c":"TokenCategory","l":"COLOR"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"colorLookup"},{"p":"com.github.tommyettinger.textra.utils","c":"ColorUtils","l":"ColorUtils()","u":"%3Cinit%3E()"},{"p":"com.github.tommyettinger.textra","c":"TypingConfig","l":"DEFAULT_CLEAR_COLOR"},{"p":"com.github.tommyettinger.textra","c":"TypingConfig","l":"DEFAULT_SPEED_PER_CHAR"},{"p":"com.github.tommyettinger.textra","c":"TypingConfig","l":"DEFAULT_WAIT_VALUE"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"defaultValue"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"dispose()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"dispose()"},{"p":"com.github.tommyettinger.textra.effects","c":"SickEffect","l":"distance"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"distanceField"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"distanceFieldCrispness"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"draw(Batch, float)","u":"draw(com.badlogic.gdx.graphics.g2d.Batch,float)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"draw(Batch, float)","u":"draw(com.badlogic.gdx.graphics.g2d.Batch,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"drawBlocks(Batch, char, int[][], float, float)","u":"drawBlocks(com.badlogic.gdx.graphics.g2d.Batch,char,int[][],float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"drawBlocks(Batch, int[][], float, float)","u":"drawBlocks(com.badlogic.gdx.graphics.g2d.Batch,int[][],float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"drawGlyph(Batch, long, float, float)","u":"drawGlyph(com.badlogic.gdx.graphics.g2d.Batch,long,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"drawGlyph(Batch, long, float, float, float)","u":"drawGlyph(com.badlogic.gdx.graphics.g2d.Batch,long,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"drawGlyphs(Batch, Layout, float, float)","u":"drawGlyphs(com.badlogic.gdx.graphics.g2d.Batch,com.github.tommyettinger.textra.Layout,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"drawGlyphs(Batch, Layout, float, float, int)","u":"drawGlyphs(com.badlogic.gdx.graphics.g2d.Batch,com.github.tommyettinger.textra.Layout,float,float,int)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"drawGlyphs(Batch, Line, float, float)","u":"drawGlyphs(com.badlogic.gdx.graphics.g2d.Batch,com.github.tommyettinger.textra.Line,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"drawGlyphs(Batch, Line, float, float, int)","u":"drawGlyphs(com.badlogic.gdx.graphics.g2d.Batch,com.github.tommyettinger.textra.Line,float,float,int)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"drawMarkupText(Batch, String, float, float)","u":"drawMarkupText(com.badlogic.gdx.graphics.g2d.Batch,java.lang.String,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"drawText(Batch, CharSequence, float, float)","u":"drawText(com.badlogic.gdx.graphics.g2d.Batch,java.lang.CharSequence,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"drawText(Batch, CharSequence, float, float, int)","u":"drawText(com.badlogic.gdx.graphics.g2d.Batch,java.lang.CharSequence,float,float,int)"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"duration"},{"p":"com.github.tommyettinger.textra.effects","c":"EaseEffect","l":"EaseEffect(TypingLabel, String[])","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel,java.lang.String[])"},{"p":"com.github.tommyettinger.textra","c":"TokenCategory","l":"EFFECT_END"},{"p":"com.github.tommyettinger.textra","c":"TokenCategory","l":"EFFECT_START"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"Effect(TypingLabel)","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel)"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"ellipsis"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"enableShader(Batch)","u":"enableShader(com.badlogic.gdx.graphics.g2d.Batch)"},{"p":"com.github.tommyettinger.textra","c":"TypingAdapter","l":"end()"},{"p":"com.github.tommyettinger.textra","c":"TypingListener","l":"end()"},{"p":"com.github.tommyettinger.textra","c":"TokenCategory","l":"EVENT"},{"p":"com.github.tommyettinger.textra","c":"TypingAdapter","l":"event(String)","u":"event(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"TypingListener","l":"event(String)","u":"event(java.lang.String)"},{"p":"com.github.tommyettinger.textra.effects","c":"FadeEffect","l":"FadeEffect(TypingLabel, String[])","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel,java.lang.String[])"},{"p":"com.github.tommyettinger.textra","c":"Font.GlyphRegion","l":"flip(boolean, boolean)","u":"flip(boolean,boolean)"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"font"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"font"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(BitmapFont, float, float, float, float)","u":"%3Cinit%3E(com.badlogic.gdx.graphics.g2d.BitmapFont,float,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(BitmapFont, Font.DistanceFieldType, float, float, float, float)","u":"%3Cinit%3E(com.badlogic.gdx.graphics.g2d.BitmapFont,com.github.tommyettinger.textra.Font.DistanceFieldType,float,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"font(Font)","u":"font(com.github.tommyettinger.textra.Font)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(Font)","u":"%3Cinit%3E(com.github.tommyettinger.textra.Font)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(String, Array, float, float, float, float)","u":"%3Cinit%3E(java.lang.String,com.badlogic.gdx.utils.Array,float,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(String, Array, Font.DistanceFieldType, float, float, float, float)","u":"%3Cinit%3E(java.lang.String,com.badlogic.gdx.utils.Array,com.github.tommyettinger.textra.Font.DistanceFieldType,float,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(String, float, float, float, float)","u":"%3Cinit%3E(java.lang.String,float,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(String, Font.DistanceFieldType)","u":"%3Cinit%3E(java.lang.String,com.github.tommyettinger.textra.Font.DistanceFieldType)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(String, Font.DistanceFieldType, float, float, float, float)","u":"%3Cinit%3E(java.lang.String,com.github.tommyettinger.textra.Font.DistanceFieldType,float,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(String, String, float, float, float, float)","u":"%3Cinit%3E(java.lang.String,java.lang.String,float,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(String, String, Font.DistanceFieldType)","u":"%3Cinit%3E(java.lang.String,java.lang.String,com.github.tommyettinger.textra.Font.DistanceFieldType)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(String, String, Font.DistanceFieldType, float, float, float, float)","u":"%3Cinit%3E(java.lang.String,java.lang.String,com.github.tommyettinger.textra.Font.DistanceFieldType,float,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(String, TextureRegion, float, float, float, float)","u":"%3Cinit%3E(java.lang.String,com.badlogic.gdx.graphics.g2d.TextureRegion,float,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(String, TextureRegion, Font.DistanceFieldType, float, float, float, float)","u":"%3Cinit%3E(java.lang.String,com.badlogic.gdx.graphics.g2d.TextureRegion,com.github.tommyettinger.textra.Font.DistanceFieldType,float,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"getAlignment()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getAStarry()"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"getBaseColor()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getCanada()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getCascadiaMono()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"getClearColor()"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"getColorLookup()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getCozette()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"getDefaultToken()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getDejaVuSansMono()"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"getEllipsis()"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"getFont()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"getFromIntermediate(int)"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getGentium()"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"getHeight()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getInconsolataLGC()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"getInLayout(Layout, int)","u":"getInLayout(com.github.tommyettinger.textra.Layout,int)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"getIntermediateText()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getIosevka()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getIosevkaSlab()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getKingthingsFoundation()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getLibertinusSerif()"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"getLine(int)"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"getLineHeight()"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"getMaxLines()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getOpenSans()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"getOriginalText()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getOxanium()"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"getPrefHeight()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"getPrefHeight()"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"getPrefWidth()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"getPrefWidth()"},{"p":"com.github.tommyettinger.textra","c":"ColorLookup.GdxColorLookup","l":"getRgba(String)","u":"getRgba(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"ColorLookup","l":"getRgba(String)","u":"getRgba(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getRobotoCondensed()"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"getTargetWidth()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"getTypingListener()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"getVariables()"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"getWidth()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getYanoneKaffeesatz()"},{"p":"com.github.tommyettinger.textra","c":"TypingConfig","l":"GLOBAL_VARS"},{"p":"com.github.tommyettinger.textra","c":"Font.GlyphRegion","l":"GlyphRegion(Font.GlyphRegion)","u":"%3Cinit%3E(com.github.tommyettinger.textra.Font.GlyphRegion)"},{"p":"com.github.tommyettinger.textra","c":"Font.GlyphRegion","l":"GlyphRegion(TextureRegion, int, int, int, int)","u":"%3Cinit%3E(com.badlogic.gdx.graphics.g2d.TextureRegion,int,int,int,int)"},{"p":"com.github.tommyettinger.textra","c":"Line","l":"glyphs"},{"p":"com.github.tommyettinger.textra.effects","c":"GradientEffect","l":"GradientEffect(TypingLabel, String[])","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel,java.lang.String[])"},{"p":"com.github.tommyettinger.textra.effects","c":"HangEffect","l":"HangEffect(TypingLabel, String[])","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel,java.lang.String[])"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"hasEnded()"},{"p":"com.github.tommyettinger.textra","c":"Line","l":"height"},{"p":"com.github.tommyettinger.textra.utils","c":"ColorUtils","l":"hsl2rgb(float, float, float, float)","u":"hsl2rgb(float,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"indexEnd"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"indexStart"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"insertLine(int)"},{"p":"com.github.tommyettinger.textra","c":"ColorLookup.GdxColorLookup","l":"INSTANCE"},{"p":"com.github.tommyettinger.textra.effects","c":"SickEffect","l":"intensity"},{"p":"com.github.tommyettinger.textra","c":"TypingConfig","l":"INTERVAL_MULTIPLIERS_BY_CHAR"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"isFinished()"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"isLowerCase(char)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"isMono"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"isPaused()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"isSkipping()"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"isUpperCase(char)"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"isWrap()"},{"p":"com.github.tommyettinger.textra.effects","c":"JoltEffect","l":"JoltEffect(TypingLabel, String[])","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel,java.lang.String[])"},{"p":"com.github.tommyettinger.textra.effects","c":"JumpEffect","l":"JumpEffect(TypingLabel, String[])","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel,java.lang.String[])"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"kerning"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"kerningPair(char, char)","u":"kerningPair(char,char)"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"label"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"layout"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"layout()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"layout()"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"Layout()","u":"%3Cinit%3E()"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"Layout(Font)","u":"%3Cinit%3E(com.github.tommyettinger.textra.Font)"},{"p":"com.github.tommyettinger.textra.utils","c":"ColorUtils","l":"lerpColors(int, int, float)","u":"lerpColors(int,int,float)"},{"p":"com.github.tommyettinger.textra","c":"Line","l":"Line()","u":"%3Cinit%3E()"},{"p":"com.github.tommyettinger.textra","c":"Line","l":"Line(int)","u":"%3Cinit%3E(int)"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"lines"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"lines()"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"loadFNT(String, float, float, float, float)","u":"loadFNT(java.lang.String,float,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"mapping"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"markup(String, Layout)","u":"markup(java.lang.String,com.github.tommyettinger.textra.Layout)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"markupGlyph(char, String)","u":"markupGlyph(char,java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"markupGlyph(char, String, ColorLookup)","u":"markupGlyph(char,java.lang.String,com.github.tommyettinger.textra.ColorLookup)"},{"p":"com.github.tommyettinger.textra","c":"TypingConfig","l":"MAX_SPEED_MODIFIER"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"maxLines"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"measureWidth(Line)","u":"measureWidth(com.github.tommyettinger.textra.Line)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"MIDSCRIPT"},{"p":"com.github.tommyettinger.textra","c":"TypingConfig","l":"MIN_SPEED_MODIFIER"},{"p":"com.github.tommyettinger.textra","c":"Font.DistanceFieldType","l":"MSDF"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"msdfFragmentShader"},{"p":"com.github.tommyettinger.textra.utils","c":"NoiseUtils","l":"noise1D(float, int)","u":"noise1D(float,int)"},{"p":"com.github.tommyettinger.textra.utils","c":"NoiseUtils","l":"NoiseUtils()","u":"%3Cinit%3E()"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"OBLIQUE"},{"p":"com.github.tommyettinger.textra.utils","c":"NoiseUtils","l":"octaveNoise1D(float, int)","u":"octaveNoise1D(float,int)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"offsets"},{"p":"com.github.tommyettinger.textra","c":"Font.GlyphRegion","l":"offsetX"},{"p":"com.github.tommyettinger.textra","c":"Font.GlyphRegion","l":"offsetY"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra.effects","c":"BlinkEffect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra.effects","c":"EaseEffect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra.effects","c":"FadeEffect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra.effects","c":"GradientEffect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra.effects","c":"HangEffect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra.effects","c":"JoltEffect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra.effects","c":"JumpEffect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra.effects","c":"RainbowEffect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra.effects","c":"ShakeEffect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra.effects","c":"SickEffect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra.effects","c":"SlideEffect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra.effects","c":"WaveEffect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra.effects","c":"WindEffect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra","c":"TypingAdapter","l":"onChar(Long)","u":"onChar(java.lang.Long)"},{"p":"com.github.tommyettinger.textra","c":"TypingListener","l":"onChar(Long)","u":"onChar(java.lang.Long)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"originalCellHeight"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"originalCellWidth"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"paramAsBoolean(String)","u":"paramAsBoolean(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"paramAsColor(String)","u":"paramAsColor(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"paramAsFloat(String, float)","u":"paramAsFloat(java.lang.String,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"parents"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"parseTokens()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"pause()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"pause()"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"peekLine()"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"pushLine()"},{"p":"com.github.tommyettinger.textra.effects","c":"RainbowEffect","l":"RainbowEffect(TypingLabel, String[])","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel,java.lang.String[])"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"regenerateLayout(Layout)","u":"regenerateLayout(com.github.tommyettinger.textra.Layout)"},{"p":"com.github.tommyettinger.textra","c":"TypingConfig","l":"registerEffect(String, String, Class)","u":"registerEffect(java.lang.String,java.lang.String,java.lang.Class)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"remove()"},{"p":"com.github.tommyettinger.textra","c":"TypingAdapter","l":"replaceVariable(String)","u":"replaceVariable(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"TypingListener","l":"replaceVariable(String)","u":"replaceVariable(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"TokenCategory","l":"RESET"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"reset()"},{"p":"com.github.tommyettinger.textra","c":"Line","l":"reset()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"restart()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"restart(String)","u":"restart(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"restoreOriginalText()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"resume()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"resume()"},{"p":"com.github.tommyettinger.textra.utils","c":"ColorUtils","l":"rgb2hsl(float, float, float, float)","u":"rgb2hsl(float,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"saveOriginalText(CharSequence)","u":"saveOriginalText(java.lang.CharSequence)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"scale(float, float)","u":"scale(float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"scaleTo(float, float)","u":"scaleTo(float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"scaleX"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"scaleY"},{"p":"com.github.tommyettinger.textra","c":"Font.DistanceFieldType","l":"SDF"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"setAlignment(int)"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"setBaseColor(Color)","u":"setBaseColor(com.badlogic.gdx.graphics.Color)"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"setBaseColor(float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"setColorLookup(ColorLookup)","u":"setColorLookup(com.github.tommyettinger.textra.ColorLookup)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"setDefaultToken(String)","u":"setDefaultToken(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"setEllipsis(String)","u":"setEllipsis(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"setFont(Font)","u":"setFont(com.github.tommyettinger.textra.Font)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"setInLayout(Layout, int, long)","u":"setInLayout(com.github.tommyettinger.textra.Layout,int,long)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"setIntermediateText(CharSequence, boolean, boolean)","u":"setIntermediateText(java.lang.CharSequence,boolean,boolean)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"setInWorkingLayout(int, long)","u":"setInWorkingLayout(int,long)"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"setMaxLines(int)"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"setSize(float, float)","u":"setSize(float,float)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"setSize(float, float)","u":"setSize(float,float)"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"setTargetWidth(float)"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"setText(String)","u":"setText(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"setText(String)","u":"setText(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"setText(String, boolean)","u":"setText(java.lang.String,boolean)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"setText(String, boolean, boolean)","u":"setText(java.lang.String,boolean,boolean)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"setTextureFilter()"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"setTextureFilter(Texture.TextureFilter, Texture.TextureFilter)","u":"setTextureFilter(com.badlogic.gdx.graphics.Texture.TextureFilter,com.badlogic.gdx.graphics.Texture.TextureFilter)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"setTypingListener(TypingListener)","u":"setTypingListener(com.github.tommyettinger.textra.TypingListener)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"setVariable(String, String)","u":"setVariable(java.lang.String,java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"setVariables(Map)","u":"setVariables(java.util.Map)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"setVariables(ObjectMap)","u":"setVariables(com.badlogic.gdx.utils.ObjectMap)"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"setWrap(boolean)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"shader"},{"p":"com.github.tommyettinger.textra.effects","c":"ShakeEffect","l":"ShakeEffect(TypingLabel, String[])","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel,java.lang.String[])"},{"p":"com.github.tommyettinger.textra.effects","c":"SickEffect","l":"SickEffect(TypingLabel, String[])","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel,java.lang.String[])"},{"p":"com.github.tommyettinger.textra","c":"Line","l":"size(float, float)","u":"size(float,float)"},{"p":"com.github.tommyettinger.textra","c":"TokenCategory","l":"SKIP"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"skipToTheEnd()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"skipToTheEnd(boolean)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"skipToTheEnd(boolean, boolean)","u":"skipToTheEnd(boolean,boolean)"},{"p":"com.github.tommyettinger.textra.effects","c":"SlideEffect","l":"SlideEffect(TypingLabel, String[])","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel,java.lang.String[])"},{"p":"com.github.tommyettinger.textra","c":"TokenCategory","l":"SPEED"},{"p":"com.github.tommyettinger.textra","c":"Font.DistanceFieldType","l":"STANDARD"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"storedText"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"STRIKETHROUGH"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"SUBSCRIPT"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"SUPERSCRIPT"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"targetWidth"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"TextraLabel()","u":"%3Cinit%3E()"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"TextraLabel(String, Font)","u":"%3Cinit%3E(java.lang.String,com.github.tommyettinger.textra.Font)"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"TextraLabel(String, Font, Color)","u":"%3Cinit%3E(java.lang.String,com.github.tommyettinger.textra.Font,com.badlogic.gdx.graphics.Color)"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"TextraLabel(String, Label.LabelStyle)","u":"%3Cinit%3E(java.lang.String,com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle)"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"TextraLabel(String, Skin)","u":"%3Cinit%3E(java.lang.String,com.badlogic.gdx.scenes.scene2d.ui.Skin)"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"TextraLabel(String, Skin, String)","u":"%3Cinit%3E(java.lang.String,com.badlogic.gdx.scenes.scene2d.ui.Skin,java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"tokenEntries"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"toString()"},{"p":"com.github.tommyettinger.textra","c":"Line","l":"toString()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"toString()"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"totalTime"},{"p":"com.github.tommyettinger.textra","c":"TypingAdapter","l":"TypingAdapter()","u":"%3Cinit%3E()"},{"p":"com.github.tommyettinger.textra","c":"TypingConfig","l":"TypingConfig()","u":"%3Cinit%3E()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"TypingLabel()","u":"%3Cinit%3E()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"TypingLabel(String, Font)","u":"%3Cinit%3E(java.lang.String,com.github.tommyettinger.textra.Font)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"TypingLabel(String, Font, Color)","u":"%3Cinit%3E(java.lang.String,com.github.tommyettinger.textra.Font,com.badlogic.gdx.graphics.Color)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"TypingLabel(String, Label.LabelStyle)","u":"%3Cinit%3E(java.lang.String,com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"TypingLabel(String, Skin)","u":"%3Cinit%3E(java.lang.String,com.badlogic.gdx.scenes.scene2d.ui.Skin)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"TypingLabel(String, Skin, String)","u":"%3Cinit%3E(java.lang.String,com.badlogic.gdx.scenes.scene2d.ui.Skin,java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"UNDERLINE"},{"p":"com.github.tommyettinger.textra","c":"TypingConfig","l":"unregisterEffect(String, String)","u":"unregisterEffect(java.lang.String,java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"update(float)"},{"p":"com.github.tommyettinger.textra.effects","c":"WindEffect","l":"update(float)"},{"p":"com.github.tommyettinger.textra","c":"Font.DistanceFieldType","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"TokenCategory","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"Font.DistanceFieldType","l":"values()"},{"p":"com.github.tommyettinger.textra","c":"TokenCategory","l":"values()"},{"p":"com.github.tommyettinger.textra","c":"TokenCategory","l":"VARIABLE"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"vertexShader"},{"p":"com.github.tommyettinger.textra","c":"TokenCategory","l":"WAIT"},{"p":"com.github.tommyettinger.textra.effects","c":"WaveEffect","l":"WaveEffect(TypingLabel, String[])","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel,java.lang.String[])"},{"p":"com.github.tommyettinger.textra","c":"Line","l":"width"},{"p":"com.github.tommyettinger.textra.effects","c":"WindEffect","l":"WindEffect(TypingLabel, String[])","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel,java.lang.String[])"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"workingLayout"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"wrap"},{"p":"com.github.tommyettinger.textra","c":"Font.GlyphRegion","l":"xAdvance"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"xAdvance(long)"}];updateSearchResults(); \ No newline at end of file +memberSearchIndex = [{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"act(float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"actualCrispness"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"add(long)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"adjustCellWidth(float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"adjustLineHeight(float)"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"align"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"appendInto(StringBuilder)","u":"appendInto(java.lang.StringBuilder)"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"appendIntoDirect(StringBuilder)","u":"appendIntoDirect(java.lang.StringBuilder)"},{"p":"com.github.tommyettinger.textra","c":"Line","l":"appendTo(StringBuilder)","u":"appendTo(java.lang.StringBuilder)"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"apply(long, int, float)","u":"apply(long,int,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"applyChar(long, char)","u":"applyChar(long,char)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"applyColor(long, int)","u":"applyColor(long,int)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"applyScale(long, float)","u":"applyScale(long,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"applyStyle(long, long)","u":"applyStyle(long,long)"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"atLimit"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"baseColor"},{"p":"com.github.tommyettinger.textra.effects","c":"BlinkEffect","l":"BlinkEffect(TypingLabel, String[])","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel,java.lang.String[])"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"BOLD"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"calculateFadeout()"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"calculateProgress(float)"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"calculateProgress(float, float)","u":"calculateProgress(float,float)"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"calculateProgress(float, float, boolean)","u":"calculateProgress(float,float,boolean)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"calculateSize(Line)","u":"calculateSize(com.github.tommyettinger.textra.Line)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"cancelSkipping()"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"cellHeight"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"cellWidth"},{"p":"com.github.tommyettinger.textra","c":"TypingConfig","l":"CHAR_LIMIT_PER_FRAME"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"clear()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"clearVariables()"},{"p":"com.github.tommyettinger.textra","c":"TokenCategory","l":"COLOR"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"colorLookup"},{"p":"com.github.tommyettinger.textra.utils","c":"ColorUtils","l":"ColorUtils()","u":"%3Cinit%3E()"},{"p":"com.github.tommyettinger.textra","c":"TypingConfig","l":"DEFAULT_CLEAR_COLOR"},{"p":"com.github.tommyettinger.textra","c":"TypingConfig","l":"DEFAULT_SPEED_PER_CHAR"},{"p":"com.github.tommyettinger.textra","c":"TypingConfig","l":"DEFAULT_WAIT_VALUE"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"defaultValue"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"dispose()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"dispose()"},{"p":"com.github.tommyettinger.textra.effects","c":"SickEffect","l":"distance"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"distanceField"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"distanceFieldCrispness"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"draw(Batch, float)","u":"draw(com.badlogic.gdx.graphics.g2d.Batch,float)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"draw(Batch, float)","u":"draw(com.badlogic.gdx.graphics.g2d.Batch,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"drawBlocks(Batch, char, int[][], float, float)","u":"drawBlocks(com.badlogic.gdx.graphics.g2d.Batch,char,int[][],float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"drawBlocks(Batch, int[][], float, float)","u":"drawBlocks(com.badlogic.gdx.graphics.g2d.Batch,int[][],float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"drawGlyph(Batch, long, float, float)","u":"drawGlyph(com.badlogic.gdx.graphics.g2d.Batch,long,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"drawGlyph(Batch, long, float, float, float)","u":"drawGlyph(com.badlogic.gdx.graphics.g2d.Batch,long,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"drawGlyphs(Batch, Layout, float, float)","u":"drawGlyphs(com.badlogic.gdx.graphics.g2d.Batch,com.github.tommyettinger.textra.Layout,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"drawGlyphs(Batch, Layout, float, float, int)","u":"drawGlyphs(com.badlogic.gdx.graphics.g2d.Batch,com.github.tommyettinger.textra.Layout,float,float,int)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"drawGlyphs(Batch, Line, float, float)","u":"drawGlyphs(com.badlogic.gdx.graphics.g2d.Batch,com.github.tommyettinger.textra.Line,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"drawGlyphs(Batch, Line, float, float, int)","u":"drawGlyphs(com.badlogic.gdx.graphics.g2d.Batch,com.github.tommyettinger.textra.Line,float,float,int)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"drawMarkupText(Batch, String, float, float)","u":"drawMarkupText(com.badlogic.gdx.graphics.g2d.Batch,java.lang.String,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"drawText(Batch, CharSequence, float, float)","u":"drawText(com.badlogic.gdx.graphics.g2d.Batch,java.lang.CharSequence,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"drawText(Batch, CharSequence, float, float, int)","u":"drawText(com.badlogic.gdx.graphics.g2d.Batch,java.lang.CharSequence,float,float,int)"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"duration"},{"p":"com.github.tommyettinger.textra.effects","c":"EaseEffect","l":"EaseEffect(TypingLabel, String[])","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel,java.lang.String[])"},{"p":"com.github.tommyettinger.textra","c":"TokenCategory","l":"EFFECT_END"},{"p":"com.github.tommyettinger.textra","c":"TokenCategory","l":"EFFECT_START"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"Effect(TypingLabel)","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel)"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"ellipsis"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"enableShader(Batch)","u":"enableShader(com.badlogic.gdx.graphics.g2d.Batch)"},{"p":"com.github.tommyettinger.textra","c":"TypingAdapter","l":"end()"},{"p":"com.github.tommyettinger.textra","c":"TypingListener","l":"end()"},{"p":"com.github.tommyettinger.textra","c":"TokenCategory","l":"EVENT"},{"p":"com.github.tommyettinger.textra","c":"TypingAdapter","l":"event(String)","u":"event(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"TypingListener","l":"event(String)","u":"event(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"extractChar(long)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"extractColor(long)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"extractScale(long)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"extractStyle(long)"},{"p":"com.github.tommyettinger.textra.effects","c":"FadeEffect","l":"FadeEffect(TypingLabel, String[])","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel,java.lang.String[])"},{"p":"com.github.tommyettinger.textra","c":"Font.GlyphRegion","l":"flip(boolean, boolean)","u":"flip(boolean,boolean)"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"font"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"font"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(BitmapFont, float, float, float, float)","u":"%3Cinit%3E(com.badlogic.gdx.graphics.g2d.BitmapFont,float,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(BitmapFont, Font.DistanceFieldType, float, float, float, float)","u":"%3Cinit%3E(com.badlogic.gdx.graphics.g2d.BitmapFont,com.github.tommyettinger.textra.Font.DistanceFieldType,float,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"font(Font)","u":"font(com.github.tommyettinger.textra.Font)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(Font)","u":"%3Cinit%3E(com.github.tommyettinger.textra.Font)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(String, Array, float, float, float, float)","u":"%3Cinit%3E(java.lang.String,com.badlogic.gdx.utils.Array,float,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(String, Array, Font.DistanceFieldType, float, float, float, float)","u":"%3Cinit%3E(java.lang.String,com.badlogic.gdx.utils.Array,com.github.tommyettinger.textra.Font.DistanceFieldType,float,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(String, boolean)","u":"%3Cinit%3E(java.lang.String,boolean)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(String, float, float, float, float)","u":"%3Cinit%3E(java.lang.String,float,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(String, Font.DistanceFieldType)","u":"%3Cinit%3E(java.lang.String,com.github.tommyettinger.textra.Font.DistanceFieldType)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(String, Font.DistanceFieldType, float, float, float, float)","u":"%3Cinit%3E(java.lang.String,com.github.tommyettinger.textra.Font.DistanceFieldType,float,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(String, String, float, float, float, float)","u":"%3Cinit%3E(java.lang.String,java.lang.String,float,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(String, String, Font.DistanceFieldType)","u":"%3Cinit%3E(java.lang.String,java.lang.String,com.github.tommyettinger.textra.Font.DistanceFieldType)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(String, String, Font.DistanceFieldType, float, float, float, float)","u":"%3Cinit%3E(java.lang.String,java.lang.String,com.github.tommyettinger.textra.Font.DistanceFieldType,float,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(String, TextureRegion, float, float, float, float)","u":"%3Cinit%3E(java.lang.String,com.badlogic.gdx.graphics.g2d.TextureRegion,float,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"Font(String, TextureRegion, Font.DistanceFieldType, float, float, float, float)","u":"%3Cinit%3E(java.lang.String,com.badlogic.gdx.graphics.g2d.TextureRegion,com.github.tommyettinger.textra.Font.DistanceFieldType,float,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"getAlignment()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getAStarry()"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"getBaseColor()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getCanada()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getCascadiaMono()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"getClearColor()"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"getColorLookup()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getCozette()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"getDefaultToken()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getDejaVuSansMono()"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"getEllipsis()"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"getFont()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"getFromIntermediate(int)"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getGentium()"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"getHeight()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getIBM8x16()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getInconsolataLGC()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"getInLayout(Layout, int)","u":"getInLayout(com.github.tommyettinger.textra.Layout,int)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"getIntermediateText()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getIosevka()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getIosevkaSlab()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getKingthingsFoundation()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getLibertinusSerif()"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"getLine(int)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"getLineHeight(int)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"getLineInLayout(Layout, int)","u":"getLineInLayout(com.github.tommyettinger.textra.Layout,int)"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"getMaxLines()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getOpenSans()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"getOriginalText()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getOxanium()"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"getPrefHeight()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"getPrefHeight()"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"getPrefWidth()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"getPrefWidth()"},{"p":"com.github.tommyettinger.textra","c":"ColorLookup.GdxColorLookup","l":"getRgba(String)","u":"getRgba(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"ColorLookup","l":"getRgba(String)","u":"getRgba(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getRobotoCondensed()"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"getTargetWidth()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"getTypingListener()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"getVariables()"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"getWidth()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"getYanoneKaffeesatz()"},{"p":"com.github.tommyettinger.textra","c":"TypingConfig","l":"GLOBAL_VARS"},{"p":"com.github.tommyettinger.textra","c":"Font.GlyphRegion","l":"GlyphRegion(Font.GlyphRegion)","u":"%3Cinit%3E(com.github.tommyettinger.textra.Font.GlyphRegion)"},{"p":"com.github.tommyettinger.textra","c":"Font.GlyphRegion","l":"GlyphRegion(TextureRegion, int, int, int, int)","u":"%3Cinit%3E(com.badlogic.gdx.graphics.g2d.TextureRegion,int,int,int,int)"},{"p":"com.github.tommyettinger.textra","c":"Line","l":"glyphs"},{"p":"com.github.tommyettinger.textra.effects","c":"GradientEffect","l":"GradientEffect(TypingLabel, String[])","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel,java.lang.String[])"},{"p":"com.github.tommyettinger.textra.effects","c":"HangEffect","l":"HangEffect(TypingLabel, String[])","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel,java.lang.String[])"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"hasEnded()"},{"p":"com.github.tommyettinger.textra","c":"Line","l":"height"},{"p":"com.github.tommyettinger.textra.utils","c":"ColorUtils","l":"hsl2rgb(float, float, float, float)","u":"hsl2rgb(float,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"indexEnd"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"indexStart"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"insertLine(int)"},{"p":"com.github.tommyettinger.textra","c":"ColorLookup.GdxColorLookup","l":"INSTANCE"},{"p":"com.github.tommyettinger.textra.effects","c":"SickEffect","l":"intensity"},{"p":"com.github.tommyettinger.textra","c":"TypingConfig","l":"INTERVAL_MULTIPLIERS_BY_CHAR"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"isFinished()"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"isLowerCase(char)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"isMono"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"isPaused()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"isSkipping()"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"isUpperCase(char)"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"isWrap()"},{"p":"com.github.tommyettinger.textra.effects","c":"JoltEffect","l":"JoltEffect(TypingLabel, String[])","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel,java.lang.String[])"},{"p":"com.github.tommyettinger.textra.effects","c":"JumpEffect","l":"JumpEffect(TypingLabel, String[])","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel,java.lang.String[])"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"kerning"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"kerningPair(char, char)","u":"kerningPair(char,char)"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"label"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"layout"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"layout()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"layout()"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"Layout()","u":"%3Cinit%3E()"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"Layout(Font)","u":"%3Cinit%3E(com.github.tommyettinger.textra.Font)"},{"p":"com.github.tommyettinger.textra.utils","c":"ColorUtils","l":"lerpColors(int, int, float)","u":"lerpColors(int,int,float)"},{"p":"com.github.tommyettinger.textra","c":"Line","l":"Line()","u":"%3Cinit%3E()"},{"p":"com.github.tommyettinger.textra","c":"Line","l":"Line(int)","u":"%3Cinit%3E(int)"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"lines"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"lines()"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"loadFNT(String, float, float, float, float)","u":"loadFNT(java.lang.String,float,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"loadSad(String)","u":"loadSad(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"mapping"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"markup(String, Layout)","u":"markup(java.lang.String,com.github.tommyettinger.textra.Layout)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"markupGlyph(char, String)","u":"markupGlyph(char,java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"markupGlyph(char, String, ColorLookup)","u":"markupGlyph(char,java.lang.String,com.github.tommyettinger.textra.ColorLookup)"},{"p":"com.github.tommyettinger.textra","c":"TypingConfig","l":"MAX_SPEED_MODIFIER"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"maxLines"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"measureWidth(Line)","u":"measureWidth(com.github.tommyettinger.textra.Line)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"MIDSCRIPT"},{"p":"com.github.tommyettinger.textra","c":"TypingConfig","l":"MIN_SPEED_MODIFIER"},{"p":"com.github.tommyettinger.textra","c":"Font.DistanceFieldType","l":"MSDF"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"msdfFragmentShader"},{"p":"com.github.tommyettinger.textra.utils","c":"ColorUtils","l":"multiplyAllAlpha(int[][], float)","u":"multiplyAllAlpha(int[][],float)"},{"p":"com.github.tommyettinger.textra.utils","c":"ColorUtils","l":"multiplyAlpha(int, float)","u":"multiplyAlpha(int,float)"},{"p":"com.github.tommyettinger.textra.utils","c":"NoiseUtils","l":"noise1D(float, int)","u":"noise1D(float,int)"},{"p":"com.github.tommyettinger.textra.utils","c":"NoiseUtils","l":"NoiseUtils()","u":"%3Cinit%3E()"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"OBLIQUE"},{"p":"com.github.tommyettinger.textra.utils","c":"NoiseUtils","l":"octaveNoise1D(float, int)","u":"octaveNoise1D(float,int)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"offsets"},{"p":"com.github.tommyettinger.textra","c":"Font.GlyphRegion","l":"offsetX"},{"p":"com.github.tommyettinger.textra","c":"Font.GlyphRegion","l":"offsetY"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra.effects","c":"BlinkEffect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra.effects","c":"EaseEffect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra.effects","c":"FadeEffect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra.effects","c":"GradientEffect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra.effects","c":"HangEffect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra.effects","c":"JoltEffect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra.effects","c":"JumpEffect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra.effects","c":"RainbowEffect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra.effects","c":"ShakeEffect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra.effects","c":"SickEffect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra.effects","c":"SlideEffect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra.effects","c":"WaveEffect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra.effects","c":"WindEffect","l":"onApply(long, int, int, float)","u":"onApply(long,int,int,float)"},{"p":"com.github.tommyettinger.textra","c":"TypingAdapter","l":"onChar(Long)","u":"onChar(java.lang.Long)"},{"p":"com.github.tommyettinger.textra","c":"TypingListener","l":"onChar(Long)","u":"onChar(java.lang.Long)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"originalCellHeight"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"originalCellWidth"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"paramAsBoolean(String)","u":"paramAsBoolean(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"paramAsColor(String)","u":"paramAsColor(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"paramAsFloat(String, float)","u":"paramAsFloat(java.lang.String,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"parents"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"parseTokens()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"pause()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"pause()"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"peekLine()"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"POOL"},{"p":"com.github.tommyettinger.textra","c":"Line","l":"POOL"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"pushLine()"},{"p":"com.github.tommyettinger.textra.effects","c":"RainbowEffect","l":"RainbowEffect(TypingLabel, String[])","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel,java.lang.String[])"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"regenerateLayout(Layout)","u":"regenerateLayout(com.github.tommyettinger.textra.Layout)"},{"p":"com.github.tommyettinger.textra","c":"TypingConfig","l":"registerEffect(String, String, Class)","u":"registerEffect(java.lang.String,java.lang.String,java.lang.Class)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"remove()"},{"p":"com.github.tommyettinger.textra","c":"TypingAdapter","l":"replaceVariable(String)","u":"replaceVariable(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"TypingListener","l":"replaceVariable(String)","u":"replaceVariable(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"TokenCategory","l":"RESET"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"reset()"},{"p":"com.github.tommyettinger.textra","c":"Line","l":"reset()"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"resizeDistanceField(int, int)","u":"resizeDistanceField(int,int)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"restart()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"restart(String)","u":"restart(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"restoreOriginalText()"},{"p":"com.github.tommyettinger.textra","c":"KnownFonts","l":"resume()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"resume()"},{"p":"com.github.tommyettinger.textra.utils","c":"ColorUtils","l":"rgb2hsl(float, float, float, float)","u":"rgb2hsl(float,float,float,float)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"saveOriginalText(CharSequence)","u":"saveOriginalText(java.lang.CharSequence)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"scale(float, float)","u":"scale(float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"scaleTo(float, float)","u":"scaleTo(float,float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"scaleX"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"scaleY"},{"p":"com.github.tommyettinger.textra","c":"Font.DistanceFieldType","l":"SDF"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"setAlignment(int)"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"setBaseColor(Color)","u":"setBaseColor(com.badlogic.gdx.graphics.Color)"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"setBaseColor(float)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"setColorLookup(ColorLookup)","u":"setColorLookup(com.github.tommyettinger.textra.ColorLookup)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"setDefaultToken(String)","u":"setDefaultToken(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"setEllipsis(String)","u":"setEllipsis(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"setFont(Font)","u":"setFont(com.github.tommyettinger.textra.Font)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"setInLayout(Layout, int, long)","u":"setInLayout(com.github.tommyettinger.textra.Layout,int,long)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"setIntermediateText(CharSequence, boolean, boolean)","u":"setIntermediateText(java.lang.CharSequence,boolean,boolean)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"setInWorkingLayout(int, long)","u":"setInWorkingLayout(int,long)"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"setMaxLines(int)"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"setSize(float, float)","u":"setSize(float,float)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"setSize(float, float)","u":"setSize(float,float)"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"setTargetWidth(float)"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"setText(String)","u":"setText(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"setText(String)","u":"setText(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"setText(String, boolean)","u":"setText(java.lang.String,boolean)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"setText(String, boolean, boolean)","u":"setText(java.lang.String,boolean,boolean)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"setTextureFilter()"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"setTextureFilter(Texture.TextureFilter, Texture.TextureFilter)","u":"setTextureFilter(com.badlogic.gdx.graphics.Texture.TextureFilter,com.badlogic.gdx.graphics.Texture.TextureFilter)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"setTypingListener(TypingListener)","u":"setTypingListener(com.github.tommyettinger.textra.TypingListener)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"setVariable(String, String)","u":"setVariable(java.lang.String,java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"setVariables(Map)","u":"setVariables(java.util.Map)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"setVariables(ObjectMap)","u":"setVariables(com.badlogic.gdx.utils.ObjectMap)"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"setWrap(boolean)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"shader"},{"p":"com.github.tommyettinger.textra.effects","c":"ShakeEffect","l":"ShakeEffect(TypingLabel, String[])","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel,java.lang.String[])"},{"p":"com.github.tommyettinger.textra.effects","c":"SickEffect","l":"SickEffect(TypingLabel, String[])","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel,java.lang.String[])"},{"p":"com.github.tommyettinger.textra","c":"Line","l":"size(float, float)","u":"size(float,float)"},{"p":"com.github.tommyettinger.textra","c":"TokenCategory","l":"SKIP"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"skipToTheEnd()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"skipToTheEnd(boolean)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"skipToTheEnd(boolean, boolean)","u":"skipToTheEnd(boolean,boolean)"},{"p":"com.github.tommyettinger.textra.effects","c":"SlideEffect","l":"SlideEffect(TypingLabel, String[])","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel,java.lang.String[])"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"solidBlock"},{"p":"com.github.tommyettinger.textra","c":"TokenCategory","l":"SPEED"},{"p":"com.github.tommyettinger.textra","c":"Font.DistanceFieldType","l":"STANDARD"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"storedText"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"STRIKETHROUGH"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"SUBSCRIPT"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"SUPERSCRIPT"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"targetWidth"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"TextraLabel()","u":"%3Cinit%3E()"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"TextraLabel(String, Font)","u":"%3Cinit%3E(java.lang.String,com.github.tommyettinger.textra.Font)"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"TextraLabel(String, Font, Color)","u":"%3Cinit%3E(java.lang.String,com.github.tommyettinger.textra.Font,com.badlogic.gdx.graphics.Color)"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"TextraLabel(String, Label.LabelStyle)","u":"%3Cinit%3E(java.lang.String,com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle)"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"TextraLabel(String, Skin)","u":"%3Cinit%3E(java.lang.String,com.badlogic.gdx.scenes.scene2d.ui.Skin)"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"TextraLabel(String, Skin, String)","u":"%3Cinit%3E(java.lang.String,com.badlogic.gdx.scenes.scene2d.ui.Skin,java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"tokenEntries"},{"p":"com.github.tommyettinger.textra","c":"Layout","l":"toString()"},{"p":"com.github.tommyettinger.textra","c":"Line","l":"toString()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"toString()"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"totalTime"},{"p":"com.github.tommyettinger.textra","c":"TypingAdapter","l":"TypingAdapter()","u":"%3Cinit%3E()"},{"p":"com.github.tommyettinger.textra","c":"TypingConfig","l":"TypingConfig()","u":"%3Cinit%3E()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"TypingLabel()","u":"%3Cinit%3E()"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"TypingLabel(String, Font)","u":"%3Cinit%3E(java.lang.String,com.github.tommyettinger.textra.Font)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"TypingLabel(String, Font, Color)","u":"%3Cinit%3E(java.lang.String,com.github.tommyettinger.textra.Font,com.badlogic.gdx.graphics.Color)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"TypingLabel(String, Label.LabelStyle)","u":"%3Cinit%3E(java.lang.String,com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"TypingLabel(String, Skin)","u":"%3Cinit%3E(java.lang.String,com.badlogic.gdx.scenes.scene2d.ui.Skin)"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"TypingLabel(String, Skin, String)","u":"%3Cinit%3E(java.lang.String,com.badlogic.gdx.scenes.scene2d.ui.Skin,java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"UNDERLINE"},{"p":"com.github.tommyettinger.textra","c":"TypingConfig","l":"unregisterEffect(String, String)","u":"unregisterEffect(java.lang.String,java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"Effect","l":"update(float)"},{"p":"com.github.tommyettinger.textra.effects","c":"WindEffect","l":"update(float)"},{"p":"com.github.tommyettinger.textra","c":"Font.DistanceFieldType","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"TokenCategory","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"com.github.tommyettinger.textra","c":"Font.DistanceFieldType","l":"values()"},{"p":"com.github.tommyettinger.textra","c":"TokenCategory","l":"values()"},{"p":"com.github.tommyettinger.textra","c":"TokenCategory","l":"VARIABLE"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"vertexShader"},{"p":"com.github.tommyettinger.textra","c":"TokenCategory","l":"WAIT"},{"p":"com.github.tommyettinger.textra.effects","c":"WaveEffect","l":"WaveEffect(TypingLabel, String[])","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel,java.lang.String[])"},{"p":"com.github.tommyettinger.textra","c":"Line","l":"width"},{"p":"com.github.tommyettinger.textra.effects","c":"WindEffect","l":"WindEffect(TypingLabel, String[])","u":"%3Cinit%3E(com.github.tommyettinger.textra.TypingLabel,java.lang.String[])"},{"p":"com.github.tommyettinger.textra","c":"TypingLabel","l":"workingLayout"},{"p":"com.github.tommyettinger.textra","c":"TextraLabel","l":"wrap"},{"p":"com.github.tommyettinger.textra","c":"Font.GlyphRegion","l":"xAdvance"},{"p":"com.github.tommyettinger.textra","c":"Font","l":"xAdvance(long)"}];updateSearchResults(); \ No newline at end of file diff --git a/docs/apidocs/overview-summary.html b/docs/apidocs/overview-summary.html index 0bff654a..c0e0c346 100644 --- a/docs/apidocs/overview-summary.html +++ b/docs/apidocs/overview-summary.html @@ -1,9 +1,8 @@ - - -textratypist 0.1.5 API + +textratypist 0.1.6 API diff --git a/docs/apidocs/overview-tree.html b/docs/apidocs/overview-tree.html index 5f847266..cb344012 100644 --- a/docs/apidocs/overview-tree.html +++ b/docs/apidocs/overview-tree.html @@ -1,9 +1,8 @@ - - -Class Hierarchy (textratypist 0.1.5 API) + +Class Hierarchy (textratypist 0.1.6 API) @@ -25,27 +24,25 @@
    @@ -61,52 +58,52 @@

    Hierarchy For All Packages

    Class Hierarchy

      -
    • java.lang.Object +
    • java.lang.Object
      • com.badlogic.gdx.scenes.scene2d.Actor
        • com.badlogic.gdx.scenes.scene2d.ui.Widget (implements com.badlogic.gdx.scenes.scene2d.utils.Layout)
      • -
      • com.github.tommyettinger.textra.ColorLookup.GdxColorLookup (implements com.github.tommyettinger.textra.ColorLookup)
      • -
      • com.github.tommyettinger.textra.utils.ColorUtils
      • -
      • com.github.tommyettinger.textra.Effect +
      • com.github.tommyettinger.textra.ColorLookup.GdxColorLookup (implements com.github.tommyettinger.textra.ColorLookup)
      • +
      • com.github.tommyettinger.textra.utils.ColorUtils
      • +
      • com.github.tommyettinger.textra.Effect
      • -
      • com.github.tommyettinger.textra.Font (implements com.badlogic.gdx.utils.Disposable)
      • -
      • com.github.tommyettinger.textra.KnownFonts (implements com.badlogic.gdx.LifecycleListener)
      • -
      • com.github.tommyettinger.textra.Layout (implements com.badlogic.gdx.utils.Pool.Poolable)
      • -
      • com.github.tommyettinger.textra.Line (implements com.badlogic.gdx.utils.Pool.Poolable)
      • -
      • com.github.tommyettinger.textra.utils.NoiseUtils
      • +
      • com.github.tommyettinger.textra.Font (implements com.badlogic.gdx.utils.Disposable)
      • +
      • com.github.tommyettinger.textra.KnownFonts (implements com.badlogic.gdx.LifecycleListener)
      • +
      • com.github.tommyettinger.textra.Layout (implements com.badlogic.gdx.utils.Pool.Poolable)
      • +
      • com.github.tommyettinger.textra.Line (implements com.badlogic.gdx.utils.Pool.Poolable)
      • +
      • com.github.tommyettinger.textra.utils.NoiseUtils
      • com.badlogic.gdx.graphics.g2d.TextureRegion
      • -
      • com.github.tommyettinger.textra.TypingAdapter (implements com.github.tommyettinger.textra.TypingListener)
      • -
      • com.github.tommyettinger.textra.TypingConfig
      • +
      • com.github.tommyettinger.textra.TypingAdapter (implements com.github.tommyettinger.textra.TypingListener)
      • +
      • com.github.tommyettinger.textra.TypingConfig
    @@ -114,19 +111,19 @@

    Class Hierarchy

    Interface Hierarchy

    Enum Class Hierarchy

      -
    • java.lang.Object +
    • java.lang.Object diff --git a/docs/apidocs/search.js b/docs/apidocs/search.js index 2c2ced05..db3b2f4a 100644 --- a/docs/apidocs/search.js +++ b/docs/apidocs/search.js @@ -98,8 +98,8 @@ function createMatcher(pattern, flags) { } var watermark = 'Search'; $(function() { - var search = $("#search"); - var reset = $("#reset"); + var search = $("#search-input"); + var reset = $("#reset-button"); search.val(''); search.prop("disabled", false); reset.prop("disabled", false); @@ -258,7 +258,7 @@ function doSearch(request, response) { function searchIndex(indexArray, category, nameFunc) { var primaryResults = searchIndexWithMatcher(indexArray, camelCaseMatcher, category, nameFunc); result = result.concat(primaryResults); - if (primaryResults.length <= MIN_RESULTS && camelCaseMatcher.flags.indexOf("i") === -1) { + if (primaryResults.length <= MIN_RESULTS && !camelCaseMatcher.ignoreCase) { var secondaryResults = searchIndexWithMatcher(indexArray, fallbackMatcher, category, nameFunc); result = result.concat(secondaryResults.filter(function (item) { return primaryResults.indexOf(item) === -1; @@ -291,7 +291,7 @@ function doSearch(request, response) { response(result); } $(function() { - $("#search").catcomplete({ + $("#search-input").catcomplete({ minLength: 1, delay: 300, source: doSearch, @@ -299,7 +299,7 @@ $(function() { if (!ui.content.length) { ui.content.push(noResult); } else { - $("#search").empty(); + $("#search-input").empty(); } }, autoFocus: true, @@ -347,7 +347,7 @@ $(function() { } else { window.location.href = pathtoroot + url; } - $("#search").focus(); + $("#search-input").focus(); } } }); diff --git a/docs/apidocs/stylesheet.css b/docs/apidocs/stylesheet.css index 932e56cd..836c62da 100644 --- a/docs/apidocs/stylesheet.css +++ b/docs/apidocs/stylesheet.css @@ -54,19 +54,22 @@ h3 { font-size:16px; } h4 { - font-size:13px; + font-size:15px; } h5 { - font-size:12px; + font-size:14px; } h6 { - font-size:11px; + font-size:13px; } ul { list-style-type:disc; } code, tt { font-family:'DejaVu Sans Mono', monospace; +} +:not(h1, h2, h3, h4, h5, h6) > code, +:not(h1, h2, h3, h4, h5, h6) > tt { font-size:14px; padding-top:4px; margin-top:8px; @@ -281,7 +284,7 @@ dl.notes > dt { color:#4E4E4E; } dl.notes > dd { - margin:5px 0 10px 0; + margin:5px 10px 10px 0; font-size:14px; font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; } @@ -332,17 +335,27 @@ ul.summary-list > li { margin-top:0; margin-bottom:1px; } +ul.see-list, ul.see-list-long { + padding-left: 0; + list-style: none; +} +ul.see-list li { + display: inline; +} +ul.see-list li:not(:last-child):after, +ul.see-list-long li:not(:last-child):after { + content: ", "; + white-space: pre-wrap; +} /* * Styles for tables. */ -.summary-table { +.summary-table, .details-table { width:100%; border-spacing:0; border-left:1px solid #EEE; border-right:1px solid #EEE; border-bottom:1px solid #EEE; -} -.summary-table { padding:0; } .caption { @@ -353,10 +366,10 @@ ul.summary-list > li { font-weight:bold; clear:none; overflow:hidden; - padding:0px; + padding:0; padding-top:10px; padding-left:1px; - margin:0px; + margin:0; white-space:pre; } .caption a:link, .caption a:visited { @@ -378,7 +391,10 @@ ul.summary-list > li { border: none; height:16px; } - +div.table-tabs { + padding:10px 0 0 1px; + margin:0; +} div.table-tabs > button { border: none; cursor: pointer; @@ -427,11 +443,11 @@ div.table-tabs > button.table-tab { grid-template-columns: minmax(15%, max-content) minmax(15%, auto); } } -.summary-table > div { +.summary-table > div, .details-table > div { text-align:left; padding: 8px 3px 3px 7px; } -.col-first, .col-second, .col-last, .col-constructor-name, .col-deprecated-item-name { +.col-first, .col-second, .col-last, .col-constructor-name, .col-summary-item-name { vertical-align:top; padding-right:0; padding-top:8px; @@ -444,7 +460,7 @@ div.table-tabs > button.table-tab { .col-first, .col-first { font-size:13px; } -.col-second, .col-second, .col-last, .col-constructor-name, .col-deprecated-item-name, .col-last { +.col-second, .col-second, .col-last, .col-constructor-name, .col-summary-item-name, .col-last { font-size:13px; } .col-first, .col-second, .col-constructor-name { @@ -459,7 +475,7 @@ div.table-tabs > button.table-tab { .col-first a:link, .col-first a:visited, .col-second a:link, .col-second a:visited, .col-constructor-name a:link, .col-constructor-name a:visited, -.col-deprecated-item-name a:link, .col-deprecated-item-name a:visited, +.col-summary-item-name a:link, .col-summary-item-name a:visited, .constant-values-container a:link, .constant-values-container a:visited, .all-classes-container a:link, .all-classes-container a:visited, .all-packages-container a:link, .all-packages-container a:visited { @@ -534,10 +550,10 @@ h1.hidden { } .deprecated-label, .descfrm-type-label, .implementation-label, .member-name-label, .member-name-link, .module-label-in-package, .module-label-in-type, .override-specify-label, .package-label-in-type, -.package-hierarchy-label, .type-name-label, .type-name-link, .search-tag-link { +.package-hierarchy-label, .type-name-label, .type-name-link, .search-tag-link, .preview-label { font-weight:bold; } -.deprecation-comment, .help-footnote, .interface-name { +.deprecation-comment, .help-footnote, .preview-comment { font-style:italic; } .deprecation-block { @@ -551,8 +567,18 @@ h1.hidden { margin-right:10px; display:inline-block; } -div.block div.deprecation-comment, div.block div.block span.emphasized-phrase, -div.block div.block span.interface-name { +.preview-block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; + border-style:solid; + border-width:thin; + border-radius:10px; + padding:10px; + margin-bottom:10px; + margin-right:10px; + display:inline-block; +} +div.block div.deprecation-comment { font-style:normal; } /* @@ -594,7 +620,7 @@ ul.ui-autocomplete li { .result-highlight { font-weight:bold; } -#search { +#search-input { background-image:url('resources/glass.png'); background-size:13px; background-repeat:no-repeat; @@ -604,7 +630,7 @@ ul.ui-autocomplete li { right:-18px; width:400px; } -#reset { +#reset-button { background-color: rgb(255,255,255); background-image:url('resources/x.png'); background-position:center; @@ -644,7 +670,7 @@ ul.ui-autocomplete li { .inherited-list { margin: 10px 0 10px 0; } -section.description { +section.class-description { line-height: 1.4; } .summary section[class$="-summary"], .details section[class$="-details"], @@ -664,6 +690,18 @@ section.description { ul.help-section-list { margin: 0; } +ul.help-subtoc > li { + display: inline-block; + padding-right: 5px; + font-size: smaller; +} +ul.help-subtoc > li::before { + content: "\2022" ; + padding-right:2px; +} +span.help-note { + font-style: italic; +} /* * Indicator icon for external links. */ @@ -772,12 +810,12 @@ table.striped > tbody > tr > th { * Tweak font sizes and paddings for small screens. */ @media screen and (max-width: 1050px) { - #search { + #search-input { width: 300px; } } @media screen and (max-width: 800px) { - #search { + #search-input { width: 200px; } .top-nav, @@ -810,7 +848,7 @@ table.striped > tbody > tr > th { } } @media screen and (max-width: 500px) { - #search { + #search-input { width: 150px; } .top-nav, diff --git a/docs/apidocs/type-search-index.js b/docs/apidocs/type-search-index.js index 865542fb..82a65284 100644 --- a/docs/apidocs/type-search-index.js +++ b/docs/apidocs/type-search-index.js @@ -1 +1 @@ -typeSearchIndex = [{"l":"All Classes","u":"allclasses-index.html"},{"p":"com.github.tommyettinger.textra.effects","l":"BlinkEffect"},{"p":"com.github.tommyettinger.textra","l":"ColorLookup"},{"p":"com.github.tommyettinger.textra.utils","l":"ColorUtils"},{"p":"com.github.tommyettinger.textra","l":"Font.DistanceFieldType"},{"p":"com.github.tommyettinger.textra.effects","l":"EaseEffect"},{"p":"com.github.tommyettinger.textra","l":"Effect"},{"p":"com.github.tommyettinger.textra.effects","l":"FadeEffect"},{"p":"com.github.tommyettinger.textra","l":"Font"},{"p":"com.github.tommyettinger.textra","l":"ColorLookup.GdxColorLookup"},{"p":"com.github.tommyettinger.textra","l":"Font.GlyphRegion"},{"p":"com.github.tommyettinger.textra.effects","l":"GradientEffect"},{"p":"com.github.tommyettinger.textra.effects","l":"HangEffect"},{"p":"com.github.tommyettinger.textra.effects","l":"JoltEffect"},{"p":"com.github.tommyettinger.textra.effects","l":"JumpEffect"},{"p":"com.github.tommyettinger.textra","l":"KnownFonts"},{"p":"com.github.tommyettinger.textra","l":"Layout"},{"p":"com.github.tommyettinger.textra","l":"Line"},{"p":"com.github.tommyettinger.textra.utils","l":"NoiseUtils"},{"p":"com.github.tommyettinger.textra.effects","l":"RainbowEffect"},{"p":"com.github.tommyettinger.textra.effects","l":"ShakeEffect"},{"p":"com.github.tommyettinger.textra.effects","l":"SickEffect"},{"p":"com.github.tommyettinger.textra.effects","l":"SlideEffect"},{"p":"com.github.tommyettinger.textra","l":"TextraLabel"},{"p":"com.github.tommyettinger.textra","l":"TokenCategory"},{"p":"com.github.tommyettinger.textra","l":"TypingAdapter"},{"p":"com.github.tommyettinger.textra","l":"TypingConfig"},{"p":"com.github.tommyettinger.textra","l":"TypingLabel"},{"p":"com.github.tommyettinger.textra","l":"TypingListener"},{"p":"com.github.tommyettinger.textra.effects","l":"WaveEffect"},{"p":"com.github.tommyettinger.textra.effects","l":"WindEffect"}];updateSearchResults(); \ No newline at end of file +typeSearchIndex = [{"l":"All Classes and Interfaces","u":"allclasses-index.html"},{"p":"com.github.tommyettinger.textra.effects","l":"BlinkEffect"},{"p":"com.github.tommyettinger.textra","l":"ColorLookup"},{"p":"com.github.tommyettinger.textra.utils","l":"ColorUtils"},{"p":"com.github.tommyettinger.textra","l":"Font.DistanceFieldType"},{"p":"com.github.tommyettinger.textra.effects","l":"EaseEffect"},{"p":"com.github.tommyettinger.textra","l":"Effect"},{"p":"com.github.tommyettinger.textra.effects","l":"FadeEffect"},{"p":"com.github.tommyettinger.textra","l":"Font"},{"p":"com.github.tommyettinger.textra","l":"ColorLookup.GdxColorLookup"},{"p":"com.github.tommyettinger.textra","l":"Font.GlyphRegion"},{"p":"com.github.tommyettinger.textra.effects","l":"GradientEffect"},{"p":"com.github.tommyettinger.textra.effects","l":"HangEffect"},{"p":"com.github.tommyettinger.textra.effects","l":"JoltEffect"},{"p":"com.github.tommyettinger.textra.effects","l":"JumpEffect"},{"p":"com.github.tommyettinger.textra","l":"KnownFonts"},{"p":"com.github.tommyettinger.textra","l":"Layout"},{"p":"com.github.tommyettinger.textra","l":"Line"},{"p":"com.github.tommyettinger.textra.utils","l":"NoiseUtils"},{"p":"com.github.tommyettinger.textra.effects","l":"RainbowEffect"},{"p":"com.github.tommyettinger.textra.effects","l":"ShakeEffect"},{"p":"com.github.tommyettinger.textra.effects","l":"SickEffect"},{"p":"com.github.tommyettinger.textra.effects","l":"SlideEffect"},{"p":"com.github.tommyettinger.textra","l":"TextraLabel"},{"p":"com.github.tommyettinger.textra","l":"TokenCategory"},{"p":"com.github.tommyettinger.textra","l":"TypingAdapter"},{"p":"com.github.tommyettinger.textra","l":"TypingConfig"},{"p":"com.github.tommyettinger.textra","l":"TypingLabel"},{"p":"com.github.tommyettinger.textra","l":"TypingListener"},{"p":"com.github.tommyettinger.textra.effects","l":"WaveEffect"},{"p":"com.github.tommyettinger.textra.effects","l":"WindEffect"}];updateSearchResults(); \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 73b58b7f..78036c50 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ regexodusVersion=0.1.13 GROUP=com.github.tommyettinger POM_ARTIFACT_ID=textratypist -VERSION_NAME=0.1.6-SNAPSHOT +VERSION_NAME=0.1.6 POM_NAME=textratypist POM_DESCRIPTION=A text-display library centered around a label that prints over time, with both effects and styles. diff --git a/jitpack.yml b/jitpack.yml index f360b0a1..da9cb012 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -1,5 +1,5 @@ jdk: - - openjdk16 + - openjdk17 install: - echo "Installing with Gradle" - chmod 755 gradlew diff --git a/src/main/java/com/github/tommyettinger/textra/KnownFonts.java b/src/main/java/com/github/tommyettinger/textra/KnownFonts.java index 5eee97f6..e44510b9 100644 --- a/src/main/java/com/github/tommyettinger/textra/KnownFonts.java +++ b/src/main/java/com/github/tommyettinger/textra/KnownFonts.java @@ -329,8 +329,9 @@ public static Font getIosevkaSlab() private Font gentium; /** * Returns a Font already configured to use a variable-width serif font with excellent Unicode support, that should - * scale cleanly to even very large sizes (using an SDF technique). - * Caches the result for later calls. The font used is Gentium, an open-source (SIL Open Font + * scale cleanly to even very large sizes (using an SDF technique). You usually will want to reduce the line height + * of this Font after you scale it; using {@code KnownFonts.getGentium().scaleTo(55, 45).adjustLineHeight(0.8f)} + * usually works. Caches the result for later calls. The font used is Gentium, an open-source (SIL Open Font * License) typeface by SIL (see https://software.sil.org/gentium/ ). It supports a lot of glyphs, including quite a * bit of extended Latin, Greek, and Cyrillic, as well as some less-common glyphs from various real languages. This * uses the Signed Distance Field (SDF) technique, which may be slightly fuzzy when zoomed in heavily, but should be @@ -352,7 +353,7 @@ public static Font getGentium() if(instance.gentium == null) { try { - instance.gentium = new Font("Gentium-sdf.fnt", "Gentium-sdf.png", SDF, 0f, 5f, 0f, -5f).adjustLineHeight(0.8f); + instance.gentium = new Font("Gentium-sdf.fnt", "Gentium-sdf.png", SDF, 0f, 5f, 0f, -5f); } catch (Exception e) { e.printStackTrace(); } diff --git a/src/test/java/com/github/tommyettinger/textra/FontTest.java b/src/test/java/com/github/tommyettinger/textra/FontTest.java index 97fa42ab..b174ee9b 100644 --- a/src/test/java/com/github/tommyettinger/textra/FontTest.java +++ b/src/test/java/com/github/tommyettinger/textra/FontTest.java @@ -48,8 +48,8 @@ public void create() { // .scale(0.25f, 0.25f).setTextureFilter(Texture.TextureFilter.MipMapLinearNearest, Texture.TextureFilter.MipMapLinearNearest); // font = KnownFonts.getLibertinusSerif().scaleTo(165, 40); // font = KnownFonts.getCozette().scale(2, 2); -// font = KnownFonts.getGentium().scaleTo(55, 40); - font = KnownFonts.getAStarry(); + font = KnownFonts.getGentium().scaleTo(55, 45).adjustLineHeight(0.8f); +// font = KnownFonts.getAStarry(); // font = KnownFonts.getIosevkaSlab().scaleTo(12, 28); // font = KnownFonts.getInconsolataLGC().scaleTo(12, 40); // font = KnownFonts.getIosevka().scaleTo(12, 40);