Using DirectWrite and Direct2D1, I am attempting to mimic the rendering that Illustrator CS6 does to an area text box. CS6 has an option where the baseline can be placed at a distance from the top of the area text box that equals the font's "em box size". For example, using Trajan Pro font, 100pt point size, the baseline is 87.5pt from the top of the area text box.
From an IDWriteFontFace object, I can get the ascent, descent, designUnitsPerEm values, etc.
What seems to be missing is the baseline location relative to the top of the em box.
Is there a way to get the baseline position in design units relative to the top of the em box?
DWRITE_FONT_METRICS doesn't have it. I looked at DWRITE_LINE_METRICS, but it's baseline value is ascent + lineGap and does not match.