Index
All Classes|All Packages|Constant Field Values
A
- act(float) - Method in class com.github.tommyettinger.textra.TypingLabel
- add(long) - Method in class com.github.tommyettinger.textra.Layout
-
Adds a
longglyph as processed byFontto store color and style info with the char. - adjustLineHeight(float) - Method in class com.github.tommyettinger.textra.Font
-
Multiplies the line height by
multiplierwithout changing the size of any characters. - align - Variable in class com.github.tommyettinger.textra.TextraLabel
- appendInto(StringBuilder) - Method in class com.github.tommyettinger.textra.Layout
-
Primarily used by
Layout.toString(), but can be useful if you want to append many Layouts into a StringBuilder. - appendTo(StringBuilder) - Method in class com.github.tommyettinger.textra.Line
- apply(long, int, float) - Method in class com.github.tommyettinger.textra.Effect
-
Applies the effect to the given glyph.
- atLimit - Variable in class com.github.tommyettinger.textra.Layout
B
- baseColor - Variable in class com.github.tommyettinger.textra.Layout
- BlinkEffect - Class in com.github.tommyettinger.textra.effects
-
Blinks the entire text in two different colors at once, without interpolation.
- BlinkEffect(TypingLabel, String[]) - Constructor for class com.github.tommyettinger.textra.effects.BlinkEffect
- BOLD - Static variable in class com.github.tommyettinger.textra.Font
C
- calculateFadeout() - Method in class com.github.tommyettinger.textra.Effect
-
Calculates the fadeout of this effect, if any.
- calculateProgress(float) - Method in class com.github.tommyettinger.textra.Effect
-
Calculates a linear progress dividing the total time by the given modifier.
- calculateProgress(float, float) - Method in class com.github.tommyettinger.textra.Effect
-
Calculates a linear progress dividing the total time by the given modifier.
- calculateProgress(float, float, boolean) - Method in class com.github.tommyettinger.textra.Effect
-
Calculates a linear progress dividing the total time by the given modifier.
- cancelSkipping() - Method in class com.github.tommyettinger.textra.TypingLabel
-
Cancels calls to
TypingLabel.skipToTheEnd(). - cellHeight - Variable in class com.github.tommyettinger.textra.Font
-
Refers to the largest height of any glyph in the font, after scaling.
- cellWidth - Variable in class com.github.tommyettinger.textra.Font
-
Only actually refers to a "cell" when
Font.isMonois true; otherwise refers to the largest width of any glyph in the font, after scaling. - CHAR_LIMIT_PER_FRAME - Static variable in class com.github.tommyettinger.textra.TypingConfig
-
Defines how many chars can appear per frame.
- clear() - Method in class com.github.tommyettinger.textra.Layout
- clearVariables() - Method in class com.github.tommyettinger.textra.TypingLabel
-
Removes all variables from this label.
- COLOR - Enum constant in enum class com.github.tommyettinger.textra.TokenCategory
- colorLookup - Variable in class com.github.tommyettinger.textra.Font
-
Determines how colors are looked up by name; defaults to using
Colors. - ColorLookup - Interface in com.github.tommyettinger.textra
-
Allows looking up an RGBA8888 Integer color given a String key, returning either the color or null if none was found.
- ColorLookup.GdxColorLookup - Class in com.github.tommyettinger.textra
-
The default ColorLookup, this simply looks up
keyinColors, returning null if no Color exists by that exact name (case-sensitive), or returning the RGBA8888 value of the color otherwise. - ColorUtils - Class in com.github.tommyettinger.textra.utils
-
Just has methods to convert from HSL colors to RGB and back again, for hue-changing effects mainly.
- ColorUtils() - Constructor for class com.github.tommyettinger.textra.utils.ColorUtils
- com.github.tommyettinger.textra - package com.github.tommyettinger.textra
-
Contains the core of the library, such as the TypingLabel and Font classes.
- com.github.tommyettinger.textra.effects - package com.github.tommyettinger.textra.effects
-
Contains the various effects that can be applied to text in a TypingLabel.
- com.github.tommyettinger.textra.utils - package com.github.tommyettinger.textra.utils
-
Contains miscellaneous support code; currently this covers 1D noise and color editing.
D
- DEFAULT_CLEAR_COLOR - Static variable in class com.github.tommyettinger.textra.TypingConfig
-
Default color for the
CLEARCOLORtoken. - DEFAULT_SPEED_PER_CHAR - Static variable in class com.github.tommyettinger.textra.TypingConfig
-
Time in seconds that takes for each char to appear in the default speed.
- DEFAULT_WAIT_VALUE - Static variable in class com.github.tommyettinger.textra.TypingConfig
-
Default time in seconds that an empty
WAITtoken should wait for. - defaultValue - Variable in class com.github.tommyettinger.textra.Font
- dispose() - Method in class com.github.tommyettinger.textra.Font
-
Releases all resources of this object.
- dispose() - Method in class com.github.tommyettinger.textra.KnownFonts
- distance - Variable in class com.github.tommyettinger.textra.effects.SickEffect
- distanceField - Variable in class com.github.tommyettinger.textra.Font
- distanceFieldCrispness - Variable in class com.github.tommyettinger.textra.Font
-
When
Font.distanceFieldisFont.DistanceFieldType.SDForFont.DistanceFieldType.MSDF, this determines how much the edges of the glyphs should be aliased sharply (higher values) or anti-aliased softly (lower values). - draw(Batch, float) - Method in class com.github.tommyettinger.textra.TextraLabel
- draw(Batch, float) - Method in class com.github.tommyettinger.textra.TypingLabel
-
If your font uses
Font.DistanceFieldType.SDForFont.DistanceFieldType.MSDF, then this has to do some extra work to use the appropriate shader. - drawBlocks(Batch, char, int[][], float, float) - Method in class com.github.tommyettinger.textra.Font
-
Draws a grid made of rectangular blocks of int colors (typically RGBA) at the given x,y position in world space.
- drawBlocks(Batch, int[][], float, float) - Method in class com.github.tommyettinger.textra.Font
-
Draws a grid made of rectangular blocks of int colors (typically RGBA) at the given x,y position in world space.
- drawGlyph(Batch, long, float, float) - Method in class com.github.tommyettinger.textra.Font
-
Draws the specified glyph with a Batch at the given x, y position.
- drawGlyph(Batch, long, float, float, float) - Method in class com.github.tommyettinger.textra.Font
-
Draws the specified glyph with a Batch at the given x, y position and with the specified counterclockwise rotation, measured in degrees.
- drawGlyphs(Batch, Layout, float, float) - Method in class com.github.tommyettinger.textra.Font
-
Draws the specified Layout of glyphs with a Batch at a given x, y position, drawing the full layout.
- drawGlyphs(Batch, Layout, float, float, int) - Method in class com.github.tommyettinger.textra.Font
-
Draws the specified Layout of glyphs with a Batch at a given x, y position, using
alignto determine how to position the text. - drawGlyphs(Batch, Line, float, float) - Method in class com.github.tommyettinger.textra.Font
-
Draws the specified Line of glyphs with a Batch at a given x, y position, drawing the full Line using left alignment.
- drawGlyphs(Batch, Line, float, float, int) - Method in class com.github.tommyettinger.textra.Font
-
Draws the specified Line of glyphs with a Batch at a given x, y position, using
alignto determine how to position the text. - drawMarkupText(Batch, String, float, float) - Method in class com.github.tommyettinger.textra.Font
-
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 CharSequence.
- drawText(Batch, CharSequence, float, float) - Method in class com.github.tommyettinger.textra.Font
-
Draws the specified text at the given x,y position (in world space) with a white foreground.
- drawText(Batch, CharSequence, float, float, int) - Method in class com.github.tommyettinger.textra.Font
-
Draws the specified text at the given x,y position (in world space) with the given foreground color.
- duration - Variable in class com.github.tommyettinger.textra.Effect
E
- EaseEffect - Class in com.github.tommyettinger.textra.effects
-
Moves the text vertically easing it into the final position.
- EaseEffect(TypingLabel, String[]) - Constructor for class com.github.tommyettinger.textra.effects.EaseEffect
- Effect - Class in com.github.tommyettinger.textra
-
Abstract text effect.
- Effect(TypingLabel) - Constructor for class com.github.tommyettinger.textra.Effect
- EFFECT_END - Enum constant in enum class com.github.tommyettinger.textra.TokenCategory
- EFFECT_START - Enum constant in enum class com.github.tommyettinger.textra.TokenCategory
- ellipsis - Variable in class com.github.tommyettinger.textra.Layout
- enableShader(Batch) - Method in class com.github.tommyettinger.textra.Font
-
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.
- end() - Method in class com.github.tommyettinger.textra.TypingAdapter
- end() - Method in interface com.github.tommyettinger.textra.TypingListener
-
Called when the char progression reaches the end.
- event(String) - Method in class com.github.tommyettinger.textra.TypingAdapter
- event(String) - Method in interface com.github.tommyettinger.textra.TypingListener
-
Called each time an
EVENTtoken is processed. - EVENT - Enum constant in enum class com.github.tommyettinger.textra.TokenCategory
F
- FadeEffect - Class in com.github.tommyettinger.textra.effects
-
Fades the text's color from between colors or alphas.
- FadeEffect(TypingLabel, String[]) - Constructor for class com.github.tommyettinger.textra.effects.FadeEffect
- flip(boolean, boolean) - Method in class com.github.tommyettinger.textra.Font.GlyphRegion
-
Flips the region, adjusting the offset so the image appears to be flipped as if no whitespace has been removed for packing.
- font - Variable in class com.github.tommyettinger.textra.Layout
- font - Variable in class com.github.tommyettinger.textra.TextraLabel
- font(Font) - Method in class com.github.tommyettinger.textra.Layout
-
One of the ways to set the font on a Layout; this one returns this Layout for chaining.
- Font - Class in com.github.tommyettinger.textra
-
A replacement for libGDX's BitmapFont class, supporting additional markup to allow styling text with various effects.
- Font(BitmapFont, float, float, float, float) - Constructor for class com.github.tommyettinger.textra.Font
-
Constructs a new Font from the existing BitmapFont, using its same Textures and TextureRegions for glyphs, and without a distance field effect.
- Font(BitmapFont, Font.DistanceFieldType, float, float, float, float) - Constructor for class com.github.tommyettinger.textra.Font
-
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) - Constructor for class com.github.tommyettinger.textra.Font
-
Copy constructor; does not copy the font's
Font.shaderorFont.colorLookup, if it has them (it uses the same reference for the new Font), but will fully copy everything else. - Font(String) - Constructor for class com.github.tommyettinger.textra.Font
-
Constructs a Font by reading in the given .fnt file and loading any images it specifies.
- Font(String, float, float, float, float) - Constructor for class com.github.tommyettinger.textra.Font
-
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.
- Font(String, TextureRegion, float, float, float, float) - Constructor for class com.github.tommyettinger.textra.Font
-
Constructs a font using the given TextureRegion that holds all of its glyphs, with no distance field effect.
- Font(String, TextureRegion, Font.DistanceFieldType, float, float, float, float) - Constructor for class com.github.tommyettinger.textra.Font
-
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, Array<TextureRegion>, float, float, float, float) - Constructor for class com.github.tommyettinger.textra.Font
-
Constructs a font based off of an AngelCode BMFont .fnt file and the given TextureRegion Array, with no distance field effect.
- Font(String, Array<TextureRegion>, Font.DistanceFieldType, float, float, float, float) - Constructor for class com.github.tommyettinger.textra.Font
-
Constructs a font based off of an AngelCode BMFont .fnt file, with the given TextureRegion Array and specified distance field effect.
- Font(String, Font.DistanceFieldType) - Constructor for class com.github.tommyettinger.textra.Font
-
Constructs a Font by reading in the given .fnt file and loading any images it specifies.
- Font(String, Font.DistanceFieldType, float, float, float, float) - Constructor for class com.github.tommyettinger.textra.Font
-
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.
- Font(String, String) - Constructor for class com.github.tommyettinger.textra.Font
-
Constructs a Font by reading in the given .fnt file and the given Texture by filename.
- Font(String, String, float, float, float, float) - Constructor for class com.github.tommyettinger.textra.Font
-
Constructs a new Font by reading in a Texture from the given named path (internal is tried, then classpath), and no distance field effect.
- Font(String, String, Font.DistanceFieldType) - Constructor for class com.github.tommyettinger.textra.Font
-
Constructs a Font by reading in the given .fnt file and the given Texture by filename.
- Font(String, String, Font.DistanceFieldType, float, float, float, float) - Constructor for class com.github.tommyettinger.textra.Font
-
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.
- Font.DistanceFieldType - Enum Class in com.github.tommyettinger.textra
-
Defines what types of distance field font this can use and render.
- Font.GlyphRegion - Class in com.github.tommyettinger.textra
-
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.
G
- getAlignment() - Method in class com.github.tommyettinger.textra.TextraLabel
-
Gets the alignment for the text in this TextraLabel.
- getAStarry() - Static method in class com.github.tommyettinger.textra.KnownFonts
-
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.
- getBaseColor() - Method in class com.github.tommyettinger.textra.Layout
-
Gets the base color of the Layout, as the float bits of a Color.
- getCanada() - Static method in class com.github.tommyettinger.textra.KnownFonts
-
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.
- getCascadiaMono() - Static method in class com.github.tommyettinger.textra.KnownFonts
-
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).
- getClearColor() - Method in class com.github.tommyettinger.textra.TypingLabel
-
Returns a
Colorinstance with the color to be used onCLEARCOLORtokens. - getColorLookup() - Method in class com.github.tommyettinger.textra.Font
-
Gets the ColorLookup this uses to look up colors by name.
- getCozette() - Static method in class com.github.tommyettinger.textra.KnownFonts
-
Returns a Font configured to use a cozy fixed-width bitmap font, Cozette by slavfox.
- getDefaultToken() - Method in class com.github.tommyettinger.textra.TypingLabel
-
Returns the default token being used in this label.
- getDejaVuSansMono() - Static method in class com.github.tommyettinger.textra.KnownFonts
-
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.
- getEllipsis() - Method in class com.github.tommyettinger.textra.Layout
-
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.
- getFont() - Method in class com.github.tommyettinger.textra.Layout
- getFromIntermediate(int) - Method in class com.github.tommyettinger.textra.TypingLabel
- getGentium() - Static method in class com.github.tommyettinger.textra.KnownFonts
-
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).
- getHeight() - Method in class com.github.tommyettinger.textra.Layout
- getInconsolataLGC() - Static method in class com.github.tommyettinger.textra.KnownFonts
-
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).
- getInLayout(Layout, int) - Method in class com.github.tommyettinger.textra.TypingLabel
- getIntermediateText() - Method in class com.github.tommyettinger.textra.TypingLabel
- getIosevka() - Static method in class com.github.tommyettinger.textra.KnownFonts
-
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).
- getIosevkaSlab() - Static method in class com.github.tommyettinger.textra.KnownFonts
-
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).
- getKingthingsFoundation() - Static method in class com.github.tommyettinger.textra.KnownFonts
-
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.
- getLibertinusSerif() - Static method in class com.github.tommyettinger.textra.KnownFonts
-
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).
- getLine(int) - Method in class com.github.tommyettinger.textra.Layout
-
Gets a Line from this by its index.
- getLineHeight() - Method in class com.github.tommyettinger.textra.Effect
-
Returns the line height of the label controlling this effect.
- getMaxLines() - Method in class com.github.tommyettinger.textra.Layout
-
The maximum number of
Lines this Layout can contain. - getOpenSans() - Static method in class com.github.tommyettinger.textra.KnownFonts
-
Returns a Font configured to use a clean variable-width font, Open Sans.
- getOriginalText() - Method in class com.github.tommyettinger.textra.TypingLabel
-
Similar to
Layout.toString(), but returns the original text with all the tokens unchanged. - getOxanium() - Static method in class com.github.tommyettinger.textra.KnownFonts
-
Returns a Font already configured to use a variable-width "science-fiction/high-tech" font, that should scale pretty well down, but not up.
- getPrefHeight() - Method in class com.github.tommyettinger.textra.TextraLabel
- getPrefHeight() - Method in class com.github.tommyettinger.textra.TypingLabel
- getPrefWidth() - Method in class com.github.tommyettinger.textra.TextraLabel
- getPrefWidth() - Method in class com.github.tommyettinger.textra.TypingLabel
- getRgba(String) - Method in class com.github.tommyettinger.textra.ColorLookup.GdxColorLookup
- getRgba(String) - Method in interface com.github.tommyettinger.textra.ColorLookup
-
Uses
keyto look up an RGBA8888 color, and returns that color as an Integer if one was found, or returns null if none was found. - getRobotoCondensed() - Static method in class com.github.tommyettinger.textra.KnownFonts
-
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.
- getTargetWidth() - Method in class com.github.tommyettinger.textra.Layout
- getTypingListener() - Method in class com.github.tommyettinger.textra.TypingLabel
-
Returns the
TypingListenerassociated with this label. - getVariables() - Method in class com.github.tommyettinger.textra.TypingLabel
-
Returns an
ObjectMapwith all the variable names and their respective replacement values. - getWidth() - Method in class com.github.tommyettinger.textra.Layout
- getYanoneKaffeesatz() - Static method in class com.github.tommyettinger.textra.KnownFonts
-
Returns a Font already configured to use a variable-width, narrow, humanist font, that should scale pretty well down, but not up.
- GLOBAL_VARS - Static variable in class com.github.tommyettinger.textra.TypingConfig
-
Map of global variables that affect all
TypingLabelinstances at once. - GlyphRegion(TextureRegion, int, int, int, int) - Constructor for class com.github.tommyettinger.textra.Font.GlyphRegion
-
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.
- GlyphRegion(Font.GlyphRegion) - Constructor for class com.github.tommyettinger.textra.Font.GlyphRegion
-
Copies another GlyphRegion.
- glyphs - Variable in class com.github.tommyettinger.textra.Line
- GradientEffect - Class in com.github.tommyettinger.textra.effects
-
Tints the text in a gradient pattern.
- GradientEffect(TypingLabel, String[]) - Constructor for class com.github.tommyettinger.textra.effects.GradientEffect
H
- HangEffect - Class in com.github.tommyettinger.textra.effects
-
Hangs the text in midair and suddenly drops it.
- HangEffect(TypingLabel, String[]) - Constructor for class com.github.tommyettinger.textra.effects.HangEffect
- hasEnded() - Method in class com.github.tommyettinger.textra.TypingLabel
-
Returns whether or not this label's char progression has ended.
- height - Variable in class com.github.tommyettinger.textra.Line
- hsl2rgb(float, float, float, float) - Static method in class com.github.tommyettinger.textra.utils.ColorUtils
-
Converts the four HSLA components, each in the 0.0 to 1.0 range, to an int in RGBA8888 format.
I
- indexEnd - Variable in class com.github.tommyettinger.textra.Effect
- indexStart - Variable in class com.github.tommyettinger.textra.Effect
- insertLine(int) - Method in class com.github.tommyettinger.textra.Layout
- INSTANCE - Static variable in class com.github.tommyettinger.textra.ColorLookup.GdxColorLookup
-
The only way to access a GdxColorLookup.
- intensity - Variable in class com.github.tommyettinger.textra.effects.SickEffect
- INTERVAL_MULTIPLIERS_BY_CHAR - Static variable in class com.github.tommyettinger.textra.TypingConfig
-
Returns a map of characters and their respective interval multipliers, of which the interval to the next char should be multiplied for.
- isFinished() - Method in class com.github.tommyettinger.textra.Effect
-
Returns whether or not this effect is finished and should be removed.
- isLowerCase(char) - Static method in class com.github.tommyettinger.textra.Font
-
Returns true if
cis a lower-case letter, or false otherwise. - isMono - Variable in class com.github.tommyettinger.textra.Font
- isPaused() - Method in class com.github.tommyettinger.textra.TypingLabel
-
Returns whether or not this label is paused.
- isSkipping() - Method in class com.github.tommyettinger.textra.TypingLabel
-
Returns whether or not this label is currently skipping its typing progression all the way to the end.
- isUpperCase(char) - Static method in class com.github.tommyettinger.textra.Font
-
Returns true if
cis an upper-case letter, or false otherwise. - isWrap() - Method in class com.github.tommyettinger.textra.TextraLabel
J
- JoltEffect - Class in com.github.tommyettinger.textra.effects
-
Randomly selects and shakes individual characters in the text.
- JoltEffect(TypingLabel, String[]) - Constructor for class com.github.tommyettinger.textra.effects.JoltEffect
- JumpEffect - Class in com.github.tommyettinger.textra.effects
-
Makes the text jumps and falls as if there was gravity.
- JumpEffect(TypingLabel, String[]) - Constructor for class com.github.tommyettinger.textra.effects.JumpEffect
K
- kerning - Variable in class com.github.tommyettinger.textra.Font
- kerningPair(char, char) - Method in class com.github.tommyettinger.textra.Font
-
Assembles two chars into a kerning pair that can be looked up as a key in
Font.kerning. - KnownFonts - Class in com.github.tommyettinger.textra
-
Preconfigured static
Fontinstances, with any important metric adjustments already applied.
L
- label - Variable in class com.github.tommyettinger.textra.Effect
- layout - Variable in class com.github.tommyettinger.textra.TextraLabel
- layout() - Method in class com.github.tommyettinger.textra.TextraLabel
- layout() - Method in class com.github.tommyettinger.textra.TypingLabel
- Layout - Class in com.github.tommyettinger.textra
-
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 fromFont, and can be drawn withFont.drawGlyphs(Batch, Layout, float, float, int). - Layout() - Constructor for class com.github.tommyettinger.textra.Layout
- Layout(Font) - Constructor for class com.github.tommyettinger.textra.Layout
- lerpColors(int, int, float) - Static method in class com.github.tommyettinger.textra.utils.ColorUtils
-
Interpolates from the RGBA8888 int color start towards end by change.
- Line - Class in com.github.tommyettinger.textra
-
One line of possibly-colorful, possibly-styled text, with a width and height set by
Font.markup(String, Layout)on Lines in aLayout. - Line() - Constructor for class com.github.tommyettinger.textra.Line
- Line(int) - Constructor for class com.github.tommyettinger.textra.Line
- lines - Variable in class com.github.tommyettinger.textra.Layout
- lines() - Method in class com.github.tommyettinger.textra.Layout
- loadFNT(String, float, float, float, float) - Method in class com.github.tommyettinger.textra.Font
-
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.
M
- mapping - Variable in class com.github.tommyettinger.textra.Font
- markup(String, Layout) - Method in class com.github.tommyettinger.textra.Font
- MAX_SPEED_MODIFIER - Static variable in class com.github.tommyettinger.textra.TypingConfig
-
Maximum value for the
SPEEDtoken. - maxLines - Variable in class com.github.tommyettinger.textra.Layout
- measureWidth(Line) - Method in class com.github.tommyettinger.textra.Font
-
Measures the actual width that the given Line will use when drawn.
- MIDSCRIPT - Static variable in class com.github.tommyettinger.textra.Font
- MIN_SPEED_MODIFIER - Static variable in class com.github.tommyettinger.textra.TypingConfig
-
Minimum value for the
SPEEDtoken. - MSDF - Enum constant in enum class com.github.tommyettinger.textra.Font.DistanceFieldType
-
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.
- msdfFragmentShader - Static variable in class com.github.tommyettinger.textra.Font
-
Fragment shader source meant for MSDF fonts.
N
- noise1D(float, int) - Static method in class com.github.tommyettinger.textra.utils.NoiseUtils
-
Quilez' 1D noise, with some changes to work on the CPU.
- NoiseUtils - Class in com.github.tommyettinger.textra.utils
-
Some 1D noise methods to be used when an effect needs smooth but random changes.
- NoiseUtils() - Constructor for class com.github.tommyettinger.textra.utils.NoiseUtils
O
- OBLIQUE - Static variable in class com.github.tommyettinger.textra.Font
- octaveNoise1D(float, int) - Static method in class com.github.tommyettinger.textra.utils.NoiseUtils
-
Just gets two octaves of
noise1D(float, int); still has a range of -1 to 1. - offsets - Variable in class com.github.tommyettinger.textra.TypingLabel
- offsetX - Variable in class com.github.tommyettinger.textra.Font.GlyphRegion
-
The offset from the left of the original image to the left of the packed image, after whitespace was removed for packing.
- offsetY - Variable in class com.github.tommyettinger.textra.Font.GlyphRegion
-
The offset from the bottom of the original image to the bottom of the packed image, after whitespace was removed for packing.
- onApply(long, int, int, float) - Method in class com.github.tommyettinger.textra.Effect
-
Called when this effect should be applied to the given glyph.
- onApply(long, int, int, float) - Method in class com.github.tommyettinger.textra.effects.BlinkEffect
- onApply(long, int, int, float) - Method in class com.github.tommyettinger.textra.effects.EaseEffect
- onApply(long, int, int, float) - Method in class com.github.tommyettinger.textra.effects.FadeEffect
- onApply(long, int, int, float) - Method in class com.github.tommyettinger.textra.effects.GradientEffect
- onApply(long, int, int, float) - Method in class com.github.tommyettinger.textra.effects.HangEffect
- onApply(long, int, int, float) - Method in class com.github.tommyettinger.textra.effects.JoltEffect
- onApply(long, int, int, float) - Method in class com.github.tommyettinger.textra.effects.JumpEffect
- onApply(long, int, int, float) - Method in class com.github.tommyettinger.textra.effects.RainbowEffect
- onApply(long, int, int, float) - Method in class com.github.tommyettinger.textra.effects.ShakeEffect
- onApply(long, int, int, float) - Method in class com.github.tommyettinger.textra.effects.SickEffect
- onApply(long, int, int, float) - Method in class com.github.tommyettinger.textra.effects.SlideEffect
- onApply(long, int, int, float) - Method in class com.github.tommyettinger.textra.effects.WaveEffect
- onApply(long, int, int, float) - Method in class com.github.tommyettinger.textra.effects.WindEffect
- onChar(Long) - Method in class com.github.tommyettinger.textra.TypingAdapter
- onChar(Long) - Method in interface com.github.tommyettinger.textra.TypingListener
-
Called when a new character is displayed.
- originalCellHeight - Variable in class com.github.tommyettinger.textra.Font
-
Refers to the largest height of any glyph in the font, before any scaling.
- originalCellWidth - Variable in class com.github.tommyettinger.textra.Font
-
Only actually refers to a "cell" when
Font.isMonois true; otherwise refers to the largest width of any glyph in the font, before any scaling.
P
- paramAsBoolean(String) - Method in class com.github.tommyettinger.textra.Effect
-
Returns a boolean value parsed from the given String, or the default value if the string couldn't be parsed.
- paramAsColor(String) - Method in class com.github.tommyettinger.textra.Effect
-
Parses a color from the given string.
- paramAsFloat(String, float) - Method in class com.github.tommyettinger.textra.Effect
-
Returns a float value parsed from the given String, or the default value if the string couldn't be parsed.
- parents - Variable in class com.github.tommyettinger.textra.Font
- parseTokens() - Method in class com.github.tommyettinger.textra.TypingLabel
-
Parses all tokens of this label.
- pause() - Method in class com.github.tommyettinger.textra.KnownFonts
- pause() - Method in class com.github.tommyettinger.textra.TypingLabel
-
Pauses this label's character progression.
- peekLine() - Method in class com.github.tommyettinger.textra.Layout
- pushLine() - Method in class com.github.tommyettinger.textra.Layout
R
- RainbowEffect - Class in com.github.tommyettinger.textra.effects
-
Tints the text in a rainbow pattern.
- RainbowEffect(TypingLabel, String[]) - Constructor for class com.github.tommyettinger.textra.effects.RainbowEffect
- regenerateLayout(Layout) - Method in class com.github.tommyettinger.textra.Font
- registerEffect(String, String, Class<? extends Effect>) - Static method in class com.github.tommyettinger.textra.TypingConfig
-
Registers a new effect to TypingLabel.
- remove() - Method in class com.github.tommyettinger.textra.TypingLabel
- replaceVariable(String) - Method in class com.github.tommyettinger.textra.TypingAdapter
- replaceVariable(String) - Method in interface com.github.tommyettinger.textra.TypingListener
-
Called when variable tokens are replaced in text.
- reset() - Method in class com.github.tommyettinger.textra.Layout
-
Resets the object for reuse.
- reset() - Method in class com.github.tommyettinger.textra.Line
-
Resets the object for reuse.
- RESET - Enum constant in enum class com.github.tommyettinger.textra.TokenCategory
- restart() - Method in class com.github.tommyettinger.textra.TypingLabel
-
Restarts this label with the original text and starts the char progression right away.
- restart(String) - Method in class com.github.tommyettinger.textra.TypingLabel
-
Restarts this label with the given text and starts the char progression right away.
- restoreOriginalText() - Method in class com.github.tommyettinger.textra.TypingLabel
-
Restores the original text with all tokens unchanged to this label.
- resume() - Method in class com.github.tommyettinger.textra.KnownFonts
- resume() - Method in class com.github.tommyettinger.textra.TypingLabel
-
Resumes this label's character progression.
- rgb2hsl(float, float, float, float) - Static method in class com.github.tommyettinger.textra.utils.ColorUtils
-
Converts the four RGBA components, each in the 0.0 to 1.0 range, to an int in "HSLA format" (hue, saturation, lightness, alpha).
S
- saveOriginalText(CharSequence) - Method in class com.github.tommyettinger.textra.TypingLabel
-
Copies the content of
TypingLabel.getOriginalText()to theStringBuildercontaining the original text with all tokens unchanged. - scale(float, float) - Method in class com.github.tommyettinger.textra.Font
-
Scales the font by the given horizontal and vertical multipliers.
- scaleTo(float, float) - Method in class com.github.tommyettinger.textra.Font
-
Scales the font so that it will have the given width and height.
- scaleX - Variable in class com.github.tommyettinger.textra.Font
-
Scale multiplier for width.
- scaleY - Variable in class com.github.tommyettinger.textra.Font
-
Scale multiplier for height.
- SDF - Enum constant in enum class com.github.tommyettinger.textra.Font.DistanceFieldType
-
Used by Signed Distance Field fonts that are compatible with
DistanceFieldFont, and may be created by Hiero with its Distance Field effect. - setAlignment(int) - Method in class com.github.tommyettinger.textra.TextraLabel
-
Sets the alignment for the text in this TextraLabel.
- setBaseColor(float) - Method in class com.github.tommyettinger.textra.Layout
-
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. - setBaseColor(Color) - Method in class com.github.tommyettinger.textra.Layout
-
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. - setColorLookup(ColorLookup) - Method in class com.github.tommyettinger.textra.Font
-
Unlikely to be used in most games, this allows changing how colors are looked up by name (or built) given a
ColorLookupinterface implementation. - setDefaultToken(String) - Method in class com.github.tommyettinger.textra.TypingLabel
-
Sets the default token being used in this label.
- setEllipsis(String) - Method in class com.github.tommyettinger.textra.Layout
-
Sets the ellipsis text, which replaces the last few glyphs if non-null and the text added would exceed the
Layout.getMaxLines()of this Layout. - setFont(Font) - Method in class com.github.tommyettinger.textra.Layout
-
One of the ways to set the font on a Layout; this is a traditional setter.
- setInLayout(Layout, int, long) - Method in class com.github.tommyettinger.textra.TypingLabel
- setInLayouts(int, long) - Method in class com.github.tommyettinger.textra.TypingLabel
- setIntermediateText(CharSequence, boolean, boolean) - Method in class com.github.tommyettinger.textra.TypingLabel
- setMaxLines(int) - Method in class com.github.tommyettinger.textra.Layout
-
Sets the maximum number of
Lines this Layout can contain; this is always at least 1. - setSize(float, float) - Method in class com.github.tommyettinger.textra.TextraLabel
- setSize(float, float) - Method in class com.github.tommyettinger.textra.TypingLabel
- setTargetWidth(float) - Method in class com.github.tommyettinger.textra.Layout
- setText(String) - Method in class com.github.tommyettinger.textra.TextraLabel
-
Changes the text in this TextraLabel to the given String, parsing any markup in it.
- setText(String) - Method in class com.github.tommyettinger.textra.TypingLabel
-
Modifies the text of this label.
- setText(String, boolean) - Method in class com.github.tommyettinger.textra.TypingLabel
-
Sets the text of this label.
- setText(String, boolean, boolean) - Method in class com.github.tommyettinger.textra.TypingLabel
-
Sets the text of this label.
- setTextureFilter() - Method in class com.github.tommyettinger.textra.Font
-
Calls
Font.setTextureFilter(Texture.TextureFilter, Texture.TextureFilter)withTexture.TextureFilter.Linearfor both min and mag filters. - setTextureFilter(Texture.TextureFilter, Texture.TextureFilter) - Method in class com.github.tommyettinger.textra.Font
-
Sets the texture filters on each Texture that holds a TextureRegion used by the font to the given
minFilterandmagFilter. - setTypingListener(TypingListener) - Method in class com.github.tommyettinger.textra.TypingLabel
-
Sets the
TypingListenerassociated with this label, ornullto remove the current one. - setVariable(String, String) - Method in class com.github.tommyettinger.textra.TypingLabel
-
Registers a variable and its respective replacement value to this label.
- setVariables(ObjectMap<String, String>) - Method in class com.github.tommyettinger.textra.TypingLabel
-
Registers a set of variables and their respective replacement values to this label.
- setVariables(Map<String, String>) - Method in class com.github.tommyettinger.textra.TypingLabel
-
Registers a set of variables and their respective replacement values to this label.
- setWrap(boolean) - Method in class com.github.tommyettinger.textra.TextraLabel
- shader - Variable in class com.github.tommyettinger.textra.Font
-
The ShaderProgram used to render this font, as used by
Font.enableShader(Batch). - ShakeEffect - Class in com.github.tommyettinger.textra.effects
-
Shakes the text in a random pattern.
- ShakeEffect(TypingLabel, String[]) - Constructor for class com.github.tommyettinger.textra.effects.ShakeEffect
- SickEffect - Class in com.github.tommyettinger.textra.effects
-
Drips the text in a random pattern.
- SickEffect(TypingLabel, String[]) - Constructor for class com.github.tommyettinger.textra.effects.SickEffect
- size(float, float) - Method in class com.github.tommyettinger.textra.Line
- SKIP - Enum constant in enum class com.github.tommyettinger.textra.TokenCategory
- skipToTheEnd() - Method in class com.github.tommyettinger.textra.TypingLabel
-
Skips the char progression to the end, showing the entire label.
- skipToTheEnd(boolean) - Method in class com.github.tommyettinger.textra.TypingLabel
-
Skips the char progression to the end, showing the entire label.
- skipToTheEnd(boolean, boolean) - Method in class com.github.tommyettinger.textra.TypingLabel
-
Skips the char progression to the end, showing the entire label.
- SlideEffect - Class in com.github.tommyettinger.textra.effects
-
Moves the text horizontally easing it into the final position.
- SlideEffect(TypingLabel, String[]) - Constructor for class com.github.tommyettinger.textra.effects.SlideEffect
- SPEED - Enum constant in enum class com.github.tommyettinger.textra.TokenCategory
- STANDARD - Enum constant in enum class com.github.tommyettinger.textra.Font.DistanceFieldType
-
Used by normal fonts with no distance field effect.
- storedText - Variable in class com.github.tommyettinger.textra.TextraLabel
- STRIKETHROUGH - Static variable in class com.github.tommyettinger.textra.Font
- SUBSCRIPT - Static variable in class com.github.tommyettinger.textra.Font
- SUPERSCRIPT - Static variable in class com.github.tommyettinger.textra.Font
T
- targetWidth - Variable in class com.github.tommyettinger.textra.Layout
- TextraLabel - Class in com.github.tommyettinger.textra
-
A scene2d.ui Widget that displays text using a
Fontrather than a libGDX BitmapFont. - TextraLabel() - Constructor for class com.github.tommyettinger.textra.TextraLabel
- TextraLabel(String, Label.LabelStyle) - Constructor for class com.github.tommyettinger.textra.TextraLabel
- TextraLabel(String, Skin) - Constructor for class com.github.tommyettinger.textra.TextraLabel
- TextraLabel(String, Skin, String) - Constructor for class com.github.tommyettinger.textra.TextraLabel
- TextraLabel(String, Font) - Constructor for class com.github.tommyettinger.textra.TextraLabel
- TextraLabel(String, Font, Color) - Constructor for class com.github.tommyettinger.textra.TextraLabel
- TokenCategory - Enum Class in com.github.tommyettinger.textra
- tokenEntries - Variable in class com.github.tommyettinger.textra.TypingLabel
- toString() - Method in class com.github.tommyettinger.textra.Layout
- toString() - Method in class com.github.tommyettinger.textra.Line
- toString() - Method in class com.github.tommyettinger.textra.TypingLabel
- totalTime - Variable in class com.github.tommyettinger.textra.Effect
- TypingAdapter - Class in com.github.tommyettinger.textra
-
Simple listener for label events.
- TypingAdapter() - Constructor for class com.github.tommyettinger.textra.TypingAdapter
- TypingConfig - Class in com.github.tommyettinger.textra
-
Configuration class that easily allows the user to fine tune the library's functionality.
- TypingConfig() - Constructor for class com.github.tommyettinger.textra.TypingConfig
- TypingLabel - Class in com.github.tommyettinger.textra
-
An extension of
Labelthat 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}. - TypingLabel() - Constructor for class com.github.tommyettinger.textra.TypingLabel
- TypingLabel(String, Label.LabelStyle) - Constructor for class com.github.tommyettinger.textra.TypingLabel
- TypingLabel(String, Skin) - Constructor for class com.github.tommyettinger.textra.TypingLabel
- TypingLabel(String, Skin, String) - Constructor for class com.github.tommyettinger.textra.TypingLabel
- TypingLabel(String, Font) - Constructor for class com.github.tommyettinger.textra.TypingLabel
- TypingLabel(String, Font, Color) - Constructor for class com.github.tommyettinger.textra.TypingLabel
- TypingListener - Interface in com.github.tommyettinger.textra
-
Simple listener for label events.
U
- UNDERLINE - Static variable in class com.github.tommyettinger.textra.Font
- unregisterEffect(String, String) - Static method in class com.github.tommyettinger.textra.TypingConfig
-
Unregisters an effect from TypingLabel.
- update(float) - Method in class com.github.tommyettinger.textra.Effect
- update(float) - Method in class com.github.tommyettinger.textra.effects.WindEffect
V
- valueOf(String) - Static method in enum class com.github.tommyettinger.textra.Font.DistanceFieldType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.github.tommyettinger.textra.TokenCategory
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.github.tommyettinger.textra.Font.DistanceFieldType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.github.tommyettinger.textra.TokenCategory
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VARIABLE - Enum constant in enum class com.github.tommyettinger.textra.TokenCategory
- vertexShader - Static variable in class com.github.tommyettinger.textra.Font
-
The standard libGDX vertex shader source, which is also used by the MSDF shader.
W
- WAIT - Enum constant in enum class com.github.tommyettinger.textra.TokenCategory
- WaveEffect - Class in com.github.tommyettinger.textra.effects
-
Moves the text vertically in a sine wave pattern.
- WaveEffect(TypingLabel, String[]) - Constructor for class com.github.tommyettinger.textra.effects.WaveEffect
- width - Variable in class com.github.tommyettinger.textra.Line
- WindEffect - Class in com.github.tommyettinger.textra.effects
-
Moves the text in a wind pattern.
- WindEffect(TypingLabel, String[]) - Constructor for class com.github.tommyettinger.textra.effects.WindEffect
- workingLayout - Variable in class com.github.tommyettinger.textra.TypingLabel
- wrap - Variable in class com.github.tommyettinger.textra.TextraLabel
X
- xAdvance - Variable in class com.github.tommyettinger.textra.Font.GlyphRegion
-
How far to move the "cursor" to the right after drawing this GlyphRegion.
- xAdvance(long) - Method in class com.github.tommyettinger.textra.Font
-
Gets the distance to advance the cursor after drawing
glyph, scaled byFont.scaleXas if drawing.
All Classes|All Packages|Constant Field Values