bugThe FreeType Project - Bugs: bug #46130, Regression: retrieving PS name...

 
 

bug #46130: Regression: retrieving PS name from a pure CFF font

Submitted by:  John Tytgat <joty>
Submitted on:  Mon 05 Oct 2015 01:06:49 PM UTC  
 
Severity: 3 - NormalItem Group: Incorrect behaviour
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.6.2

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 06 Oct 2015 05:56:52 AM UTC, comment #1:

I implemented a different solution. Thanks for the report, fixed now in git.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Mon 05 Oct 2015 01:06:49 PM UTC, original submission:

Since 3cc076dae765f3b3ed554fcf38dbe56edba422c3 the PS name gets taken from the 'name' table for SFNT-CFF fonts. However, that change broke the usecase of retrieving the PS name for a pure CFF font.

Currently even a pure CFF font has face->sfnt non-NULL as in cff_face_init() we're not freeing the sfnt field when sfnt->init_face() fails.

I guess (hope) we should still be able to fetch the PS name of pure CFF font based on its CFF data. I'm not sure what the best fix is, either free the sfnt structure in cff_face_init() when sfnt->init_face() failed; either check on the return value of service->get_ps_font_name() in cff_get_ps_name() and fall back on cff->font_name when the former returned NULL.

John Tytgat <joty>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

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 joty (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 06 Oct 2015 05:56:52 AM UTCwlStatusNone=>Fixed
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.6.2

    Back to the top


    Powered by Savane 3.1-cleanup1