Class FallbackText

java.lang.Object
privbot.ui.overlay.FallbackText

public final class FallbackText extends Object
Text drawn in runs, so characters the chosen font has no glyph for (an emoji, a pickaxe) are drawn in "Segoe UI Emoji", then "Dialog", at the same size and style instead of as a missing-glyph box. The fallback glyphs are single-colour: they take the graphics' current colour like any other text.

Text the primary font can draw whole takes the plain drawString path. Fallback fonts are derived once per (family, style, size) and cached; prepare(Font) warms the cache off the render thread so paint never creates a font.