From ebaa2828742c893f6095fd748ae3828624c9d2fb Mon Sep 17 00:00:00 2001 From: suzuki toshiya Date: Mon, 11 Sep 2017 15:48:50 +0900 Subject: [PATCH] cpp-conditionalize a too long string > 64k, because it is always false on 16bit system. --- src/type1/t1afm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/type1/t1afm.c b/src/type1/t1afm.c index 11a2646fc..f4f1ac7a1 100644 --- a/src/type1/t1afm.c +++ b/src/type1/t1afm.c @@ -60,9 +60,11 @@ FT_Int n; +#if FT_UINT_MAX > 0xFFFFU /* PS string/name length must be < 16-bit */ if ( len > 0xFFFFU ) return 0; +#endif for ( n = 0; n < type1->num_glyphs; n++ ) {