Question about normalizing percentage-based "textAltitude" or "textDepth" values

Hello all,

I want to parse a percentage-based "textAltitude" or "textDepth" values, like "150%", into pixel-based values, like "31px", which is required by the normalization process specified in spec VI7-41-2.

I had read spec VI7-95 and [XSL] 7.27.4 / 7.27.5 to find out that the percentage-based values shall be calculated based on the "em-height" of font, but I am not sure what that "em-height" is, and if I just consider the textSize as "em-height", the calculated values will not meet the testing contents' spectations.

Can someone explain what the "em-height" of font is and how to calculate the pixel value of percentage-based "textAltitude" or "textDeph" I had lost in the XSL specifications for some days...

Thanks~

Best Regards,
Rekan.



Answer this question

Question about normalizing percentage-based "textAltitude" or "textDepth" values

  • daph4ntom

    The fontSize determines the em size, so it is 150% of whatever the font size is (which should already be given in pixels).

    Also, please note that this forum is primarily for content authoring issues, not spec implementation issues.



  • Question about normalizing percentage-based "textAltitude" or "textDepth" values