[ftfuzzer] Speed up.

* src/tools/ftfuzzer/ftfuzzer.cc (LLVMFuzzerTestOneInput): Don't
check for embedded bitmaps if we have a non-default instance.
This commit is contained in:
Werner Lemberg 2016-09-29 19:53:39 +02:00
parent bfa83bdc27
commit 71b617d8b7
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2016-09-29 Werner Lemberg <wl@gnu.org>
[ftfuzzer] Speed up.
* src/tools/ftfuzzer/ftfuzzer.cc (LLVMFuzzerTestOneInput): Don't
check for embedded bitmaps if we have a non-default instance.
2016-09-29 Werner Lemberg <wl@gnu.org>
[truetype] Disallow bitmap strokes for non-default instances.

View File

@ -263,6 +263,10 @@
}
else
{
// bitmap strokes are not active for glyph variations
if ( instance_index )
continue;
if ( FT_Select_Size( face, fixed_sizes_index - 1 ) )
continue;
flags |= FT_LOAD_COLOR;