[lltx] luaotfload with feature file

Lon Mitchell lonmitchell at gmail.com
Fri Jul 27 22:59:00 CEST 2012


Dear LuaTeX Team:

I'm trying to use a OTF feature file with luaotfload to increase 
side-bearings when using a text font in mathematics.  It seems to work 
great for in-line math but does not seem to work at all in display 
math.  I was hoping you might know why . . . .   Please see attached 
files for an example.  I'm using MikTeX 2.9.

Thanks for your time.

Lon Mitchell



-------------- next part --------------
A non-text attachment was scrubbed...
Name: testfeature.pdf
Type: application/pdf
Size: 19108 bytes
Desc: not available
URL: <http://tug.org/pipermail/lualatex-dev/attachments/20120727/e1b6c13f/attachment-0001.pdf>
-------------- next part --------------
\documentclass[12pt]{article}

\usepackage{luaotfload}
\usepackage[EU2]{fontenc}
\DeclareFontFamily{EU2}{mathfont}{}
\DeclareFontShape{EU2}{mathfont}{m}{it}{<->"Gentium-Italic:featurefile=testfeature.fea;+mkrn;"}{}
\DeclareSymbolFont{mathletters}{EU2}{mathfont}{m}{n}
\SetSymbolFont{mathletters}{normal}{EU2}{mathfont}{m}{it}
\DeclareMathSymbol{a}\mathalpha{mathletters}{"61}
\DeclareMathSymbol{b}\mathalpha{mathletters}{"62}

\begin{document}
$a+b$
\[ a+b \]
\end{document}
-------------- next part --------------
 languagesystem DFLT dflt;
 languagesystem latn dflt; 

feature mkrn {
position [a-z] <1000 0 2000 0>;
} mkrn;


More information about the lualatex-dev mailing list