pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: Kerning?
Date Fri, 08 Dec 2017 06:26:45 GMT
Am 08.12.2017 um 01:28 schrieb Matthew Self:
> Hello,
>      I have a newbie question about kerning in PDFs.
> When rendering text from a PDF, is kerning info from the font used to
> adjust the positions of the rendered characters automatically?


> Or do apps that write PDF files need to read the kerning data and
> individually adjust the positions of the characters when writing the PDF?


> If the latter, I see PDPageContentStream.showText() for creating a Tj
> operator, but I don't see a method like showTextWithSpacing() for creating
> a TJ operator (which is what I presume you would need to do).

Indeed, but it is coming in the next version: showTextWithPositioning(). 
You can test a snapshot version.



> Is that something I could add, or is there a reason it hasn't been added
> already?
> Thank you.

To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org

View raw message