Skip to main content

Module diagnostics

Module diagnostics 

Source
Expand description

Shared render-time glyph diagnostics (diagnostics::warn_notdef_glyph). Shared render-time glyph diagnostics, called identically by every graphical backend so a consumer sees the same message regardless of which one it built with.

DiagnosticLog is the state a renderer carries: one field per backend instead of one BTreeSet<char> per diagnostic, so “which diagnostics does a windowed renderer emit” is answered by this struct’s methods rather than by grepping every backend for warned_* fields. DiagnosticLog::notdef_glyph is not gated behind the tilesets feature: it fires from plain FontChain resolution, which has nothing to do with sprites and is reachable with no other feature enabled. The sprite-only diagnostics (sprite_needs_span, tint_needs_sprite) are.

Structs§

DiagnosticLog
The dedup state behind every render-time diagnostic a windowed renderer can emit.

Functions§

warn_notdef_glyph
Warns, at most once per character, that ch did not resolve to its own glyph anywhere in the chain.