Skip to main content

supports_char

Function supports_char 

Source
pub fn supports_char(ch: char) -> bool
Expand description

Whether the loaded PSF font can actually render ch.

The console font (zap-ext-light20) covers full box drawing, █, ░, ▒, • and the arrows, but has no sparkline levels (▁..▇) and no triangles. Widget renderers use this to keep pretty glyphs when they exist and fall back to ASCII otherwise, instead of forcing a downgrade for every character.