Skip to main content

Crate kova_native_text

Crate kova_native_text 

Source
Expand description

Text for Kova Native.

Text is a first-class part of the framework:

  • TextSystem owns the font database (system fonts + loaded fonts), font fallback (emoji, CJK, symbols) and glyph rasterization with subpixel positioning at any HiDPI scale.
  • TextLayout holds shaped (HarfBuzz-compatible shaping, kerning, ligatures, BiDi), wrapped and measured text, and answers hit-testing, caret and selection geometry queries.
  • TextStyle describes how text looks.

Structs§

FontWeight
Font weight on the CSS 100–900 scale.
GlyphInstance
A glyph positioned in device pixels, ready to be rasterized and drawn.
GlyphKey
Identifies a rasterized glyph: font, glyph id, pixel size, subpixel offset and weight. Used as the glyph atlas key.
LineMetrics
Metrics of one visual line.
RasterizedGlyph
A rasterized glyph bitmap.
TextLayout
A block of text shaped with a single style.
TextStyle
The resolved style of a run of text.
TextSystem
Owns fonts and performs shaping-related lookups and rasterization.

Enums§

FontStyle
LineHeight
Line height, relative to the font size or absolute.
TextAlign
TextWrap

Constants§

MONOSPACE
Generic family name resolved to the platform monospace font (Cascadia Mono / Consolas on Windows, SF Mono / Menlo on macOS, …).