Skip to main content

char_width

Function char_width 

Source
pub fn char_width(c: char) -> f32
Expand description

Advance width in pixels (including 1px inter-glyph spacing) of one char in Minecraft’s default font at GUI scale 1, as the game’s font has it; beyond ASCII (glyphs vary) CHAR_W.