emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#36427: closed (docview wrong spacing)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#36427: closed (docview wrong spacing)
Date: Sun, 07 Jul 2019 07:55:04 +0000

Your message dated Sun, 07 Jul 2019 09:53:59 +0200
with message-id <address@hidden>
and subject line Re: bug#36427: docview wrong spacing
has caused the debbugs.gnu.org bug report #36427,
regarding docview wrong spacing
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
36427: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=36427
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: docview wrong spacing Date: Sat, 29 Jun 2019 08:56:50 +0800
Something's wrong with docview.

Install libpdf-api2-perl debian package.

Run this perl script,

use PDF::API2;
$pdf = PDF::API2->new();
$page = $pdf->page();
$page->mediabox('Letter');
$text = $page->text();
$font = $pdf->cjkfont('traditional'); #something the matter when I use that
$text->font( $font, 20 );
$text->translate( 200, 700 );
$text->text(join "", 'A'..'Z');
$pdf->saveas('new.pdf');

Then do v (runs the command dired-view-file) on new.pdf.

See the bad spacing e.g., around the I?
Looks fine in Firefox and chromium.



--- End Message ---
--- Begin Message --- Subject: Re: bug#36427: docview wrong spacing Date: Sun, 07 Jul 2019 09:53:59 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
積丹尼 Dan Jacobson <address@hidden> writes:

Hi Dan,

> Something's wrong with docview.
>
> Install libpdf-api2-perl debian package.
>
> Run this perl script,
>
> use PDF::API2;
> $pdf = PDF::API2->new();
> $page = $pdf->page();
> $page->mediabox('Letter');
> $text = $page->text();
> $font = $pdf->cjkfont('traditional'); #something the matter when I use that
> $text->font( $font, 20 );
> $text->translate( 200, 700 );
> $text->text(join "", 'A'..'Z');
> $pdf->saveas('new.pdf');
>
> Then do v (runs the command dired-view-file) on new.pdf.
> See the bad spacing e.g., around the I?
> Looks fine in Firefox and chromium.

That's what it looks like on my (Arch GNU/Linux) machine:

PNG image

So for me, the space after J and T seem to be a bit larger than after
the other letters.  However, when viewed with Evince (the GNOME document
viewer), it looks exactly the same, see:

PNG image

I think what you describe is some font rendering issue with GhostScript
or mupdf (whatever doc-view uses on your machine to produce images from
the PDF), e.g., some suitable font, and there's nothing doc-view itself
could do here.

I'm closing this issue.

Bye,
Tassilo

--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]