* bug#36427: docview wrong spacing
@ 2019-06-29 0:56 積丹尼 Dan Jacobson
2019-07-07 7:53 ` Tassilo Horn
2019-07-09 11:32 ` bug#36427: Bug#931701: Wrong letter spacing 積丹尼 Dan Jacobson
0 siblings, 2 replies; 3+ messages in thread
From: 積丹尼 Dan Jacobson @ 2019-06-29 0:56 UTC (permalink / raw)
To: 36427
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#36427: docview wrong spacing
2019-06-29 0:56 bug#36427: docview wrong spacing 積丹尼 Dan Jacobson
@ 2019-07-07 7:53 ` Tassilo Horn
2019-07-09 11:32 ` bug#36427: Bug#931701: Wrong letter spacing 積丹尼 Dan Jacobson
1 sibling, 0 replies; 3+ messages in thread
From: Tassilo Horn @ 2019-07-07 7:53 UTC (permalink / raw)
To: 積丹尼 Dan Jacobson; +Cc: 36427-close
[-- 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#36427: Bug#931701: Wrong letter spacing
2019-06-29 0:56 bug#36427: docview wrong spacing 積丹尼 Dan Jacobson
2019-07-07 7:53 ` Tassilo Horn
@ 2019-07-09 11:32 ` 積丹尼 Dan Jacobson
1 sibling, 0 replies; 3+ messages in thread
From: 積丹尼 Dan Jacobson @ 2019-07-09 11:32 UTC (permalink / raw)
To: submit; +Cc: 36427, tassilo horn
X-Debbugs-Cc: 36427@debbugs.gnu.org, Tassilo Horn <tsdh@gnu.org>
Package: ghostscript
Version: 9.27~dfsg-2
Severity: minor
There is wrong letter spacing. Please see
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=36427
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-07-09 11:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-29 0:56 bug#36427: docview wrong spacing 積丹尼 Dan Jacobson
2019-07-07 7:53 ` Tassilo Horn
2019-07-09 11:32 ` bug#36427: Bug#931701: Wrong letter spacing 積丹尼 Dan Jacobson
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.