pub struct TtfFont { /* private fields */ }Implementations§
Source§impl TtfFont
impl TtfFont
pub fn new( path: String, size: u16, tc: Rc<TextureCreator<WindowContext>>, ) -> Self
pub fn render_text(&self, text: &str, color: SdlColor) -> Option<TextTexture>
pub fn measure_text(&self, text: &str) -> (u32, u32)
Auto Trait Implementations§
impl Freeze for TtfFont
impl RefUnwindSafe for TtfFont
impl !Send for TtfFont
impl !Sync for TtfFont
impl Unpin for TtfFont
impl UnsafeUnpin for TtfFont
impl UnwindSafe for TtfFont
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more