AFAIK, "letter spacing" is not a font property; that is, the font designer specifies character widths and any character-pair kerning.
I figured applications which allow you to adjust letterspacing are repositioning each character rather than placing per the widths and kerns. So, in the PDF, I expected to see each character absolutely positioned. However, looking at PDF from my old (v9) Corel Draw, it look like something else is going on; I'm not sure what. 1.0 0.0 0.0 1.0 0.0 0.0 cm 0.12 0.1 0.09 rg BT 92.0072 692.4002 TD /F12 24.0 Tf -0.0082 Tw (This is a test of 24pt ) Tj 220.1162 0.0 TD (Arial) Tj 0.12 0.1 0.09 rg -220.1159 -53.6241 TD 3.3384 Tc 3.3256 Tw (Letter) Tj 78.0426 0.0 TD ( spacing) Tj 115.7253 0.0 TD ( 125%) Tj -193.7679 -53.6241 TD (L.S.) Tj 52.6944 0.0 TD ( 150%,) Tj 94.7242 0.0 TD ( word) Tj 75.3582 0.0 TD ( spacing) Tj 115.725 0.0 TD ( ) Tj -338.5023 -26.8118 TD -0.013 Tw (200%) Tj ET Gary -----Original Message----- From: Tilman Hausherr <thaush...@t-online.de> Sent: Wednesday, September 7, 2022 12:43 PM To: users@pdfbox.apache.org Subject: Re: Question regarding letter spacing Re Kerning: You could try to use TrueTypeFont.getKerning(). To get a TrueTypeFont, call new TTFParser().parse(). Tilman On 07.09.2022 16:33, Eszter Bordi wrote: > Hi, > > After thorough investigation in the API docs I still haven’t found the > answer, so I’m asking it here. Is there any way to get the value for > letter-spacing or kerning for a font used in the PDF? I have seen that > there is a thing called average font width, but it seems that it’s not > what I am looking for. > Thanks for your response in advance! > > Btw, great work with the lib, have been using it extensively. > > Best regards, > Eszter Bordi > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org The content of this email and any attached files are intended for the recipient specified in this message only. It may contain information that is confidential, proprietary, privileged, and/or exempt from disclosure under applicable law. It is strictly forbidden to share any part of this message with any third party or rely on any of its contents, without the written consent of the sender. If you received this message by mistake, please reply to this message and follow with deletion of the original message, any copies and all attachments, so that Oberon Technologies can ensure such a mistake does not occur in the future.