From c19ec97da722d4a91024328c2d31f5e2f984fe10 Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Thu, 9 Sep 2021 10:53:09 -0700 Subject: [PATCH] [repacker] reduce the bits used by order by 2 to give more bits to distance. --- src/hb-repacker.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hb-repacker.hh b/src/hb-repacker.hh index b2f1c92db..775311d75 100644 --- a/src/hb-repacker.hh +++ b/src/hb-repacker.hh @@ -79,7 +79,7 @@ struct graph_t int64_t modified_distance = hb_min (hb_max(distance + distance_modifier (), 0), 0x7FFFFFFFFF); - return (modified_distance << 24) | (0x00FFFFFF & order); + return (modified_distance << 22) | (0x003FFFFF & order); } int64_t distance_modifier () const @@ -845,7 +845,6 @@ static bool _process_overflows (const hb_vector_t& o // TODO(garretrieger): add additional offset resolution strategies // - Promotion to extension lookups. - // - Isolate the sub graphs of extension sub tables. // - Table splitting. }