[Gs-code-review] A fix for #517474 "Problem with hyphen in PDF using Minion"

Igor V. Melichev igor at artifex.com
Sat Feb 23 04:52:16 PST 2002


[Log message beg]
Fix: Another improvement for the hack in 'getfontmetrics', which deals with
encodings where the same character appears more than once.
TeX-1.0a creates Differences with multiple appearances of 'hyphen'
character,
some of which specify zero width.
Source Forge bug #517474 "Problem with hyphen in PDF using Minion".
See also #444366 and #467492.
[Log message end]

Branches : HEAD.

Changes:


File pdf_font.ps :

*** f:\casper\head\gs\lib\pdf_font.ps	Fri Feb 22 02:06:53 2002
--- files\gs\lib\pdf_font.ps	Sat Feb 23 15:40:03 2002
***************
*** 142,145 ****
--- 142,146 ----
  		% We prefer to take (1) non-zero width, and (2) width for
  		% the character code which appears in Differences.
+ 	   dup 0 eq { exit } if
  	   Metrics 2 index .knownget not { 0 } if 0 ne {
  	     5 index /Encoding knownoget not { exit } if




More information about the gs-code-review mailing list