Module helpers.vMetrics

calculate the width of a given string

Functions

fit_text (str, max_width, font) create a string which can fit in a given space


Functions

fit_text (str, max_width, font)
create a string which can fit in a given space

Parameters:

  • str (string)
  • max_width (int), width in pixels
  • font (string), see vTextField.FONT
generated by LDoc 1.4.2