How does adobe position multiple lines in vertical alignment middle
I'm making a web2print application and I'm having issues with text that has vertical align middle.
I have no issues with vertical align top & bottom.
I've made a font parser which reads the font table and from the os2 table i use the ascender values to adjust the text position in web based on the differnce between baseline & ascender (all our allignments are based on the ascender) .
This correction works with single line text (middle align) but as soon if I have multiple lines my calculations are no longer correct. What I do for middle align: I take the first paragraph and modify the position to ascender and then I do display:table-cell & vertical-align:middle.
How does adobe position multiple lines of text in a text frame with vertical alignment middle?
