noto_sans_mono_bitmap

Function get_raster_width

Source
pub const fn get_raster_width(style: FontWeight, size: RasterHeight) -> usize
Expand description

Returns the width in pixels a char will occupy on the screen.

The width is constant for all characters regarding the same combination of FontWeight and RasterHeight. The width is a few percent smaller than the height of each char