From 7bd887f177b765165ecf7c443b8d0bab88034df0 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Fri, 3 May 2024 16:04:35 +0000 Subject: [PATCH] * src/sfnt/sfwoff2.c (woff2_open_font): Fix copy-paste typo. --- src/sfnt/sfwoff2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sfnt/sfwoff2.c b/src/sfnt/sfwoff2.c index bc7a55d79..589b3e0c6 100644 --- a/src/sfnt/sfwoff2.c +++ b/src/sfnt/sfwoff2.c @@ -2201,9 +2201,9 @@ { FT_Byte* sfnt_header = sfnt; - FT_Int entrySelector = FT_MSB( woff.num_tables ); + FT_Int entrySelector = FT_MSB( woff2.num_tables ); FT_Int searchRange = ( 1 << entrySelector ) * 16; - FT_Int rangeShift = woff.num_tables * 16 - searchRange; + FT_Int rangeShift = woff2.num_tables * 16 - searchRange; WRITE_ULONG ( sfnt_header, woff2.flavor );