Taking a closer look, it appears the table is marked as Invalid since the
GDEF Header is version 1.2. Unless I am mistaken, in otvgdef.c at line 172, 

  if ( FT_NEXT_ULONG( p ) != 0x10000UL )          /* Version */
      FT_INVALID_FORMAT;

This would cause format 1.2 and 1.3 to return as invalid.

-----Original Message-----
From: Freetype [mailto:[email protected]] On
Behalf Of Stephan B.
Sent: Friday, September 15, 2017 4:27 PM
To: [email protected]
Subject: [ft] GDEF table validation & Roboto-Regular.ttf

Hi!

 

I am using FT_OpenType_Validate and when trying to validate the GDEF table
using Roboto-Regular
<https://fonts.google.com/specimen/Roboto?selection.family=Roboto>  I get an
Error = 8 or Invalid Table. Looking at the font file itself, the GDEF table
appears to be fine so I am not sure if this is in face an issue with the
font or with Freetype. Other font files appear to validate fine.

 

 

Regards,

 

 

Stephan

_______________________________________________
Freetype mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype


_______________________________________________
Freetype mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype

Reply via email to