Bad Letter spacing/kerning with Good/Bad examples....

177 views
Skip to first unread message

Jay

unread,
Jun 4, 2010, 2:44:01 PM6/4/10
to dompdf
DOM PDF Pros,

I've been having trouble with Spanish character line spacing and line
breaks. Things seemed to get a little better with our latest update to
0.6.1 Beta, but still having issues. Here's the deal, Please see the
FILE called "jaysproblem.pdf" in the files area. Note on page 3
specifically how there are random spaces inserted where they shouldn't
be, and on page 6 how one line doesn't realize it should be breaking.
See the issues? Well normally I would chalk it up to the html
formatting that is being fed into DOM PDF, but here's the kicker:

If you go to:

http://eclecticgeek.com/dompdf/index.php

and type in this:

http://www.philadelphiaphotos.com/html.php

as the remote source file, you'll see that the PDF renders properly
with no spacing issues. So, I'm thinking it has to be something to do
with my local server or fonts, or the like. I even tried to change the
font to courier thinking that a mono-spaced font would at least help
things, but it didn't seem to help at all. However eclecticgeek.com is
set up is set up in a way that I'm trying to mirror.

I'm at my wits end now with this and trying to meet a deadline.. any
help would be VERY much appreciated.

Thank YOU!
Jay

BrianS

unread,
Jun 4, 2010, 5:35:44 PM6/4/10
to dompdf
Do you have the mbstring PHP extension enabled on your system? I don't
have any way to test this at present, but I wonder if not having that
extension is why you are seeing different results. The extension is
not required, but at present DOMPDF will be somewhat crippled without
it.

Jay

unread,
Jun 6, 2010, 7:00:23 PM6/6/10
to dompdf
Hi Brian,

Thanks for the reply, but unfortunately it looks like MBstring is
there and "Multibyte Support" is already "enabled". Any other thoughts
what could be causing this odd behavior, even when as I said, the SAME
file run on ecleticgeek.com's server seems to be rendering perfectly?

I REALLY appreciate any advise you have.

Best,

Jay

BrianS

unread,
Jun 6, 2010, 10:13:55 PM6/6/10
to dompdf
I'm at a loss right now as to what might be going on. It does look
like, possibly, a problem with the font metrics ... but the results in
the output aren't quite what I would expect in this case. What OS and
version of PHP do you have? What error level do you have PHP set to?
Is error logging turned on? There is obviously no fatal error
occurring, but perhaps there is a notice being thrown that would help
debugging the issue.

BrianS

unread,
Jun 6, 2010, 10:19:54 PM6/6/10
to dompdf
Also, you might try the most recent developer code to see if the
output is any better. Download a nightly release from the following
URL:
http://eclecticgeek.com/dompdf/


On Jun 6, 7:00 pm, Jay <i...@javelindesign.com> wrote:
Reply all
Reply to author
Forward
0 new messages