Measures the height of text with the given font configuration
The text to measure
The font configuration to apply
The height of the text
Measures the width of text with the given font configuration
The text to measure
The font configuration to apply
The width of the text
Measures text using Canvas API