Sdf Atlas Manager
Android implementation of SDF atlas manager for text rendering.
Manages two atlas bitmaps:
Normal atlas: Pre-processed alpha for crisp text edges
Shadow atlas: Pre-processed alpha for smooth shadow/glow effects
SDF processing is performed in Rust for optimal performance:
A channel: normal text alpha
G channel: shadow alpha
Parameters
Width of the atlas texture in pixels
Height of the atlas texture in pixels
Manages the SDF atlas texture for text rendering. This is a platform-specific implementation that handles:
Atlas texture creation and updates
Drawing glyphs from the atlas using SDF techniques
JVM/Desktop implementation of SDF atlas manager for text rendering.
Manages two atlas images:
Normal atlas: Pre-processed alpha for crisp text edges
Shadow atlas: Pre-processed alpha for smooth shadow/glow effects
SDF processing is performed in Rust for optimal performance:
A channel: normal text alpha
G channel: shadow alpha
Parameters
Width of the atlas texture in pixels
Height of the atlas texture in pixels
Constructors
Properties
Functions
Clears fallback fonts. No-op: use NativeTextEngine.clearFallbackFonts instead.
Clears all loaded fallback fonts.
Clears fallback fonts. No-op: use NativeTextEngine.clearFallbackFonts instead.
Draws a glyph from the atlas to the canvas with optional shadow.
Draws a glyph from the atlas to the canvas. Uses SDF rendering for crisp text at any scale.
Draws a glyph from the atlas to the canvas with optional shadow.
Loads a fallback font. No-op: use NativeTextEngine.loadFallbackFont instead.
Loads a fallback font for missing glyphs. Fallback fonts are tried in the order they are loaded.
Loads a fallback font. No-op: use NativeTextEngine.loadFallbackFont instead.
Loads the primary font. No-op: use NativeTextEngine.loadFont instead.
Loads the primary font. No-op: use NativeTextEngine.loadFont instead.
Updates the atlas textures with pending glyph uploads from the native engine.
Updates the atlas texture with pending uploads from the native engine. Call this before drawing if the engine has pending uploads.
Updates the atlas textures with pending glyph uploads from the native engine.