hmFree_GET TEXT MEASURES
hmFree_GET TEXT MEASURES(text;fontname;fontsize;fontstyle;width;height;ascent;descent)
Parameter Type Description
text Text -> A text value
fontname Text -> The fontname
fontsize Real -> The size of the font
fontstyle Longint -> The font style
width Real <- The width of the text
height Real <- The height of the text
ascent Real <- The ascent of the text
descent Real <- the descent of the text
The command hmFree_GET TEXT MEASURES measures the text, based on the font information: fontname, fontsize and fontstyle.
The following picture shows you the ascent, height and descent:
4D constants may be used for the style parameter. See the 4D documentation for details.