public String toString(){
  StringBuffer buf=new StringBuffer();
  String indent="    ";
  buf.append(indent + "Version             : " + Integer.toHexString(getVersion())+ "\n");
  buf.append(indent + "Ascent              : " + getAscent()+ "\n");
  buf.append(indent + "Descent             : " + getDescent()+ "\n");
  buf.append(indent + "LineGap             : " + getLineGap()+ "\n");
  buf.append(indent + "AdvanceWidthMax     : " + getAdvanceWidthMax()+ "\n");
  buf.append(indent + "MinLSB              : " + getMinLeftSideBearing()+ "\n");
  buf.append(indent + "MinRSB              : " + getMinRightSideBearing()+ "\n");
  buf.append(indent + "MaxExtent           : " + getXMaxExtent()+ "\n");
  buf.append(indent + "CaretSlopeRise      : " + getCaretSlopeRise()+ "\n");
  buf.append(indent + "CaretSlopeRun       : " + getCaretSlopeRun()+ "\n");
  buf.append(indent + "CaretOffset         : " + getCaretOffset()+ "\n");
  buf.append(indent + "MetricDataFormat    : " + getMetricDataFormat()+ "\n");
  buf.append(indent + "NumOfLongHorMetrics : " + getNumOfLongHorMetrics()+ "\n");
  return buf.toString();
}

public String toString ( ) { StringBuffer buf = new StringBuffer ( ) ; String indent = "    " ; buf . append ( indent + "Version             : " + Integer . toHexString ( getVersion ( ) ) + "\n" ) ; buf . append ( indent + "Ascent              : " + getAscent ( ) + "\n" ) ; buf . append ( indent + "Descent             : " + getDescent ( ) + "\n" ) ; buf . append ( indent + "LineGap             : " + getLineGap ( ) + "\n" ) ; buf . append ( indent + "AdvanceWidthMax     : " + getAdvanceWidthMax ( ) + "\n" ) ; buf . append ( indent + "MinLSB              : " + getMinLeftSideBearing ( ) + "\n" ) ; buf . append ( indent + "MinRSB              : " + getMinRightSideBearing ( ) + "\n" ) ; buf . append ( indent + "MaxExtent           : " + getXMaxExtent ( ) + "\n" ) ; buf . append ( indent + "CaretSlopeRise      : " + getCaretSlopeRise ( ) + "\n" ) ; buf . append ( indent + "CaretSlopeRun       : " + getCaretSlopeRun ( ) + "\n" ) ; buf . append ( indent + "CaretOffset         : " + getCaretOffset ( ) + "\n" ) ; buf . append ( indent + "MetricDataFormat    : " + getMetricDataFormat ( ) + "\n" ) ; buf . append ( indent + "NumOfLongHorMetrics : " + getNumOfLongHorMetrics ( ) + "\n" ) ; return buf . toString ( ) ; }
create a pretty string
