pub fn add_string(str_value: &str, x: f32, y: f32, sx: f32, sy: f32) -> i32
Expand description

Adds a string to the current frame.

Arguments

  • str - A &str representing the string to add.
  • x - A f32 representing the x-coordinate of the starting point of the string.
  • y - A f32 representing the y-coordinate of the starting point of the string.
  • sx - A f32 representing the x-scale of the string.
  • sy - A f32 representing the y-scale of the string.

Returns

An i32 representing the width of the string.