From 8a2449c697191002ee9764cde7de198294584313 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Wed, 8 Jan 2025 01:53:24 +0000 Subject: [PATCH] Don't emit elements TTX is quite capable of inferring the lookup type from the type of the main child element of . This should allow for specifying different kinds of lookup using literal XML. --- bedstead.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bedstead.c b/bedstead.c index 8632cae..31f46e6 100644 --- a/bedstead.c +++ b/bedstead.c @@ -3635,19 +3635,16 @@ dogsub(void) printf(" \n", gsub_features[i].tag); if (gsub_features[i].suffix != NULL) { /* Single lookup for all glyphs with a suffix. */ - TTXI("LookupType", 1); TTXI("LookupFlag", 0); printf(" \n"); dosinglesubs(gsub_features[i].suffix); printf(" \n"); } else if (gsub_features[i].xml != NULL) { /* Raw XML for a substitution. */ - TTXI("LookupType", 1); TTXI("LookupFlag", 0); printf("%s", gsub_features[i].xml); } else { /* All possible alternative glyphs. */ - TTXI("LookupType", 3); TTXI("LookupFlag", 0); printf(" \n"); doaltsubs(gsub_features[i].noverrides, @@ -3762,7 +3759,6 @@ dogpos(void) printf(" \n"); printf(" \n"); printf(" \n"); - TTXI("LookupType", 1); TTXI("LookupFlag", 0); /* * We have only a few dx/dh combinations, so it makes sense to -- 2.30.2