calculates the approximate width of a text, depending on a demo text avoid repeated calls (e.g. inside drawing methods)
calculates the approximate width of a text, depending on a demo text avoid repeated calls (e.g. inside drawing methods)