a generic function to find height for label by passing the string that the label is to be populated
<p>i need to find height for a label with certain text based on its font and length.
It requires to be generic to hold font as well as a parameter.</p>
