pub fn density() -> f32
What the Renderer last reported, or 1.0 before it has. Available outside a component too.
In a multi-window application it is the density of the window the caller is in.