I want to use a feature file to change the positioning of a single letter, but it does not seem to work. Here is an example:
\documentclass{article}
\usepackage{fontspec}
\RequirePackage{filecontents}
\begin{filecontents*}{kern.fea}
languagesystem DFLT dflt;
languagesystem latn dflt;
feature kern {
#pos a <0 100 0 0>; # this does not work and breaks the rest of the file
pos e <0 100 0 0> x;
pos i s -300;
} kern;
\end{filecontents*}
\setmainfont[FeatureFile=kern.fea]{texgyrepagella-regular.otf}
\begin{document}
This is an example text.
\end{document}
If I understand font features correctly, the line pos a <0 100 0 0>; should raise the letter a by 100 units. What happens if that line is uncommented in the above example depends on the version of lualatex:
- With TeX Live 2013, the statement works but the other two statements stop working.
- With TeX Live 2015, all three statements have no visible effect.
Do I do something wrong or is this a bug?
pos i s -300;, but I couldn't find a way to change the position of a single glyph. – tim May 09 '16 at 22:22substitution,ligature, andkernwork, but there seems not to be apositiontype to change the position of a single glyph independent of other glyphs. – tim May 10 '16 at 15:13