The only way to easily calculate kerning using normal Java APIs is to draw every pair of letters next to each other and see how the advance between them differs from the normal advance. For any difference != 0.0, that’s the kerning for that pair of letters.
Cas