getStringHeight


function getStringHeight(text: string): integer;

Returns the height (in pixels) for showing the 'text' on display in the current font.

  var text: string;
    height: integer;
  begin
    text   := 'Text to display';
    height := getStringHeight(text);
    drawText(text, 0, (getHeight - height)/2);
    repaint;
    delay(1000);
  end.

See also: getStringWidth, getWidth, getHeight, repaint