ref: 0bff8a4022bcdce97f8ee95caf989cd41a25acc9
parent: 2969e897603556603bc93dae4396957fed79b9eb
author: Ali Gholami Rudi <ali@rudi.ir>
date: Sat Oct 4 13:55:38 EDT 2014
otf: ignore all positioning rules smaller than -k
--- a/otf.c
+++ b/otf.c
@@ -351,6 +351,8 @@
ncov = coverage(sub + U16(sub, 2), cov);
if (fmt == 1) {
for (i = 0; i < ncov; i++) {
+ if (valuerecord_small(vfmt, sub + 6))
+ continue;
printf("gpos %s 1 %s", feat, glyph_name[cov[i]]);
valuerecord_print(vfmt, sub + 6);
printf("\n");
@@ -359,6 +361,8 @@
if (fmt == 2) {
nvals = U16(sub, 6);
for (i = 0; i < nvals; i++) {
+ if (valuerecord_small(vfmt, sub + 6))
+ continue;
printf("gpos %s 1 %s", feat, glyph_name[cov[i]]);
valuerecord_print(vfmt, sub + 8 + i * vlen);
printf("\n");