Note:
- I need ascent descent and CapHeight of font and not just line-height.
- Need metrics using client-side Scripting(JavaScipt).
Note:
You can use opentype.js to parse a font to get values in the font's OS/2 table. For ascent, descent and cap height, use the sTypoAscender, sTypoDescender and sCapHeight fields.