https://bugs.winehq.org/show_bug.cgi?id=43716
Bug ID: 43716 Summary: freetype 2.8.1 breaks Wine build during font conversion with sfnt2fon Product: Wine Version: 2.17 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: fonts Assignee: wine-bugs@winehq.org Reporter: kinodont@gmail.com Distribution: ---
Distribution: Arch Linux freetype2 2.8.1-1 wine 2.17-1
The command `../tools/sfnt2fon/sfnt2fon -o coue1255.fon ../../wine/fonts/courier.ttf -d 128 13,1255,8` fails with: Error: Cannot open face ../../wine/fonts/courier.ttf
The file courier.ttf exists. The error returned by FT_New_Face is 0x8 (Invalid_Table).
Reverting this freetype commit https://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=ce367774... fixes the issue. Only the changes in src/sfnt/sfobjs.c are relevant. face->header.Units_Per_EM had the value 13 when displayed in gdb.