Returns width of the string in px.
getStrWidth(str, styles)
str string, string to calculate width
styles string, styles for the string
Calculates and returns width of the string in pixels.