pub fn load_font_from_rwops<'ttf, 'r>(
        &'ttf self,
        rwops: RWops<'r>,
        point_size: u16,
    ) -> Result<Font<'ttf, 'r>, String> {
        let raw = unsafe { ttf::TTF_OpenFontRW(rwops.raw(), 0, point_size as c_int) };
        if (raw as *mut ()).is_null() {
            Err(get_error())
        } else {
            Ok(internal_load_font_from_ll(raw, Some(rwops)))
        }
    }
/// Loads a font from the given SDL2 rwops object with the given size in
/// points.
Loads a font from the given SDL2 rwops object with the given size in
points.
Loads a font from the given SDL2 rwops object with the given size in points .
pub fn load_font_from_rwops<'ttf, 'r>(
        &'ttf self,
        rwops: RWops<'r>,
        point_size: u16,
    ) -> Result<Font<'ttf, 'r>, String> {
        let raw = unsafe { ttf::TTF_OpenFontRW(rwops.raw(), 0, point_size as c_int) };
        if (raw as *mut ()).is_null() {
            Err(get_error())
        } else {
            Ok(internal_load_font_from_ll(raw, Some(rwops)))
        }
    }
pub fn load_font_from_rwops < ' ttf , ' r > ( & ' ttf self , rwops : RWops < ' r > , point_size : u16 , ) -> Result < Font < ' ttf , ' r > , String > { let raw = unsafe { ttf :: TTF_OpenFontRW ( rwops . raw ( ) , 0 , point_size as c_int ) } ; if ( raw as * mut ( ) ) . is_null ( ) { Err ( get_error ( ) ) } else { Ok ( internal_load_font_from_ll ( raw , Some ( rwops ) ) ) } }
Loads a font from the given SDL2 rwops object with the given size in
points.
Loads a font from the given SDL2 rwops object with the given size in points .
&'ttf self
rwops
RWops<'r>
point_size
u16
&'ttf self
rwops
RWops<'r>
point_size
u16