- 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.
- calculateSize(Line) - Method in class com.github.tommyettinger.textra.Font
-
Measures the actual width that the given Line will use when drawn.
- cancelSkipping() - Method in class com.github.tommyettinger.textra.TypingLabel
-
- 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.isMono is 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.
- ColorLookup - Interface in com.github.tommyettinger.textra
-
Allows looking up an RGBA8888 int color given a String key, returning either the color or 256 if none was found.
- colorLookup - Variable in class com.github.tommyettinger.textra.Font
-
Determines how colors are looked up by name; defaults to using Colors.
- ColorLookup.GdxColorLookup - Class in com.github.tommyettinger.textra
-
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.
- ColorUtils - Class in com.github.tommyettinger.textra.utils
-
A few static methods for commonly-used color handling tasks.
- 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.
- connected - Variable in class com.github.tommyettinger.textra.Font.FontFamily
-
Stores this Font and up to 15 other connected Fonts that can be switched between using [@Name] syntax.
- DEFAULT_CLEAR_COLOR - Static variable in class com.github.tommyettinger.textra.TypingConfig
-
Default color for the CLEARCOLOR token.
- 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 WAIT token should wait for.
- defaultValue - Variable in class com.github.tommyettinger.textra.Font
-
Which GlyphRegion to display if a char isn't found in
Font.mapping.
- 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
-
- draw(Batch, float) - Method in class com.github.tommyettinger.textra.TextraLabel
-
- draw(Batch, float) - Method in class com.github.tommyettinger.textra.TypingLabel
-
- 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.
- 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.
- drawBlockSequence(Batch, float[], TextureRegion, float, float, float) - Method in class com.github.tommyettinger.textra.Font
-
- drawBlockSequence(Batch, float[], TextureRegion, float, float, float, float, float) - Method in class com.github.tommyettinger.textra.Font
-
- drawBlockSequence(Batch, float[], TextureRegion, float, float, float, float, float, float) - Method in class com.github.tommyettinger.textra.Font
-
- 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 align to
determine how to position the text.
- drawGlyphs(Batch, Layout, float, float, int, float) - Method in class com.github.tommyettinger.textra.Font
-
Draws the specified Layout of glyphs with a Batch at a given x, y position, rotated using degrees, using
align to determine how to position the text and where to pivot the rotation around.
- 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 align to
determine how to position the text.
- drawGlyphs(Batch, Line, float, float, int, float) - Method in class com.github.tommyettinger.textra.Font
-
Draws the specified Line of glyphs with a Batch at a given x, y position, rotated using degrees, using
align to determine how to position the text and where to pivot the rotation around.
- 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, case, and scale 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
-
- 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
-
- family - Variable in class com.github.tommyettinger.textra.Font
-
If non-null, may contain connected Font values and names/aliases to look them up with using [@Name] syntax.
- fitCell(float, float, boolean) - Method in class com.github.tommyettinger.textra.Font
-
Fits all chars into cells width by height in size, and optionally centers them in their cells.
- 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 - Class in com.github.tommyettinger.textra
-
A replacement for libGDX's BitmapFont class, supporting additional markup to allow styling text with various effects.
- 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, 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, 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, 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(Font) - Constructor for class com.github.tommyettinger.textra.Font
-
Copy constructor; does not copy the font's
Font.shader or
Font.colorLookup, if it has them (it uses the
same reference for the new Font), but will fully copy everything else.
- 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
local handle) and loading any images specified in that file.
- 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
local handle) and loading any images specified in that file.
- Font(String, Font.DistanceFieldType, float, float, float, float, boolean) - 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
local handle) and loading any images specified in that file.
- 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 local),
and no distance field effect.
- 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 local),
and the specified distance field effect.
- Font(String, String, Font.DistanceFieldType, float, float, float, float, boolean) - 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 local),
and the specified distance field effect.
- 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, TextureRegion, Font.DistanceFieldType, float, float, float, float, boolean) - 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, Array<TextureRegion>, Font.DistanceFieldType, float, float, float, float, boolean) - 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(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(BitmapFont, Font.DistanceFieldType, float, float, float, float, boolean) - 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(String, boolean) - Constructor for class com.github.tommyettinger.textra.Font
-
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 - Variable in class com.github.tommyettinger.textra.Layout
-
- 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 - Variable in class com.github.tommyettinger.textra.TextraLabel
-
- Font.DistanceFieldType - Enum in com.github.tommyettinger.textra
-
Defines what types of distance field font this can use and render.
- Font.FontFamily - Class in com.github.tommyettinger.textra
-
Holds up to 16 Font values, accessible by index or by name, that markup can switch between while rendering.
- 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.
- fontAliases - Variable in class com.github.tommyettinger.textra.Font.FontFamily
-
Stores the names of Fonts (or aliases for those Fonts) as keys, mapped to ints between 0 and 15 inclusive.
- FontFamily() - Constructor for class com.github.tommyettinger.textra.Font.FontFamily
-
Creates a FontFamily that only allows staying on the same font, unless later configured otherwise.
- FontFamily(String[], Font[]) - Constructor for class com.github.tommyettinger.textra.Font.FontFamily
-
Creates a FontFamily given an array of String names and a (almost-always same-sized) array of Font values
that those names will refer to.
- FontFamily(String[], Font[], int, int) - Constructor for class com.github.tommyettinger.textra.Font.FontFamily
-
Creates a FontFamily given an array of String names, a (almost-always same-sized) array of Font values that
those names will refer to, and offset/length values for those arrays (allowing Array to sometimes be
used to get the items for aliases and fonts).
- FontFamily(OrderedMap<String, Font>) - Constructor for class com.github.tommyettinger.textra.Font.FontFamily
-
Constructs a FontFamily given an OrderedMap of String keys (names of Fonts) to Font values (the Fonts that
can be switched between).
- FontFamily(Font.FontFamily) - Constructor for class com.github.tommyettinger.textra.Font.FontFamily
-
Copy constructor for another FontFamily.
- get(String) - Method in class com.github.tommyettinger.textra.Font.FontFamily
-
Gets the corresponding Font for a name/alias, or null if it was not found.
- getAlignment() - Method in class com.github.tommyettinger.textra.TextraLabel
-
Gets the alignment for the text in this TextraLabel.
- getAll() - Static method in class com.github.tommyettinger.textra.KnownFonts
-
Returns a new array of Font instances, calling each getXyz() method in this class that returns any Font.
- getAllMSDF() - Static method in class com.github.tommyettinger.textra.KnownFonts
-
Returns a new array of Font instances, calling each getXyz() method in this class that returns any MSDF Font.
- getAllSDF() - Static method in class com.github.tommyettinger.textra.KnownFonts
-
Returns a new array of Font instances, calling each getXyz() method in this class that returns any SDF Font.
- getAllStandard() - Static method in class com.github.tommyettinger.textra.KnownFonts
-
Returns a new array of Font instances, calling each getXyz() method in this class that returns any
non-distance-field Font.
- 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 Color instance with the color to be used on CLEARCOLOR tokens.
- 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
-
- getCrispness() - Method in class com.github.tommyettinger.textra.Font
-
Gets the "crispness" multiplier for distance field fonts (SDF and MSDF).
- 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 well from a height of about 132 down to a height of 34.
- getGentiumSDF() - 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
-
- getIBM8x16() - Static method in class com.github.tommyettinger.textra.KnownFonts
-
Returns a Font configured to use a classic, nostalgic fixed-width bitmap font,
IBM 8x16 from the early, oft-beloved computer line.
- getInconsolata() - 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).
- getInconsolataMSDF() - 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.
- getIosevkaMSDF() - 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).
- getIosevkaSDF() - 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 fairly large sizes (using an SDF 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.
- getIosevkaSlabMSDF() - 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).
- getIosevkaSlabSDF() - 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 fairly large sizes (using an SDF 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(int) - Method in class com.github.tommyettinger.textra.TypingLabel
-
- getLineInLayout(Layout, int) - Method in class com.github.tommyettinger.textra.TypingLabel
-
- 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 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.
- 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
-
- getVariables() - Method in class com.github.tommyettinger.textra.TypingLabel
-
Returns an ObjectMap with 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
TypingLabel instances 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
-
- mapping - Variable in class com.github.tommyettinger.textra.Font
-
- markup(String, Layout) - Method in class com.github.tommyettinger.textra.Font
-
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.
- markupGlyph(char, String) - Method in class com.github.tommyettinger.textra.Font
-
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.
- markupGlyph(char, String, ColorLookup) - Static method in class com.github.tommyettinger.textra.Font
-
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.
- markupGlyph(char, String, ColorLookup, Font.FontFamily) - Static method in class com.github.tommyettinger.textra.Font
-
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.
- MAX_SPEED_MODIFIER - Static variable in class com.github.tommyettinger.textra.TypingConfig
-
Maximum value for the SPEED token.
- 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
-
Bit flag for midscript mode, as a long.
- MIN_SPEED_MODIFIER - Static variable in class com.github.tommyettinger.textra.TypingConfig
-
Minimum value for the SPEED token.
- msdfFragmentShader - Static variable in class com.github.tommyettinger.textra.Font
-
Fragment shader source meant for MSDF fonts.
- multiplyAllAlpha(int[][], float) - Static method in class com.github.tommyettinger.textra.utils.ColorUtils
-
Given any purely-non-null 2D int array representing RGBA or HSLA colors, this multiplies the alpha channel of
each color by multiplier, modifying the given array, and returns the changed array for chaining.
- multiplyAlpha(int, float) - Static method in class com.github.tommyettinger.textra.utils.ColorUtils
-
Given an RGBA8888 or HSLA color as an int, this multiplies the alpha of that color by multiplier and returns
another int color of the same format passed in.
- multiplyCrispness(float) - Method in class com.github.tommyettinger.textra.Font
-
Takes the "crispness" multiplier for distance field fonts (SDF and MSDF) and multiplies it by another multiplier.
- saveOriginalText(CharSequence) - Method in class com.github.tommyettinger.textra.TypingLabel
-
- 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.
- 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 (meant more for other libraries), this allows changing how colors are looked up
by name (or built) given a
ColorLookup interface implementation.
- setCrispness(float) - Method in class com.github.tommyettinger.textra.Font
-
Sets the "crispness" multiplier for distance field fonts (SDF and MSDF).
- 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.
- setFamily(Font.FontFamily) - Method in class com.github.tommyettinger.textra.Font
-
Sets the FontFamily this can use to switch fonts using [@Name] syntax.
- 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
-
- setIntermediateText(CharSequence, boolean, boolean) - Method in class com.github.tommyettinger.textra.TypingLabel
-
- setInWorkingLayout(int, long) - 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
-
- 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
minFilter and magFilter.
- setTypingListener(TypingListener) - Method in class com.github.tommyettinger.textra.TypingLabel
-
Sets the
TypingListener associated with this label, or
null to 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
-
- 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
-
- 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
-
- solidBlock - Variable in class com.github.tommyettinger.textra.Font
-
- storedText - Variable in class com.github.tommyettinger.textra.TextraLabel
-
- STRIKETHROUGH - Static variable in class com.github.tommyettinger.textra.Font
-
Bit flag for strikethrough mode, as a long.
- SUBSCRIPT - Static variable in class com.github.tommyettinger.textra.Font
-
Bit flag for subscript mode, as a long.
- SUPERSCRIPT - Static variable in class com.github.tommyettinger.textra.Font
-
Two-bit flag for superscript mode, as a long.