pub fn add_string_with_font(
    str_value: &str,
    font: &Font,
    x: f32,
    y: f32,
    sx: f32,
    scale_y: f32
) -> f32
Expand description

Adds a string to the current frame with a specified font.

Arguments

  • str - A &str representing the string to add.
  • font - A *mut CGL_font representing the font to use.
  • 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.
  • scale_y - A f32 representing the y-scale of the string.

Returns

A f32 representing the width of the string.