Expand description
Text for Kova Native.
Text is a first-class part of the framework:
TextSystemowns the font database (system fonts + loaded fonts), font fallback (emoji, CJK, symbols) and glyph rasterization with subpixel positioning at any HiDPI scale.TextLayoutholds shaped (HarfBuzz-compatible shaping, kerning, ligatures, BiDi), wrapped and measured text, and answers hit-testing, caret and selection geometry queries.TextStyledescribes how text looks.
Structs§
- Font
Weight - Font weight on the CSS 100–900 scale.
- Glyph
Instance - A glyph positioned in device pixels, ready to be rasterized and drawn.
- Glyph
Key - Identifies a rasterized glyph: font, glyph id, pixel size, subpixel offset and weight. Used as the glyph atlas key.
- Line
Metrics - Metrics of one visual line.
- Rasterized
Glyph - A rasterized glyph bitmap.
- Text
Layout - A block of text shaped with a single style.
- Text
Style - The resolved style of a run of text.
- Text
System - Owns fonts and performs shaping-related lookups and rasterization.
Enums§
- Font
Style - Line
Height - Line height, relative to the font size or absolute.
- Text
Align - Text
Wrap
Constants§
- MONOSPACE
- Generic family name resolved to the platform monospace font (Cascadia Mono / Consolas on Windows, SF Mono / Menlo on macOS, …).