Text function

This section describes text function

Text function is used to specify text to be drawn over icon.

Format of function is `text(text, rotate, size, relpos_x, relpos_y, trim_factor)`

Parameters:

  • text(string) – Text to display.
  • rotate(string) – Optional, specify how text reacts to rotate/flip operations
  • size(integer) – Optional, specify size of text.
  • relpos_x(real) - Optional, relative position in terms of icon width where text center will be placed
  • relpos_y(real) - Optional, relative position in terms of icon height where text center will be placed.
  • trim_factor(real) - Optional, specify which part of text rectangle width will be used as limit when shortening text.

Example:

text("R1", rotate="no_rotate", size=14)