I need to create a graphical element that needs to be exactly twice the height of a capitalized letter.
I have the font size defined externally with JS using 'px' and then the graphic is drawn based on this same value.
As a rule of thumb, I have been using 1.5x of the px font-size value to be the capital height. However, this is not accurate enough and changes at larger sizes.
so what exactly does font size define and is there a way to know its mathematical relation to a capitalized letter in a font?