/// Maps ASCII codes from a string to consecutive characters in a bitmap font.
///
/// # Arguments
///
/// * `s`: String containing ASCII codes to map
/// * `font_char_x/font_char_y`: The coordinate of the character in the
/// bitmap font (in characters, not pixels) corresponding to the first ASCII
/// code in the string
Maps ASCII codes from a string to consecutive characters in a bitmap font.
Maps ASCII codes from a string to consecutive characters in a bitmap font .
pub fn map_string_to_font(&mut self,
                              s: &str,
                              font_char_x: i32,
                              font_char_y: i32) {
        unsafe {
            let string = CString::new(s).ok().expect("Could not convert the given \
                                                      string to a C string.");
            ffi::TCOD_console_map_string_to_font(
                string.as_ptr(),
                font_char_x,
                font_char_y
            );
        }
    }
pub fn map_string_to_font ( & mut self , s : & str , font_char_x : i32 , font_char_y : i32 ) { unsafe { let string = CString :: new ( s ) . ok ( ) . expect ( " \
 " ) ; ffi :: TCOD_console_map_string_to_font ( string . as_ptr ( ) , font_char_x , font_char_y ) ; } }
Maps ASCII codes from a string to consecutive characters in a bitmap font.
Maps ASCII codes from a string to consecutive characters in a bitmap font .
&mut self
s
&str
font_char_x
i32
font_char_y
i32