byte[] afmBytes = AFMFormatter.format(font);
InputStream is = new ByteArrayInputStream(afmBytes);
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()),