From f53b7c7afd6211cbb909e31707580ecf3ec8f7b3 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 22:14:40 +0000 Subject: Apply patch 0079-src-truetype-ttgxvar.c-TT_Get_MM_Var-Fix-thinko.patch patch_name: 0079-src-truetype-ttgxvar.c-TT_Get_MM_Var-Fix-thinko.patch present_in_specfile: true --- diff --git a/include/freetype/ftmm.h b/include/freetype/ftmm.h index 1f48a49..b1bc1ed 100644 --- a/include/freetype/ftmm.h +++ b/include/freetype/ftmm.h @@ -178,7 +178,8 @@ FT_BEGIN_HEADER /* strid :: The entry in `name' table identifying this instance. */ /* */ /* psid :: The entry in `name' table identifying a PostScript name */ - /* for this instance. Value 0 indicates a missing entry. */ + /* for this instance. Value 0xFFFF indicates a missing */ + /* entry. */ /* */ typedef struct FT_Var_Named_Style_ { diff --git a/src/truetype/ttgxvar.c b/src/truetype/ttgxvar.c index cfb0ed0..997ad2e 100644 --- a/src/truetype/ttgxvar.c +++ b/src/truetype/ttgxvar.c @@ -2162,9 +2162,11 @@ for ( j = 0; j < fvar_head.axisCount; j++, c++ ) *c = FT_GET_LONG(); - /* valid psid values are 6 and [256;32767] */ + /* valid psid values are 6, [256;32767], and 0xFFFF */ if ( usePsName ) ns->psid = FT_GET_USHORT(); + else + ns->psid = 0xFFFF; ft_var_to_normalized( face, fvar_head.axisCount,