textheight() function returns the height of the specified string. textheight() function gives the height of string which is based on the current setting of the settextstyle() function which is used to change font style family and direction of the text.
- textheight() function contains only one argument which represent the string whose height has to be calculated.
- For better understanding go through the program:
int gd=DETECT, gm,w;
sprintf(arr,"textheight of given string=%d",w);