try
{
AFMParser afmParser = new AFMParser(is);
afmParser.parse();
FontMetric result = afmParser.getResult();
// Replace default FontBBox value with a newly computed one
BoundingBox bounds = result.getFontBBox();
List<Integer> numbers = Arrays.asList(
Integer.valueOf((int)bounds.getLowerLeftX()),
Integer.valueOf((int)bounds.getLowerLeftY()),
Integer.valueOf((int)bounds.getUpperRightX()),
Integer.valueOf((int)bounds.getUpperRightY())