public class DefaultResources
extends java.lang.Object
implements com.badlogic.gdx.LifecycleListener
GDXMarkup
can produce text that will render in those faces. Some good choices for fonts here are
Iosevka, which comes in a sans-serif version with getStretchableLeanFont()
, getCrispLeanFont()
,
getCrispLeanFamily()
, and more, as well as a slab-serif version with getStretchableSlabFont()
,
getCrispSlabFont()
, and getCrispSlabFamily()
, among others, as well as Inconsolata-LGC, which is
more geometric sans-serif accessible with getStretchableFont()
, or (well-suited for square glyphs)
getStretchableSquareFont()
(it does not have a crisp variety). Another is Computer Modern, accessible by
getStretchableTypewriterFont()
, which has a chunky, ornamented style. For variable-width fonts
that can be used in TextPanel, among others, you can use the recommended crisp font family Noto Serif
with getCrispPrintFamily()
, or for stretchable fonts there's the serif font Gentium with
getStretchablePrintFont()
or Noto Sans with getStretchableCleanFont()
(Noto Sans currently has
problems that Noto Serif does not have). All of the fonts so far support the Latin, Greek, and Cyrillic alphabets.
getCrispLeanFont()
or getCrispSlabFont()
, which return TextCellFactory
objects, and call their .width(int), .height(int), and .initBySize() methods to make them the size (and aspect ratio)
you want. You can use stretchable or crisp fonts with equal width and height to make
a horizontally-stretched version of a square font instead of the existing square fonts that add blank space.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
computerSaysNoName |
static java.lang.String |
computerSaysNoTexture |
static java.lang.String |
cozetteName |
static java.lang.String |
cozetteOutlinedName |
static java.lang.String |
cozetteOutlinedTexture |
static java.lang.String |
cozetteTexture |
static java.lang.String |
crispCarved |
static java.lang.String |
crispCarvedTexture |
static java.lang.String |
crispCascadia |
static java.lang.String |
crispCascadiaTexture |
static java.lang.String |
crispCurvySquare |
static java.lang.String |
crispCurvySquareTexture |
static java.lang.String |
crispDejaVu |
static java.lang.String |
crispDejaVuTexture |
static java.lang.String |
crispIcons |
static java.lang.String |
crispIconsTexture |
static java.lang.String |
crispLean |
static java.lang.String |
crispLeanTexture |
static java.lang.String |
crispNotoSerif |
static java.lang.String |
crispNotoSerifTexture |
static java.lang.String |
crispOctagonalSquare |
static java.lang.String |
crispOctagonalSquareTexture |
static java.lang.String |
crispRobotoSans |
static java.lang.String |
crispRobotoSansTexture |
static java.lang.String |
crispSlab |
static java.lang.String |
crispSlabTexture |
static java.lang.String |
crispSmooth |
static java.lang.String |
crispSmoothTexture |
static java.lang.String |
distanceFieldClean |
static java.lang.String |
distanceFieldCleanTexture |
static java.lang.String |
distanceFieldCode |
static java.lang.String |
distanceFieldCodeJP |
static java.lang.String |
distanceFieldCodeJPTexture |
static java.lang.String |
distanceFieldCodeTexture |
static java.lang.String |
distanceFieldDejaVu |
static java.lang.String |
distanceFieldDejaVuTexture |
static java.lang.String |
distanceFieldHeavySquare |
static java.lang.String |
distanceFieldHeavySquareTexture |
static java.lang.String |
distanceFieldLean |
static java.lang.String |
distanceFieldLeanLight |
static java.lang.String |
distanceFieldLeanLightTexture |
static java.lang.String |
distanceFieldLeanTexture |
static java.lang.String |
distanceFieldNarrow |
static java.lang.String |
distanceFieldNarrowTexture |
static java.lang.String |
distanceFieldOrbit |
static java.lang.String |
distanceFieldOrbitTexture |
static java.lang.String |
distanceFieldPrint |
static java.lang.String |
distanceFieldPrintTexture |
static java.lang.String |
distanceFieldSlab |
static java.lang.String |
distanceFieldSlabLight |
static java.lang.String |
distanceFieldSlabLightTexture |
static java.lang.String |
distanceFieldSlabTexture |
static java.lang.String |
distanceFieldSquare |
static java.lang.String |
distanceFieldSquareTexture |
static java.lang.String |
distanceFieldTypewriterNarrow |
static java.lang.String |
distanceFieldTypewriterNarrowTexture |
static java.lang.String |
fragmentShader |
static java.lang.String |
iconFontAll
All of the Font-Awesome Free (solid style) characters in
getCrispIconFont() , as a String. |
static java.lang.String |
lessTinyName |
static java.lang.String |
lessTinyTexture |
static java.lang.String |
msdfFragmentShader |
static java.lang.String |
msdfOutlineFragmentShader
An alternate shader based on
msdfFragmentShader , but this draws outlines around
characters. |
static java.lang.String |
narrowFontAll |
static java.lang.String |
narrowFontSymbols
Special symbols that can be used as icons if you use the narrow default font.
|
static java.lang.String |
narrowName |
static java.lang.String |
narrowNameExtraLarge |
static java.lang.String |
narrowNameLarge |
static java.lang.String |
narrowTexture |
static java.lang.String |
narrowTextureExtraLarge |
static java.lang.String |
narrowTextureLarge |
static java.lang.String |
outlineFragmentShader
An alternate shader based on
fragmentShader , but this draws outlines around characters. |
static java.lang.String |
sevenTwelveName |
static java.lang.String |
sevenTwelveTexture |
static java.lang.String |
smoothName |
static java.lang.String |
smoothNameLarge |
static java.lang.String |
smoothSquareName |
static java.lang.String |
smoothSquareTexture |
static java.lang.String |
smoothTexture |
static java.lang.String |
smoothTextureLarge |
static java.lang.String |
squareName |
static java.lang.String |
squareNameLarge |
static java.lang.String |
squareTexture |
static java.lang.String |
squareTextureLarge |
static java.lang.String |
tinyName |
static java.lang.String |
tinyTexture |
static java.lang.String |
unicodeName |
static java.lang.String |
unicodeNameLarge |
static java.lang.String |
unicodeTexture |
static java.lang.String |
unicodeTextureLarge |
static java.lang.String |
vertexShader |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Called when the
Application is about to be disposed |
static com.badlogic.gdx.graphics.g2d.BitmapFont |
getCozyFont()
Returns a 7x14px pixel font with broad coverage of Unicode, including Greek, Cyrillic, Braille, and tech-related
icons.
|
static com.badlogic.gdx.graphics.g2d.BitmapFont |
getCozyOutlinedFont()
Returns a 7x14px pixel font with broad coverage of Unicode, including Greek, Cyrillic, Braille, and tech-related
icons, with a black outline applied around the white inner strokes.
|
static TextCellFactory |
getCrispCarvedFont()
Returns a TextCellFactory already configured to use a partially-angular variable-width font with good Unicode
support and an appearance as if it were carved into solid rock, that should scale cleanly to even very large
sizes (using an MSDF technique).
|
static TextCellFactory |
getCrispCascadiaFont()
Returns a TextCellFactory already configured to use a fixed-width font with excellent Unicode support
and a humanist style, that should scale cleanly to even very large sizes (using an MSDF technique).
|
static TextCellFactory |
getCrispCurvySquareFont()
Returns a TextCellFactory already configured to use an all-caps (with lighter-weight versions of upper-case
letters for the lower-case glyphs) square font that should scale cleanly to many sizes.
|
static TextCellFactory |
getCrispDejaVuFont()
Returns a TextCellFactory already configured to use a fixed-width sans-serif font with excellent Unicode support,
that should scale cleanly to even very large sizes.
|
static TextCellFactory |
getCrispIconFont()
Returns a TextCellFactory already configured to use a fixed-width icon font (no letters are supported) using the
Font-Awesome icon set, that should scale cleanly to even very large sizes.
|
static TextFamily |
getCrispLeanFamily()
Returns a TextFamily 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 many sizes (using an MSDF technique) and supports 4
styles (regular, bold, italic, and bold italic).
|
static TextCellFactory |
getCrispLeanFont()
Returns a TextCellFactory 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 TextCellFactory |
getCrispLeanItalicFont()
Deprecated.
use
getCrispLeanFamily() instead |
static TextCellFactory |
getCrispOctagonalSquareFont()
Returns a TextCellFactory 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 TextFamily |
getCrispPrintFamily()
Returns a TextFamily already configured to use a variable-width serif font that should look like the serif
fonts used in many novels' main texts, and that should scale cleanly to many sizes using an MSDF technique, and
supports 4 styles (regular, bold, italic, and bold italic).
|
static TextCellFactory |
getCrispRobotoSansFont()
Returns a TextCellFactory already configured to use a variable-width sans-serif font with good Unicode support
and a no-nonsense look, that should scale cleanly to even very large or small sizes (using an MSDF technique).
|
static TextFamily |
getCrispSlabFamily()
Returns a TextFamily 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 many sizes (using an MSDF technique) and supports 4
styles (regular, bold, italic, and bold italic).
|
static TextCellFactory |
getCrispSlabFont()
Returns a TextCellFactory 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 TextCellFactory |
getCrispSlabItalicFont()
Deprecated.
use
getCrispSlabFamily() instead |
static TextCellFactory |
getCrispSmoothFont()
Returns a TextCellFactory already configured to use a narrow font (twice as tall as it is wide) that should scale
cleanly to many sizes.
|
static com.badlogic.gdx.graphics.g2d.BitmapFont |
getDefaultFont()
Returns a 12x12px, stretched but curvaceous font as an embedded resource.
|
static com.badlogic.gdx.graphics.g2d.BitmapFont |
getDefaultNarrowFont()
Returns a 6x12px, narrow and curving font as an embedded resource.
|
static com.badlogic.gdx.graphics.g2d.BitmapFont |
getDefaultUnicodeFont()
Returns a 6x16px, narrow and curving font with a lot of unicode chars as an embedded resource.
|
static com.badlogic.gdx.graphics.g2d.BitmapFont |
getExtraLargeNarrowFont()
Returns a 12x24px, narrow and curving font as an embedded resource.
|
static TextFamily |
getGoFamily()
Returns a TextFamily already configured to use a fixed-width font with good Unicode support and a traditional
serif style, that should scale cleanly to many sizes and supports 4 styles (regular, bold, italic,
and bold italic).
|
static squidpony.squidmath.StatefulRNG |
getGuiRandom()
This is a static global StatefulRNG that's meant for usage in cases where the seed does not matter and any
changes to this RNG's state will not change behavior elsewhere in the program; this means the GUI mainly.
|
static com.badlogic.gdx.graphics.g2d.TextureAtlas |
getIconAtlas()
Gets a TextureAtlas containing many icons with a distance field effect applied, allowing them to be used with
"stretchable" fonts and be resized in the same way.
|
static com.badlogic.gdx.graphics.g2d.BitmapFont |
getIncludedFont()
Gets the one font guaranteed to be included in libGDX, which is Liberation Sans at size 15 px.
|
static com.badlogic.gdx.graphics.g2d.BitmapFont |
getLargeFont()
Returns a 24x24px, stretched but curvaceous font as an embedded resource.
|
static com.badlogic.gdx.graphics.g2d.BitmapFont |
getLargeNarrowFont()
Returns a 12x24px, narrow and curving font as an embedded resource.
|
static com.badlogic.gdx.graphics.g2d.BitmapFont |
getLargeSmoothFont()
Returns a 12x24px, very smooth and generally good-looking font (based on Inconsolata) as an embedded resource.
|
static com.badlogic.gdx.graphics.g2d.BitmapFont |
getLargeUnicodeFont()
Returns a 12x32px, narrow and curving font with a lot of unicode chars as an embedded resource.
|
static TextFamily |
getLeanFamily()
Returns a TextFamily 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 many sizes and supports 4 styles (regular, bold, italic,
and bold italic).
|
static com.badlogic.gdx.graphics.g2d.BitmapFont |
getLessTinyFont()
Returns a 8x20px, extremely thin font (that may be barely legible) as an embedded resource.
|
static com.badlogic.gdx.graphics.g2d.BitmapFont |
getOctagonalMonoFont()
Returns a 14x27px font with fairly good Unicode coverage and an octagonal, angular look, as an embedded resource.
|
static SquidColorCenter |
getSCC()
This is a static global SquidColorCenter that can be used in places that just need an existing object that can do
things like analyze hue or saturation of a color.
|
static com.badlogic.gdx.graphics.g2d.BitmapFont |
getSevenTwelveFont()
Returns a 7x12px font with identical (excellent) Unicode coverage to Iosevka, as an embedded resource.
|
static TextFamily |
getSlabFamily()
Returns a TextFamily 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 many sizes and supports 4 styles (regular, bold, italic,
and bold italic).
|
static com.badlogic.gdx.graphics.g2d.BitmapFont |
getSmoothFont()
Returns a 8x18px, very smooth and generally good-looking font (based on Inconsolata) as an embedded resource.
|
static com.badlogic.gdx.graphics.g2d.BitmapFont |
getSquareSmoothFont()
Returns a 25x25px, very smooth and generally good-looking font (based on Inconsolata) as an embedded resource.
|
static TextCellFactory |
getStretchableCleanFont()
Returns a TextCellFactory already configured to use a variable-width sans-serif font that currently looks
slightly jumbled without certain layout features.
|
static TextCellFactory |
getStretchableCodeFont()
Returns a TextCellFactory already configured to use a highly-legible fixed-width font with broad Unicode support
that should scale cleanly to many sizes.
|
static TextCellFactory |
getStretchableCodeJPFont()
Returns a TextCellFactory already configured to use a highly-legible fixed-width font with strong CJK support (in
particular, very good coverage for Japanese) that should scale cleanly to many sizes.
|
static TextCellFactory |
getStretchableDejaVuFont()
Returns a TextCellFactory already configured to use a font with extremely wide Unicode support that should scale
cleanly to many sizes.
|
static TextCellFactory |
getStretchableFont()
Returns a TextCellFactory already configured to use a narrow font (twice as tall as it is wide) that should scale
cleanly to many sizes.
|
static TextCellFactory |
getStretchableHeavySquareFont()
Returns a TextCellFactory already configured to use an blocky, fairly-bold square font that should scale cleanly
to many sizes.
|
static TextCellFactory |
getStretchableLeanFont()
Returns a TextCellFactory already configured to use a highly-legible fixed-width font with good Unicode support
and a thin, geometric style, that should scale cleanly to many sizes.
|
static TextCellFactory |
getStretchableLeanLightFont()
Returns a TextCellFactory already configured to use a highly-legible fixed-width font with good Unicode support
and a very thin, geometric style, that should scale cleanly to many sizes.
|
static TextCellFactory |
getStretchableOrbitFont()
Returns a TextCellFactory already configured to use a variable-width sans-serif font that should have a blocky,
futuristic look (based on the font Orbitron), and that should scale cleanly to many sizes.
|
static TextCellFactory |
getStretchablePrintFont()
Returns a TextCellFactory already configured to use a variable-width serif font that should look like the serif
fonts used in many novels' main texts, and that should scale cleanly to many sizes.
|
static TextCellFactory |
getStretchableSlabFont()
Returns a TextCellFactory 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 many sizes.
|
static TextCellFactory |
getStretchableSlabLightFont()
Returns a TextCellFactory already configured to use a highly-legible fixed-width font with good Unicode support
and a very thin, slab-serif geometric style, that should scale cleanly to many sizes.
|
static TextCellFactory |
getStretchableSquareFont()
Returns a TextCellFactory already configured to use a square font that should scale cleanly to many sizes.
|
static TextCellFactory |
getStretchableTypewriterFont()
Returns a TextCellFactory already configured to use a narrow typewriter-style serif font that should scale
cleanly to many sizes.
|
static com.badlogic.gdx.graphics.g2d.TextureRegion |
getTentacle()
Gets an image of a (squid-like, for SquidLib) tentacle, 32x32px.
|
static com.badlogic.gdx.graphics.g2d.BitmapFont |
getTinyFont()
Returns a 4x10px, extremely thin font (that may be barely legible) as an embedded resource.
|
void |
pause()
Called when the
Application is about to pause |
void |
resume()
Called when the Application is about to be resumed
|
public static final java.lang.String squareName
public static final java.lang.String squareTexture
public static final java.lang.String narrowName
public static final java.lang.String narrowTexture
public static final java.lang.String unicodeName
public static final java.lang.String unicodeTexture
public static final java.lang.String squareNameLarge
public static final java.lang.String squareTextureLarge
public static final java.lang.String narrowNameLarge
public static final java.lang.String narrowTextureLarge
public static final java.lang.String unicodeNameLarge
public static final java.lang.String unicodeTextureLarge
public static final java.lang.String narrowNameExtraLarge
public static final java.lang.String narrowTextureExtraLarge
public static final java.lang.String tinyName
public static final java.lang.String tinyTexture
public static final java.lang.String lessTinyName
public static final java.lang.String lessTinyTexture
public static final java.lang.String sevenTwelveName
public static final java.lang.String sevenTwelveTexture
public static final java.lang.String computerSaysNoName
public static final java.lang.String computerSaysNoTexture
public static final java.lang.String cozetteName
public static final java.lang.String cozetteTexture
public static final java.lang.String cozetteOutlinedName
public static final java.lang.String cozetteOutlinedTexture
public static final java.lang.String smoothName
public static final java.lang.String smoothTexture
public static final java.lang.String smoothNameLarge
public static final java.lang.String smoothTextureLarge
public static final java.lang.String smoothSquareName
public static final java.lang.String smoothSquareTexture
public static final java.lang.String distanceFieldSquare
public static final java.lang.String distanceFieldSquareTexture
public static final java.lang.String distanceFieldNarrow
public static final java.lang.String distanceFieldNarrowTexture
public static final java.lang.String distanceFieldHeavySquare
public static final java.lang.String distanceFieldHeavySquareTexture
public static final java.lang.String distanceFieldPrint
public static final java.lang.String distanceFieldPrintTexture
public static final java.lang.String distanceFieldClean
public static final java.lang.String distanceFieldCleanTexture
public static final java.lang.String distanceFieldTypewriterNarrow
public static final java.lang.String distanceFieldTypewriterNarrowTexture
public static final java.lang.String distanceFieldCode
public static final java.lang.String distanceFieldCodeTexture
public static final java.lang.String distanceFieldCodeJP
public static final java.lang.String distanceFieldCodeJPTexture
public static final java.lang.String distanceFieldDejaVu
public static final java.lang.String distanceFieldDejaVuTexture
public static final java.lang.String distanceFieldOrbit
public static final java.lang.String distanceFieldOrbitTexture
public static final java.lang.String distanceFieldLean
public static final java.lang.String distanceFieldLeanTexture
public static final java.lang.String distanceFieldLeanLight
public static final java.lang.String distanceFieldLeanLightTexture
public static final java.lang.String distanceFieldSlabLight
public static final java.lang.String distanceFieldSlabLightTexture
public static final java.lang.String distanceFieldSlab
public static final java.lang.String distanceFieldSlabTexture
public static final java.lang.String crispSlab
public static final java.lang.String crispSlabTexture
public static final java.lang.String crispLean
public static final java.lang.String crispLeanTexture
public static final java.lang.String crispDejaVu
public static final java.lang.String crispDejaVuTexture
public static final java.lang.String crispCascadia
public static final java.lang.String crispCascadiaTexture
public static final java.lang.String crispNotoSerif
public static final java.lang.String crispNotoSerifTexture
public static final java.lang.String crispCarved
public static final java.lang.String crispCarvedTexture
public static final java.lang.String crispCurvySquare
public static final java.lang.String crispCurvySquareTexture
public static final java.lang.String crispRobotoSans
public static final java.lang.String crispRobotoSansTexture
public static final java.lang.String crispOctagonalSquare
public static final java.lang.String crispOctagonalSquareTexture
public static final java.lang.String crispIcons
public static final java.lang.String crispIconsTexture
public static final java.lang.String crispSmooth
public static final java.lang.String crispSmoothTexture
public static final java.lang.String vertexShader
public static final java.lang.String fragmentShader
public static final java.lang.String msdfFragmentShader
public static final java.lang.String outlineFragmentShader
fragmentShader
, but this draws outlines around characters.
Only works with distance field fonts. You probably need to create a new ShaderProgram to use this, which would
look like new ShaderProgram(DefaultResources.vertexShader, DefaultResources.outlineFragmentShader)
, and
would assign this to your TextCellFactory's TextCellFactory.shader
field after the TextCellFactory is
fully initialized (calling TextCellFactory.initBySize()
) will set the shader back to the default).public static final java.lang.String msdfOutlineFragmentShader
msdfFragmentShader
, but this draws outlines around
characters. This should be sharper than outlineFragmentShader
, but only works with MSDF (crisp) fonts.
Unlike that shader, this doesn't have special behavior for negative
TextCellFactory.getSmoothingMultiplier()
values, though that may be added later.
You probably need to create a new ShaderProgram to use this, which would look like
new ShaderProgram(DefaultResources.vertexShader, DefaultResources.msdfOutlineFragmentShader)
, and
would assign this to your TextCellFactory's TextCellFactory.shader
field after the TextCellFactory is
fully initialized (calling TextCellFactory.initBySize()
) will set the shader back to the default).public static final java.lang.String narrowFontSymbols
public static final java.lang.String narrowFontAll
public static final java.lang.String iconFontAll
getCrispIconFont()
, as a String.public static com.badlogic.gdx.graphics.g2d.BitmapFont getIncludedFont()
public static com.badlogic.gdx.graphics.g2d.BitmapFont getDefaultFont()
public static com.badlogic.gdx.graphics.g2d.BitmapFont getLargeFont()
public static com.badlogic.gdx.graphics.g2d.BitmapFont getDefaultNarrowFont()
public static com.badlogic.gdx.graphics.g2d.BitmapFont getLargeNarrowFont()
public static com.badlogic.gdx.graphics.g2d.BitmapFont getExtraLargeNarrowFont()
public static com.badlogic.gdx.graphics.g2d.BitmapFont getSmoothFont()
getCrispSmoothFont()
, which is the same font but should
scale to more sizes and aspect ratios very smoothly.
public static com.badlogic.gdx.graphics.g2d.BitmapFont getLargeSmoothFont()
getCrispSmoothFont()
, which is the same font but should
scale to more sizes and aspect ratios very smoothly.
public static com.badlogic.gdx.graphics.g2d.BitmapFont getDefaultUnicodeFont()
public static com.badlogic.gdx.graphics.g2d.BitmapFont getLargeUnicodeFont()
public static com.badlogic.gdx.graphics.g2d.BitmapFont getSquareSmoothFont()
getStretchableSquareFont()
instead, which is the same font but can stretch smoothly to most sizes.
public static com.badlogic.gdx.graphics.g2d.BitmapFont getTinyFont()
public static com.badlogic.gdx.graphics.g2d.BitmapFont getLessTinyFont()
getTinyFont()
, has the lowest width of any font asset distributed with
SquidLib; this doubles its resolution in case you like its appearance but don't want to go blind. Caches the font
for later calls. Attribution to Christian Munk (or the username he used, CMunk) is required to use this font;
this is in the license file linked below.
public static com.badlogic.gdx.graphics.g2d.BitmapFont getSevenTwelveFont()
public static com.badlogic.gdx.graphics.g2d.BitmapFont getOctagonalMonoFont()
public static com.badlogic.gdx.graphics.g2d.BitmapFont getCozyFont()
public static com.badlogic.gdx.graphics.g2d.BitmapFont getCozyOutlinedFont()
public static TextCellFactory getStretchableSquareFont()
public static TextCellFactory getStretchableHeavySquareFont()
getStretchableSquareFont()
, the font this uses was made to be square initially,
and is not a distorted/stretched version of an existing font. Caches the result for later calls.
public static TextCellFactory getCrispCurvySquareFont()
getStretchableSquareFont()
, the font this uses was made to be square initially, and is not a
distorted/stretched version of an existing font. This font only supports ASCII, and as said before, it doesn't
have separate lower-case letters. Note: if you use this font as-is, most characters will overlap slightly with
each other, which can be an aesthetic benefit in some styles but can also be hard to read, at least if the colors
aren't different between overlapping characters. For that reason, you may want to tweak the width and height of
this font after passing it to a SquidLayers or SparseLayers; often you would pass 0.875 times the original
width and height to TextCellFactory.tweakWidth(float)
and TextCellFactory.tweakHeight(float)
.
Caches the result for later calls. The font is "square" by Wouter van Oortmerssen; it is available under a
CC-BY-3.0 license, which requires attribution to Wouter van Oortmerssen if you use it.
public static TextCellFactory getCrispOctagonalSquareFont()
getStretchableSquareFont()
, the font this uses was made to be square initially, and is not a
distorted/stretched version of an existing font. This font only supports ASCII, but it supports all of it, unlike
getCrispCurvySquareFont()
. 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.
public static TextCellFactory getStretchableFont()
public static TextCellFactory getStretchableTypewriterFont()
public static TextCellFactory getStretchableCodeFont()
public static TextCellFactory getStretchableCodeJPFont()
public static TextCellFactory getStretchableLeanFont()
getStretchableSlabFont()
, though they have subtly different sizes. There are
also versions of Iosevka that use a Light weight, available by getStretchableLeanLightFont()
and
getStretchableSlabLightFont()
.
public static TextCellFactory getStretchableSlabFont()
getStretchableLeanFont()
, though they have subtly different sizes. There are
also versions of Iosevka that use a Light weight, available by getStretchableLeanLightFont()
and
getStretchableSlabLightFont()
.
public static TextCellFactory getStretchableLeanLightFont()
getStretchableSlabLightFont()
, though they have subtly different sizes. There are
also versions of Iosevka that do not use this Light weight, available by getStretchableLeanFont()
and
getStretchableSlabFont()
.
public static TextCellFactory getStretchableSlabLightFont()
getStretchableLeanLightFont()
, though they have subtly
different sizes. There are also versions of Iosevka that do not use this Light weight, available by
getStretchableLeanFont()
and getStretchableSlabFont()
.
public static TextCellFactory getStretchableDejaVuFont()
SquidPanel.setTextSize(float, float)
or SquidLayers.setTextSize(float, float)
,
giving 1-2 more than the cell width for x and 3-5 more than the cell height for y.
public static TextCellFactory getStretchablePrintFont()
public static TextCellFactory getStretchableOrbitFont()
public static TextCellFactory getStretchableCleanFont()
public static TextCellFactory getCrispSlabFont()
@Deprecated public static TextCellFactory getCrispSlabItalicFont()
getCrispSlabFamily()
insteadpublic static TextCellFactory getCrispLeanFont()
@Deprecated public static TextCellFactory getCrispLeanItalicFont()
getCrispLeanFamily()
insteadpublic static TextCellFactory getCrispCascadiaFont()
public static TextCellFactory getCrispDejaVuFont()
@
, but the line height, baseline, and the
width for most glyphs seem correct. If you find the box drawing characters don't line up, try
TextCellFactory.tweakWidth(float)
with values like 1.125f; the exact value may depend on size.
public static TextCellFactory getCrispSmoothFont()
public static TextFamily getSlabFamily()
getLeanFamily()
.
public static TextFamily getLeanFamily()
getSlabFamily()
.
public static TextFamily getGoFamily()
getSlabFamily()
and getLeanFamily()
respectively.
public static TextFamily getCrispLeanFamily()
getCrispSlabFamily()
.
public static TextFamily getCrispSlabFamily()
getCrispLeanFamily()
.
public static TextFamily getCrispPrintFamily()
public static TextCellFactory getCrispCarvedFont()
public static TextCellFactory getCrispRobotoSansFont()
public static TextCellFactory getCrispIconFont()
iconFontAll
has that.
public static com.badlogic.gdx.graphics.g2d.TextureRegion getTentacle()
public static com.badlogic.gdx.graphics.g2d.TextureAtlas getIconAtlas()
public static squidpony.squidmath.StatefulRNG getGuiRandom()
public static SquidColorCenter getSCC()
public void pause()
Application
is about to pausepause
in interface com.badlogic.gdx.LifecycleListener
public void resume()
resume
in interface com.badlogic.gdx.LifecycleListener
public void dispose()
Application
is about to be disposeddispose
in interface com.badlogic.gdx.LifecycleListener
Copyright © Eben Howard 2012–2022. All rights reserved.