Bug 687886

Summary: ps2pdf generates wrong 'degree' string - the circle too close to 'C'.
Product: Ghostscript Reporter: Per Jøran Lund <pjl>
Component: PDF WriterAssignee: Jack Moffitt <jack>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P2    
Version: 8.15   
Hardware: All   
OS: All   
Customer: Word Size: ---
Attachments: Generate .pdf from this .ps to reproduce the error.

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
  (&#9617;)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(&#9617;)206(C)]TJ


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