> Regarding testing, you can try the following:
>
> 1. otsanitizer has a test data directory with "good" and "bad" fonts:
> https://github.com/khaledhosny/ots. Remember to compile your copy of
> the library with the `-fsanitize=address,undefined
> -fno-sanitize-recover` compiler switches so that you get pretty
> explosions if your code does weird things with the input :)
>
> 2. Use fonttools' WOFF2 compression to compress random fonts yourself:
> https://github.com/fonttools/fonttools/blob/master/Snippets/woff2_compress.py

I'll try out the test fonts, and check with some more fonts too. Thanks!


-- 
Nikhil

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

Reply via email to