Function noto_sans_mono_bitmap::get_bitmap_width
source · [−]pub const fn get_bitmap_width(style: FontWeight, size: BitmapHeight) -> 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 BitmapHeight
. The width is
a few percent smaller than the height of each char
To see why the term “bitmap” is used, see section Terminology in the README.