snapToPixelsSet
Set snap_to_pixels setting. If true:
- fonts are rendered at @floor(font.size)
- drawing is generally rounded to the nearest pixel
Returns the previous setting.
Only valid between Window.beginand Window.end.
Parameters
- snap:bool
- bool
Source
Implementation
pub fn snapToPixelsSet(snap: bool) bool {
const cw = currentWindow();
const old = cw.snap_to_pixels;
cw.snap_to_pixels = snap;
return old;
}