summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/web2c/xetexdir/XeTeX_ext.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/xetexdir/XeTeX_ext.c b/Build/source/texk/web2c/xetexdir/XeTeX_ext.c
index cc27215426c..be439173db2 100644
--- a/Build/source/texk/web2c/xetexdir/XeTeX_ext.c
+++ b/Build/source/texk/web2c/xetexdir/XeTeX_ext.c
@@ -994,10 +994,11 @@ loadOTfont(PlatformFontRef fontRef, XeTeXFont font, Fixed scaled_size, const cha
features[nFeatures].tag = tag;
features[nFeatures].start = 0;
features[nFeatures].end = (unsigned int) -1;
- if (param == 0)
- features[nFeatures].value = 1;
- else
- features[nFeatures].value = param;
+ // for backward compatibility with pre-0.9999 where feature
+ // indices started from 0
+ if (param >= 0)
+ param++;
+ features[nFeatures].value = param;
nFeatures++;
goto next_option;
}