Alright. Thanks everyone, this is the information I was looking for.<div><br></div><div>I realize now that I may be dealing now w/ character spacing vs kerning, as well as looking at a potentially non-standard pdf.</div><div>
<br></div><div>Thanks again,</div><div>-Steve<br><br><div class="gmail_quote">On Thu, Aug 11, 2011 at 12:14 PM, Josh Richardson <span dir="ltr"><<a href="mailto:jric@chegg.com">jric@chegg.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word;color:rgb(0, 0, 0);font-size:14px;font-family:Calibri, sans-serif"><div>Kerning is generally handled by the font program. PDF spec does allow overrides of kerning, and Poppler should handle that, but I suspect you're looking for the kerning info built directly into the font. I'm new to this, but I think Poppler just does what it's told when it comes to the font's kerning (look at the drawChar function in the output device, and trace it backwards to see where it's computing character offsets.)</div>
<div><br></div><div>Best, --josh</div><div><br></div><span><div class="im"><div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;border-bottom:medium none;border-left:medium none;padding-bottom:0in;padding-left:0in;padding-right:0in;border-top:#b5c4df 1pt solid;border-right:medium none;padding-top:3pt">
<span style="font-weight:bold">From: </span> Steve W <<a href="mailto:stevew1024@gmail.com" target="_blank">stevew1024@gmail.com</a>><br><span style="font-weight:bold">Date: </span> Thu, 11 Aug 2011 12:03:51 -0700<br>
<span style="font-weight:bold">To: </span> "<a href="mailto:poppler@lists.freedesktop.org" target="_blank">poppler@lists.freedesktop.org</a>" <<a href="mailto:poppler@lists.freedesktop.org" target="_blank">poppler@lists.freedesktop.org</a>><br>
<span style="font-weight:bold">Subject: </span> Re: [poppler] Kerning pair information help<br></div><div><br></div></div><div><div></div><div class="h5">Yes, I'm using embedded fonts. I've looked the the pdf itself and understand that there is no kerning information there.<div>
<br></div><div>It looks like some pdf creators automatically break up the text into different groups to handle kerning, but others do not. I'm trying to access the kerning information in the latter case in poppler. I've confirmed that it renders correctly by comparing to adobe acrobat reader, I just need pointed in the right direction regarding the source.</div>
<div><br></div><div>Are there no character pair mappings that contain this information in poppler?</div><div><br></div><div>-Steve<br><br><div class="gmail_quote">2011/8/11 suzuki toshiya <span dir="ltr"><<a href="mailto:mpsuzuki@hiroshima-u.ac.jp" target="_blank">mpsuzuki@hiroshima-u.ac.jp</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Steve,<br><br>
Excuse me, do you assume that PDF (or embedded font in PDF)<br>
has some kerning information and PDF rendering system should<br>
reflect it? I'm afraid that PDF itself does not have, and,<br>
embedded font in PDF may have it but they are simply ignored.<br>
If you find some kerning feature that is specified in official<br>
PDF spec and unimplemented in poppler, please let me know.<br><br>
I guess, PDF production system should tune the glyph positions<br>
strictly, and should not ask PDF rendering systems to reflect<br>
some kerning.<br><br>
Regards,<br>
mpsuzuki<br><div><div></div><div><br>
Steve W wrote:<br>
> I'm new to poppler and am trying to get a grasp of the source code. I'm<br>
> trying to find where the kerning pair information can be accessed via<br>
> poppler. Obviously poppler has access to it somewhere, as font's with<br>
> kerning information are rendered correctly in pdftoppm...<br>
><br>
> I tried searching for 'kerning' and other related terms, but haven't found<br>
> anything.<br>
><br>
> I'd greatly appreciate it if someone could point me to the relevant function<br>
> or source file to get met started.<br>
><br>
> Thanks<br>
> -Steve<br>
><br>
><br>
><br></div></div>> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> poppler mailing list<br>
> <a href="mailto:poppler@lists.freedesktop.org" target="_blank">poppler@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/poppler" target="_blank">http://lists.freedesktop.org/mailman/listinfo/poppler</a><br><br></blockquote></div><br></div></div></div></span></div>
</blockquote></div><br></div>