How to use kerning pairs extracted from a TTF file to correctly show glyphs as Path2D in Java?
问题 This question is about recovering glyph font information in Java and it is related to a question posted here. For more details please check the question and answers. It was suggested there to use Apache FOP library to recover the kerning pairs directly from the Truetype file since Java doesn't supply this information. I then ported the library to Windows and recovered the kerning pairs using this code: TTFFile file; File ttf = new File("C:\\Windows\\Fonts\\calibri.ttf" ); try { file = TTFFile