pub fn get_text_width<S: AsRef<str>>(
text: S,
font: Option<&Font>,
tracking: c_int,
) -> Result<c_int, NulError>Expand description
Returns the width of the given text in the given font.
This function is shorthand for Graphics::get_text_width,
using default ZST end-point.
Equivalent to sys::ffi::playdate_graphics::getTextWidth.