/// Returns the face's Postscript name.
Returns the face's Postscript name.
Returns the face ' s Postscript name .
pub fn postscript_name(&self) -> Result<String, Error> {
        // Unsafe to call FreeType FFI.
        let postscript_name = unsafe {
            // According to the FT docs, this is supposed to be an ASCII string, so it should
            // trivially convert to UTF-8.
            //
            // Note: Must use c_char, not i8 or u8, because c_char's definition depends on the 
            // architecture.
            let postscript_name =
                FT_Get_Postscript_Name(self.ft_face) as *const std::os::raw::c_char;
            let postscript_name = CStr::from_ptr(postscript_name);
            postscript_name
                .to_str()
                .map_err(|e| format_err!("Failed to decode Postscript name. Error: {:?}", e))?
                .to_string()
        };
        Ok(postscript_name)
    }
pub fn postscript_name ( & self ) -> Result < String , Error > { // Unsafe to call FreeType FFI. let postscript_name = unsafe { // According to the FT docs, this is supposed to be an ASCII string, so it should // trivially convert to UTF-8. // // Note: Must use c_char, not i8 or u8, because c_char's definition depends on the  // architecture. let postscript_name = FT_Get_Postscript_Name ( self . ft_face ) as * const std :: os :: raw :: c_char ; let postscript_name = CStr :: from_ptr ( postscript_name ) ; postscript_name . to_str ( ) . map_err ( | e | format_err ! ( " " e ) ) ? . to_string ( ) } ; Ok ( postscript_name ) }
Returns the face's Postscript name.
Returns the face ' s Postscript name .
&self