bugThe FreeType Project - Bugs: bug #29444, Invalid glyph, result not...

 
 

bug #29444: Invalid glyph, result not consistent with Adobe

Submitted by:  Kenneth Sharp <kens>
Submitted on:  Mon 05 Apr 2010 04:38:38 PM UTC  
 
Severity: 3 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.3.13

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 14 Apr 2010 09:39:50 PM UTC, comment #2:

Applied, thanks.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Tue 06 Apr 2010 10:17:48 AM UTC, comment #1:

The patch supplied as psobjs.c.diff is incorrect as it introduces regressions with sufficiently complex fonts. I missed the fact that the t1_builder_add_contour execution should have been in an else clause so that it is only executed if we don't already have a path.

The attached patch replaces the earlier one and works without introducing any regressions.

(file #20131)

Kenneth Sharp <kens>
Project Member
Mon 05 Apr 2010 04:38:38 PM UTC, original submission:

A Type 1 font contains a technically invalid glyph which executes a 'lineto' class instruction immediately after an hsbw. The spec makes it entirely clear that this is an error condition, and a 'moveto' class instruction should be used before any marking operation.

Nevertheless, Adobe CPSI RIP, Acrobat, current version of GS and the JAWS PostScript RIP all ignore this error condition.

I think it would be best if FreeType also ignored this error, for consistent behaviour with other PostScript type 1 font consumers.

The attached patch simply removes the test for the error condition.

Kenneth Sharp <kens>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #20131:  psobjs2.c.diff added by kens (666B - application/octet-stream)
file #20119:  psobjs.c.diff added by kens (710B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by wl (Posted a comment)
  • -unavailable- added by kens (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 14 Apr 2010 09:39:50 PM UTCwlStatusNone=>Fixed
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.3.13
    Tue 06 Apr 2010 10:17:48 AM UTCkensAttached File-=>Added psobjs2.c.diff, #20131
    Mon 05 Apr 2010 04:38:38 PM UTCkensAttached File-=>Added psobjs.c.diff, #20119

    Back to the top


    Powered by Savane 3.1-cleanup1