[poppler] Kerning pair information help
Josh Richardson
jric at chegg.com
Thu Aug 11 12:14:46 PDT 2011
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.)
Best, --josh
From: Steve W <stevew1024 at gmail.com<mailto:stevew1024 at gmail.com>>
Date: Thu, 11 Aug 2011 12:03:51 -0700
To: "poppler at lists.freedesktop.org<mailto:poppler at lists.freedesktop.org>" <poppler at lists.freedesktop.org<mailto:poppler at lists.freedesktop.org>>
Subject: Re: [poppler] Kerning pair information help
Yes, I'm using embedded fonts. I've looked the the pdf itself and understand that there is no kerning information there.
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.
Are there no character pair mappings that contain this information in poppler?
-Steve
2011/8/11 suzuki toshiya <mpsuzuki at hiroshima-u.ac.jp<mailto:mpsuzuki at hiroshima-u.ac.jp>>
Hi Steve,
Excuse me, do you assume that PDF (or embedded font in PDF)
has some kerning information and PDF rendering system should
reflect it? I'm afraid that PDF itself does not have, and,
embedded font in PDF may have it but they are simply ignored.
If you find some kerning feature that is specified in official
PDF spec and unimplemented in poppler, please let me know.
I guess, PDF production system should tune the glyph positions
strictly, and should not ask PDF rendering systems to reflect
some kerning.
Regards,
mpsuzuki
Steve W wrote:
> I'm new to poppler and am trying to get a grasp of the source code. I'm
> trying to find where the kerning pair information can be accessed via
> poppler. Obviously poppler has access to it somewhere, as font's with
> kerning information are rendered correctly in pdftoppm...
>
> I tried searching for 'kerning' and other related terms, but haven't found
> anything.
>
> I'd greatly appreciate it if someone could point me to the relevant function
> or source file to get met started.
>
> Thanks
> -Steve
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org<mailto:poppler at lists.freedesktop.org>
> http://lists.freedesktop.org/mailman/listinfo/poppler
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20110811/980bf46a/attachment.html>
More information about the poppler
mailing list