private void processHheaTable(Font font){
  HheaTable hhea=font.getHheaTable();
  if (hhea != null) {
    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.");
  }
}

private void processHheaTable ( Font font ) { HheaTable hhea = font . getHheaTable ( ) ; if ( hhea != null ) { 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." ) ; } }
contains overall horizontal metrics and caret slope . also contains line spacing ( mac ) .
