From 7e2fed6d73f89986e5777028cdcd24e3baf2f86c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 11 Jan 2018 19:25:21 +0100 Subject: [PATCH] [aat] Allow DontAdvance Apparently CoreText does allow these. To be done: detect infinite loops. Fixes MORX-12 test. --- src/hb-aat-layout-morx-table.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-aat-layout-morx-table.hh b/src/hb-aat-layout-morx-table.hh index 50805eb82..cc15fddb3 100644 --- a/src/hb-aat-layout-morx-table.hh +++ b/src/hb-aat-layout-morx-table.hh @@ -155,7 +155,7 @@ struct RearrangementSubtable } } - if (false/* TODO */ && flags & DontAdvance) + if (flags & DontAdvance) i--; /* TODO Detect infinite loop. */ state = entry->newState; @@ -259,7 +259,7 @@ struct ContextualSubtable } } - if (false/* TODO */ && flags & DontAdvance) + if (flags & DontAdvance) i--; /* TODO Detect infinite loop. */ state = entry->newState;