public FontMetrics parse() throws IOException
    {
        return parseFontMetric(false);
    }
@Test
    void testMalformedInteger() throws IOException
    {
        AFMParser parser = new AFMParser(
                new FileInputStream("src/test/resources/afm/MalformedInteger.afm"));
        try
        {
            parser.parse();
            fail("The AFMParser should have thrown an IOException because of a malformed int value");
        }
        catch (IOException e)
        {
            assertTrue(e.getCause() instanceof NumberFormatException);
            assertTrue(e.getMessage().contains("3.4"));
        }
    }