I want to calculate the string width, not just the normal string but something similar to HTML rendered fonts where we can apply font properties such as font-family, font-si