What font value does InDesign use for Ascend/Cap height of a font? InDesign bug or font bug?
My document uses Gill Sans (macOS standard font) for a section heading, which is (and must be) a normal paragraph. When I change this to the Cabin font (Google Fonts), suddenly my section head takes up extra vertical space, like this (left: Cabin 102pt, right: Gill Sans 102pt)

The only thing I changed was the font. I dug into this and I found out that the Basic Text Frame Object uses the ascend of the font to calculate the position of the first line. Gill Sans apparently has an ascent height that is identical to the cap height. Cabin, apparently, produces a weird ascent height value for the font.
If I do the same trick in Textedit or Word, no such large white space happens at the top, which suggests InDesign is using a wrong (in this case even crazy) value for the ascend. Or maybe there is a bug in the font (but then, I have to say, this is a bug in many fonts because many fonts behave like this in InDesign). I am wondering how to handle this. Using Cap height minus a fixed amount to get to ascend height is not a good idea as some text frames will start with a large font, and others with a small one. And I get the impression this produces other issues as well (but I am not certain yet)
What value from the font does InDesign use when it looks for Ascend height? Does this example actually show an InDesign bug or a font bug?
