Skip to main content

layout

Function layout 

Source
pub fn layout(spec: ConsoleSpec, screen_w: f32, screen_h: f32) -> Layout
Expand description

Fits a spec console into a screen_w × screen_h window: the largest integer scale that fits (at least 1, so a too-small window crops the edges evenly), centred on whole pixels so glyphs stay crisp.