///
/// Returns the font metrics for the painter if the painter is
/// active. Otherwise, the return value is undefined.
///
/// **See also:** [`font()`]
/// [`is_active()`]
/// {QPainter#Settings}{Settings}
///
/// Returns the font info for the painter if the painter is
/// active. Otherwise, the return value is undefined.
///
/// **See also:** [`font()`]
/// [`is_active()`]
/// {QPainter#Settings}{Settings}
///
/// Returns the currently set font used for drawing text.
///
/// **See also:** [`set_font()`]
/// [`draw_text()`]
/// {QPainter#Settings}{Settings}
Returns the font metrics for the painter if the painter is
active. Otherwise, the return value is undefined.



Returns the font info for the painter if the painter is
active. Otherwise, the return value is undefined.



Returns the currently set font used for drawing text.


Returns the font metrics for the painter if the painter is active . Otherwise the return value is undefined . Returns the font info for the painter if the painter is active . Otherwise the return value is undefined . Returns the currently set font used for drawing text .
pub fn font(&self) -> Option<Font> {
        let (obj_data, funcs) = self.get_painter_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).font)(obj_data);
            if ret_val.qt_data == ::std::ptr::null() {
                return None;
            }
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Font::new_from_rc(t);
            } else {
                ret_val = Font::new_from_owned(t);
            }
            Some(ret_val)
        }
    }
pub fn font ( & self ) -> Option < Font > { let ( obj_data , funcs ) = self . get_painter_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . font ) ( obj_data ) ; if ret_val . qt_data == :: std :: ptr :: null ( ) { return None ; } let t = ret_val ; let ret_val ; if t . host_data != :: std :: ptr :: null ( ) { ret_val = Font :: new_from_rc ( t ) ; } else { ret_val = Font :: new_from_owned ( t ) ; } Some ( ret_val ) } }
Returns the font metrics for the painter if the painter is
active.
Returns the font metrics for the painter if the painter is active .
&self