Line height in Keynote/selection bar in Adobe apps

Hello. I am running into an issue with line height in Keynote. I am seeing a probably related behaviour in InDesign, which is noticeable with the height of the selection bar.

I see this even in Adobe fonts, and fonts from Google, but I don’t see it in fonts from Apple (SF Compact, for example).

Myriad Pro in InDesign:

You can see that the black bar is noticeably smaller in the Regular style on the left, and higher for the Bold on the right.

Alegreya Sans in Keynote:

In my current project, I have compared every possible vertical metric and synchronised everything, but I get the same behaviour, in both InDesign and Keynote. Apple fonts don’t show this behaviour. Use Typo Metrics is set in all fonts.

SF Compact in Keynote keeps the same height in all styles:

Any tips? Thanks!

The selection rectangle in InDesign represents the vertical measures of the bounding box. I do not know about Keynote.

What exactly does this mean? How is this bounding box calculated? I have the same vertical metrics set everywhere. From what I can see, both InDesign and Keynote arrive at the same calculations.

The vertical measures of the bounding box are the highest and lowest y coordinates of all the points in all the glyphs in the font. You can change it only by changing the outlines in your font.

I checked the font binaries of SF Text Pro. The highest and lowest y coordinates differ significantly between different styles (for example, max 3181/min -1607 in Black and max 2830/min -1261 in Thin). All styles of the SF superfamily share the same bounding box perfectly in Keynote, despite having significantly different actual bounding boxes.

There must be something else at play.

Not for InDesign, which you had also inquired about.

I don’t know how Keynote or Pages calculates this. O suppose external factors (that you cannot influence through the font) play a role as well. Why is this important?

And aren’t the SF fonts in use VFs?