* Contains overall horizontal metrics and caret slope.
* Also contains line spacing (Mac).
*/
private void processHheaTable(Font font)
{
HheaTable hhea = font.getHheaTable();
if (hhea != null)
{
//TODO: I'm skeptical about these values, shouldn't the x-height and baseline be taken into consideration here?!
ascent = (short)Math.rint(hhea.getAscender() * emScale * (useTwips ? SwfConstants.TWIPS_PER_PIXEL : 1));
descent = (short)Math.rint(hhea.getDescender() * emScale * (useTwips ? SwfConstants.TWIPS_PER_PIXEL : 1));
lineGap = (short)Math.rint(hhea.getLineGap() * emScale * (useTwips ? SwfConstants.TWIPS_PER_PIXEL : 1));
}
else
{
if (Trace.font)
Trace.trace("Font " + fontFamily + " did not have an HHEA Table.");