Universi / noto

Automatically exported from code.google.com/p/noto
0 stars 0 forks source link

OTS fails on various Noto fonts #172

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Here's a list of the errors on unhinted fonts, based on Khaled Hosny's ToT ots:

NotoNaskhArabic-Bold.ttf:
GDEF: bad contour indeces: 30 >= 30
GDEF: Invalid attachment list, table discarded
Layout: lookup flag asks for mark attachment that is bad 256
Layout: Failed to parse lookup 6
GPOS: Failed to parse lookup list table, table discarded

NotoNaskhArabic-Regular.ttf:
GDEF: bad contour indeces: 30 >= 30
GDEF: Invalid attachment list, table discarded
Layout: lookup flag asks for mark attachment that is bad 256
Layout: Failed to parse lookup 6
GPOS: Failed to parse lookup list table, table discarded

NotoNaskhArabicUI-Bold.ttf:
GDEF: bad contour indeces: 30 >= 30
GDEF: Invalid attachment list, table discarded
Layout: lookup flag asks for mark attachment that is bad 256
Layout: Failed to parse lookup 6
GPOS: Failed to parse lookup list table, table discarded

NotoNaskhArabicUI-Regular.ttf:
GDEF: bad contour indeces: 30 >= 30
GDEF: Invalid attachment list, table discarded
Layout: lookup flag asks for mark attachment that is bad 256
Layout: Failed to parse lookup 6
GPOS: Failed to parse lookup list table, table discarded

NotoSansCham-Bold.ttf:
maxp: bad max_zones: 0

NotoSansCham-Regular.ttf:
maxp: bad max_zones: 0

NotoSansCuneiform-Regular.ttf:
OS/2: bad cap_height: -229

NotoSansGlagolitic-Regular.ttf:
metrics: bad sb: 0 < 40
metrics: bad sb: 0 < 40
metrics: bad sb: 0 < 40

NotoSansKaithi-Regular.ttf:
GDEF: bad contour indeces: 27 >= 27
GDEF: Invalid attachment list, table discarded
Layout: lookup flag asks for mark attachment that is bad 256
Layout: Failed to parse lookup 9
GSUB: Failed to parse lookup list table, table discarded

NotoSansLao-Bold.ttf:
maxp: bad max_zones: 0

NotoSansLao-Regular.ttf:
maxp: bad max_zones: 0

NotoSansLaoUI-Bold.ttf:
maxp: bad max_zones: 0

NotoSansLaoUI-Regular.ttf:
maxp: bad max_zones: 0

NotoSansMyanmar-Bold.ttf:
GDEF: bad contour indeces: 62 >= 62
GDEF: Invalid attachment list, table discarded
Layout: lookup flag asks for mark attachment that is bad 512
Layout: Failed to parse lookup 0
GPOS: Failed to parse lookup list table, table discarded
Layout: lookup flag asks for mark attachment that is bad 512
Layout: Failed to parse lookup 0
GSUB: Failed to parse lookup list table, table discarded

NotoSansMyanmar-Regular.ttf:
GDEF: bad contour indeces: 58 >= 58
GDEF: Invalid attachment list, table discarded
Layout: lookup flag asks for mark attachment that is bad 512
Layout: Failed to parse lookup 0
GPOS: Failed to parse lookup list table, table discarded
Layout: lookup flag asks for mark attachment that is bad 512
Layout: Failed to parse lookup 0
GSUB: Failed to parse lookup list table, table discarded

NotoSansMyanmarUI-Bold.ttf:
GDEF: bad contour indeces: 29 >= 29
GDEF: Invalid attachment list, table discarded
Layout: lookup flag asks for mark attachment that is bad 512
Layout: Failed to parse lookup 0
GPOS: Failed to parse lookup list table, table discarded
Layout: lookup flag asks for mark attachment that is bad 512
Layout: Failed to parse lookup 0
GSUB: Failed to parse lookup list table, table discarded

NotoSansMyanmarUI-Regular.ttf:
GDEF: bad contour indeces: 29 >= 29
GDEF: Invalid attachment list, table discarded
Layout: lookup flag asks for mark attachment that is bad 512
Layout: Failed to parse lookup 0
GPOS: Failed to parse lookup list table, table discarded
Layout: lookup flag asks for mark attachment that is bad 512
Layout: Failed to parse lookup 0
GSUB: Failed to parse lookup list table, table discarded

NotoSansSinhala-Bold.ttf:
glyf: 2-bytes indexing is not possible (due to the padding above)

NotoSansSyriacEastern-Regular.ttf:
glyf: Bad flag value (179)
glyf: Failed to parse glyph flags 0
glyf: Failed to parse glyph 8
glyf: failed to parse table
Failed to sanitise file!

NotoSansSyriacEstrangela-Regular.ttf:
glyf: Bad flag value (129)
glyf: Failed to parse glyph flags 0
glyf: Failed to parse glyph 8
glyf: failed to parse table
Failed to sanitise file!

NotoSansSyriacWestern-Regular.ttf:
glyf: Bad flag value (129)
glyf: Failed to parse glyph flags 0
glyf: Failed to parse glyph 8
glyf: failed to parse table
Failed to sanitise file!

NotoSerifLao-Bold.ttf:
maxp: bad max_zones: 0

NotoSerifLao-Regular.ttf:
maxp: bad max_zones: 0

Original issue reported on code.google.com by roozbeh@google.com on 7 Oct 2014 at 8:09

GoogleCodeExporter commented 9 years ago
Lets talk about these face to face.

Original comment by beh...@chromium.org on 8 Oct 2014 at 1:04

GoogleCodeExporter commented 9 years ago
For these:

maxp: bad max_zones: 0

just set max_zones to 2.

Original comment by behdad@google.com on 8 Oct 2014 at 4:14

GoogleCodeExporter commented 9 years ago
For:

glyf: Bad flag value (129)

That sounds wrong.  Bit 7 is reserved.  So value should be 1.

Original comment by behdad@google.com on 8 Oct 2014 at 4:16

GoogleCodeExporter commented 9 years ago
The "bad sb" warnings will be fixed when this ots fix merges:
https://github.com/khaledhosny/ots/pull/37

Original comment by behdad@google.com on 8 Oct 2014 at 4:29

GoogleCodeExporter commented 9 years ago
The "Bad flag value (179)" also needs the top bit unset.

Original comment by behdad@google.com on 8 Oct 2014 at 4:32

GoogleCodeExporter commented 9 years ago
For the '2-byte indexing' one see:
https://github.com/khaledhosny/ots/issues/38

That's all the warnings.

Original comment by behdad@google.com on 8 Oct 2014 at 4:37

GoogleCodeExporter commented 9 years ago
Assigning to myself to fix the fonts and add checks to noto_lint.

Original comment by roozbeh@google.com on 25 Oct 2014 at 1:54

GoogleCodeExporter commented 9 years ago

Original comment by roozbeh@google.com on 16 Jan 2015 at 6:12

GoogleCodeExporter commented 9 years ago
Doug, can you add tests for these to noto_lint fixes to autofix_for_release?

Original comment by roozbeh@google.com on 3 Apr 2015 at 1:56