Skip to content

Text

The text runs and their styles, the fonts (MSDF, bitmap and glyph fonts of your own) with their loader and sources, and the markups, effects, modifiers and converters that change what a text shows. Learn: Text, Fonts, Text markup and effects, Custom fonts and MSDF.

TypeKindSummary
BinaryMsdfSourceclassReads a face from a .msdf file made by the msdf tool of JOID, with no generation at load time.
BitmapCellclassThe rectangle of a texture that holds one glyph of a bitmap font, and where that glyph sits in its line.
BitmapFontclassBase class of the pixel fonts, glyph fonts drawn from texture cells at an exact bitmap size.
BitmapTextRendererclassBase class of the text renderers of pixel fonts, which draws each glyph from the BitmapCell you return.
DevFontclassThe font of the dev tools, Montserrat in its nine weights, loaded at startup in dev mode only.
DrawTextclassDraws and measures text, on one line or wrapped in a box.
FontBoundsclassThe width and the height of a drawn or measured text, in design pixels.
FontFamilyclassThe faces of one font, by weight and style, from which a text picks the face it draws with.
FontWeightenumThe nine standard font weights, from 100 (thin) to 900 (black).
GlyphFontclassBase class of the fonts made of glyphs, which hold a FontFamily of faces.
GlyphLayoutclassA string laid out on one line, as the list of its glyph placements and its width.
GlyphPlacementclassThe place of one character in a GlyphLayout, with the font, the face and the style it draws with.
GlyphTextRendererclassBase class of the text renderers of glyph fonts, which lays out, kerns, styles and shadows the text and leaves the drawing of each glyph to you.
IFontinterfaceA font that JOID can draw, which names the text renderer that measures and draws it.
IFontFaceinterfaceOne face of a glyph font, a weight and a style, with its metrics on 1 of the font size.
IMsdfSourceinterfaceA source that reads one MsdfFontFace, from a font file or from anything else.
ITextConverterinterfaceTurns a value of a type of yours into the string that a text shows.
ITextEffectinterfaceAn effect on the glyphs of a text, which can move, recolor or replace each glyph and draw behind or over it.
ITextGlyphinterfaceOne laid-out glyph as an ITextEffect sees it, with its place, its metrics in design pixels, and the codepoint, color and offset an effect can change.
ITextMarkupinterfaceA markup tag that a text reads inline, such as a bold or a color tag, which changes the style of the characters after it.
ITextRendererinterfaceMeasures and draws the strings of one kind of font.
MsdfAtlasclassThe size of an MSDF atlas image, the em size it was generated at and its distance range.
MsdfBoundsclassA rectangle of an MSDF glyph, either on 1 of the em with Y up or in pixels of the atlas.
MsdfFontclassA font drawn from multi-channel signed distance fields, sharp at every size, with one face per weight and style.
MsdfFontFaceclassOne face of an MsdfFont, with its atlas texture, its metrics, its glyphs and its kerning.
MsdfFontLoaderclassLoads an MSDF font from the files of its faces, in the background, and completes a future with the MsdfFont.
MsdfGlyphclassOne glyph of an MSDF face, with its advance and where it sits on the line and in the atlas.
MsdfMetricsclassThe vertical metrics of an MSDF face, on 1 of the em.
MsdfSourceclassBase class of the MSDF sources, which can override the weight and the style that the file declares.
MsdfTextRendererclassThe text renderer of every MsdfFont, which draws each glyph from the distance field of its face.
OpenTypeMsdfSourceclassReads a face from a TrueType or OpenType file, generating its MSDF atlas into the cache folder on the first load.
TextclassA run of text made of one or more elements, each with its own style, plus the alignment, overflow marker and modifier of the whole run.
TextConverterclassThe registry of the text converters, which turns any value into the string a text shows.
TextElementclassOne styled part of a Text, with its value, its TextInfo and its own modifier.
TextGlyphclassThe ITextGlyph that a GlyphTextRenderer lays out and draws, with the face and the font it comes from.
TextInfoclassThe style of a text, with its font, size, weight, color, spacing, shadow, markups and effects, and the measures it gives.
TextMarkupclassThe registry of the markup tags that every text reads, and the helpers that find the tags in a string.
TextModeenumHow a text fits a box, on one line, cut, wrapped, or wrapped and clipped.
TextModifierinterfaceChanges the characters a text shows, such as its case, without changing its value.
TextOverflowenumThe marker that ends a text cut to fit a box with TextMode.OVERFLOW.
TextStyleclassThe running style of the characters while a text is laid out, which markup tags change as they are read.

Report a problem with this page