Bug 687886 - ps2pdf generates wrong 'degree' string - the circle too close to 'C'.
Summary: ps2pdf generates wrong 'degree' string - the circle too close to 'C'.
Status: RESOLVED DUPLICATE of bug 687297
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Writer (show other bugs)
Version: 8.15
Hardware: All All
: P2 normal
Assignee: Jack Moffitt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-10 04:56 UTC by Per Jøran Lund
Modified: 2007-12-13 12:55 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
Generate .pdf from this .ps to reproduce the error. (250.50 KB, text/plain)
2005-01-10 05:11 UTC, Per Jøran Lund
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Per Jøran Lund 2005-01-10 04:56:23 UTC
This was ok in version 6.51 while in 7.07, 8.14 and 8.15 is different.
In version 6.51 the sequence:
------------------
144.57 659.71 m
(General 42 \260C)S
----------------------
was generated equal to
--------------------
177.53 467.78 m
(\260)S
183.13 467.78 m
(C)S
--------------------

In version 7.07 and later the first sequence is as before while
the second sequence places the \260 (circle) too close to the
'C'.

Is this due to an intentional change in ps2pdf?
Comment 1 Per Jøran Lund 2005-01-10 05:11:14 UTC
Created attachment 1142 [details]
Generate .pdf from this .ps to reproduce the error.

The degree string is ok in the table-of-contents
but it is wrong in the second occurence.
Comment 2 Alex Cherepanov 2005-01-11 19:30:05 UTC
This problem is caused by incorrect width of degree glyph in NimbusSansL-Bold.
With Adobe fonts installed GS 8.51 generates a file that renders very close
to the file generated by Distiller 5.
Helvetica-Bold   has WX 400
NimbusSansL-Bold has WX 606
There is no difference in width of degree glyph between v.6 and 8.11
of Ghostscript fonts.
New font release is long overdue.

Re the differences between PDF files produced GS 7.00 and 8.51
The text in the PS file is coded as:
   (General 42)S
   177.53 467.78 m
   (\260)S
   183.13 467.78 m
   (C)S

GS 7.00 generates the code using absolute positioning.
  (General 42)Tj
  75.48 0 Td
  (░)Tj
  5.60002 0 Td
  (C)Tj

GS 8.51 generates the code using relative positioning, which doubles
the error.
  [(1)-2481.14(General 42)-277.434(░)206(C)]TJ


*** This bug has been marked as a duplicate of 687297 ***