height = TextHeight(string$)
string$
if it was rendered on the display. So it takes care of the currently
selected font as well as the font style.
height = TextHeight("Hello World") pos = (480 - height) / 2 Locate(0, pos) Print("Hello World")The above code centers the text "Hello World" vertically on a 480 pixel-high display.