Hello,

First of all, thanks a lot for PdfBox. It's great.

I need to measure text with some TrueTypeFont. Would someone indicate me
the actual code to do the following :

TrueTypeFont ttfFont = TrueTypeFont .load(File file)

float width = ttfFont.getWidth(String text, float fontSize)

ttfFont.getKerning(int char1, int char2)

Thanks in advance,

Damien

Reply via email to