I am working on an application, where the canvas is rendered with specific text. Font-weight and color is different. I am able to get color but I have to somehow calculate the f