GetFontWidth

From GT-MP
Jump to: navigation, search
GetFontWidth
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript


Gets the font width.

Syntax

double API.getFontWidth(string text, int font, double scale);

Required Arguments

  • text: parameter input should be in string type.
  • font: parameter input should be in int type.
  • scale: parameter input should be in double type.

Note: This function returns data in double type.

Usage example(s)

double API.getFontWidth(string text, int font, double scale);


References