all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: "積丹尼 Dan Jacobson" <jidanni@jidanni.org>
Cc: 36427-close@debbugs.gnu.org
Subject: bug#36427: docview wrong spacing
Date: Sun, 07 Jul 2019 09:53:59 +0200	[thread overview]
Message-ID: <87o926l1pk.fsf@gnu.org> (raw)
In-Reply-To: <87blyhtdil.5.fsf@jidanni.org> ("積丹尼 Dan Jacobson"'s message of "Sat, 29 Jun 2019 08:56:50 +0800")

[-- Attachment #1: Type: text/plain, Size: 717 bytes --]

積丹尼 Dan Jacobson <jidanni@jidanni.org> 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:

[-- Attachment #2: docview-bug-36427.png --]
[-- Type: image/png, Size: 12633 bytes --]

[-- Attachment #3: Type: text/plain, Size: 185 bytes --]


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:

[-- Attachment #4: evince-bug-36427.png --]
[-- Type: image/png, Size: 8347 bytes --]

[-- Attachment #5: Type: text/plain, Size: 271 bytes --]


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

  reply	other threads:[~2019-07-07  7:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-29  0:56 bug#36427: docview wrong spacing 積丹尼 Dan Jacobson
2019-07-07  7:53 ` Tassilo Horn [this message]
2019-07-09 11:32 ` bug#36427: Bug#931701: Wrong letter spacing 積丹尼 Dan Jacobson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o926l1pk.fsf@gnu.org \
    --to=tsdh@gnu.org \
    --cc=36427-close@debbugs.gnu.org \
    --cc=jidanni@jidanni.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.