pangocairo::functions

Function context_get_resolution

Source
pub fn context_get_resolution(context: &Context) -> f64
Expand description

Gets the resolution for the context.

See [context_set_resolution()][crate::context_set_resolution()]

§context

a pango::Context, from a pangocairo font map

§Returns

the resolution in “dots per inch”. A negative value will be returned if no resolution has previously been set.