Closed felipesanches closed 8 years ago
Here's the reason: https://github.com/google/fonts/issues/132#issuecomment-244796023
We may add a check that looks if all TrueType instructions tables are present if one is present. I guess it's hard to determine the actual dependencies of a table like prep
. So, prep
, cvt
and fpgm
would have to be there all together or none at all.
At least in https://www.freetype.org/ttfautohint/doc/ttfautohint.html#sfnt-tables it says:
cvt
,prep
, andfpgm
: These tables get replaced with data necessary for the new hinting bytecode.
So, ttfautohint would always create all three of these. I'm a bit afraid that this check could be too much of a hammer though. Thoughts?
Thanks, @graphicore !
So, ttfautohint would always create all three of these. I'm a bit afraid that this check could be too much of a hammer though. Thoughts?
Yes, auto-blacklisting any font that lacks one or more of the three tables (but has at least one of them) is too much. It means we end up auto-blacklisting 2185 font files (while the collection has a total of aproximately 2400 TTF files). So yeah, it auto-blacklists almost everything!
I removed the auto-blacklisting and noticed that this specific problems happens only with Corben-Bold, while the other problems detected last year were solves except for these:
#IOError: execution context too long (issue #703)
"Padauk",
"KumarOne",
#ZeroDivisionError: float division by zero
"AdobeBlank",
"Phetsarath",
# IOError: invalid reference See also: https://github.com/google/fonts/issues/132#issuecomment-244796023
"Corben",
# IOError: stack overflow on text_width, text_height = font.getsize(TEXT)
"Rubik",
blacklisted on font_compare_metrics.py (Issue #684)