STATIC FUNCTION TextWidth ( Text AS String ) AS Integer