From: Ben Harris Date: Wed, 8 Jan 2025 01:53:24 +0000 (+0000) Subject: Don't emit elements X-Git-Tag: bedstead-3.251~43 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=8a2449c697191002ee9764cde7de198294584313;p=bedstead.git 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. --- 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