bugThe FreeType Project - Bugs: bug #52098, Certain SFNT fonts can no longer...

 
 

bug #52098: Certain SFNT fonts can no longer be opened by FreeType 2.8.1

Submitted by:  kinodont <kinodont>
Submitted on:  Sat 23 Sep 2017 09:07:30 AM UTC  
 
Severity: 3 - NormalItem Group: Incorrect behaviour
Status: InvalidPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sat 23 Sep 2017 12:10:03 PM UTC, comment #1:

The font in question is invalid – it is a bitmap-only font (containing a 13ppem strike) that incorrectly sets the font's upem value to 13 also; I've added a quickly fixed font version to the original wine bug report.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Sat 23 Sep 2017 09:07:30 AM UTC, original submission:

The commit

https://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=ce367774d20072018d46bfe26f7c7b823dfad79c
(Minor adjustments for OpenType 1.8.2.)

broke Wine build during font conversion with sfnt2fon (only the changes in src/sfnt/sfobjs.c needed to be reverted).

sfnt2fon calls FT_New_Face on font courier.ttf (the font in question can be downloaded at: https://source.winehq.org/git/wine.git/blob_plain/bb16263fe1974851f495435fef9a3d57fa2d4aa9:/fonts/courier.ttf
)

FT_New_Face returns with error 0x8 (Invalid_Table).

face->header.Units_Per_EM had the value 13 when displayed in gdb.

The opinion of a Wine developer is that: "To stay compatible with Windows fonts the font size most likely cannot be changed."

Original Wine bug report: https://bugs.winehq.org/show_bug.cgi?id=43716

kinodont <kinodont>

 

(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 kinodont (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 23 Sep 2017 12:10:03 PM UTCwlStatusNone=>Invalid
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1