Bug 691824 - Glyphs slip down in vertical writing mode
Summary: Glyphs slip down in vertical writing mode
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Printer Driver (show other bugs)
Version: 9.00
Hardware: PC Windows XP
: P4 normal
Assignee: Chris Liddell (chrisl)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-08 19:47 UTC by Otsukimi
Modified: 2012-04-23 12:48 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments
Attachment picture (49.88 KB, image/jpeg)
2010-12-08 19:51 UTC, Otsukimi
Details
SlidGlyphs.pdf (12.09 KB, application/pdf)
2010-12-09 01:49 UTC, Otsukimi
Details
GS output (42.77 KB, application/octet-stream)
2011-01-05 14:13 UTC, Otsukimi
Details
TTF fonts example (18.39 KB, application/pdf)
2011-04-20 23:59 UTC, Otsukimi
Details
The PS file that was used to produce the PDF above. (885.03 KB, application/postscript)
2011-04-21 00:03 UTC, Otsukimi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Otsukimi 2010-12-08 19:47:21 UTC
The left side of the attached picture is a screenshot of an original text on an application and the right side is a screenshot of the output by Ghostscript. Several glyphs have slid downwards.

I feel that this phenomenon is obvious in glyphs having relatively large top-side-bearing values, but other glyphs also have slid more or less. I suspect that top-side-bearing values are multiplied somewhere when a CID key based OpenType font is used in vertical writing mode.
Comment 1 Otsukimi 2010-12-08 19:51:01 UTC
Created attachment 7015 [details]
Attachment picture

Attachement is.
Comment 2 Marcos H. Woehrmann 2010-12-08 22:18:29 UTC
Please attach a test PostScript or PDF file along with any external fonts needed to recreate the problem.  You can mark the files as private and only Artifex staff will have access.
Comment 3 Otsukimi 2010-12-09 01:49:59 UTC
Created attachment 7017 [details]
SlidGlyphs.pdf

Could you tell me how to mark the file as private? I see no checkbox for it in the "Add an attachment" page.

The original font file being used in the PDF is big in size (over 7MB.) Would it be no problem to post as an attachment?
Comment 4 Otsukimi 2010-12-09 12:59:13 UTC
Created attachment 7021 [details]
Test suite

I made a minimal test suite for reproducing the problem.
Comment 5 Henry Stiles 2011-01-04 19:18:57 UTC
Looks like we lost track of this one.  Assign to font owner.
Comment 6 Chris Liddell (chrisl) 2011-01-04 20:58:11 UTC
I'll need the Postcript job from which the PDF file you attached was created - the Word document is no use since I don't have Word.

FWIW, using OpenOffice, the resulting GS output matches OpenOffice's display - but it does not match the screen shot you provided.
Comment 7 Otsukimi 2011-01-05 14:13:27 UTC
Created attachment 7086 [details]
GS output

(Sorry if this attached file is not a job file which you mentioned.)
Comment 8 Chris Liddell (chrisl) 2011-01-05 17:49:56 UTC
(In reply to comment #7)
> Created an attachment (id=7086) [details]
> GS output
> 
> (Sorry if this attached file is not a job file which you mentioned.)

That's exactly what I need, thanks.

It'll be a week or so before I can look at the problem properly, though.

Thanks again.
Comment 9 Otsukimi 2011-04-20 23:57:47 UTC
I noticed that this problem happens even when TTF fonts are used. The attachment is an image showing how four TTF fonts are rendered on a PDF file produced by GS. The most right-hand one is 256 units font, the second is 1000 (the same size as typical OpenType/CID fonts,) and both the third and fourth ones are 2048 units fonts.
Comment 10 Otsukimi 2011-04-20 23:59:10 UTC
Created attachment 7467 [details]
TTF fonts example

I noticed that this problem happens even when TTF fonts are used. The attachment is an image showing how four TTF fonts are rendered on a PDF file produced by GS. The most right-hand one is 256 units font, the second is 1000 (the same size as typical OpenType/CID fonts,) and both the third and fourth ones are 2048 units fonts.
Comment 11 Otsukimi 2011-04-21 00:03:22 UTC
Created attachment 7468 [details]
The PS file that was used to produce the PDF above.
Comment 12 Chris Liddell (chrisl) 2011-04-21 06:51:37 UTC
I have looked at the problem a while back - as promised.

I have an idea what the problem is, but it is decidedly non-trivial, and I will need to devote some "proper" time to it. Currently, I'm locked into another project, but I will get to it - hopefully......
Comment 13 Otsukimi 2011-04-22 19:26:07 UTC
Thank you for the comment. I am glad that what seems to cause the problem is already found.
Comment 14 Chris Liddell (chrisl) 2012-04-23 12:48:19 UTC
Fixed in:
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=f57b7562

Apologies for it taking so long!