On 07/06/2010, at 12:48 AM, M. Niedermair wrote:
> \ProvidesFile{eu2fxl.fd}[2010/04/19 v4.6.5b Font defs for Libertine]
> \def\eu2...@parms{mode=node;script=latn;+ccmp;+locl;+mark;+mkmk;+kern;+liga;+clig;+trep;+tlig}
> \expandafter\ifx\csname f...@scale\endcsname\relax
> \let\fxl@@sca...@empty%
> \else
> \edef\fxl@@scale{s*[\csname f...@scale\endcsname]}%
> \fi
> \DeclareFontFamily{EU2}{fxl}{}
> \DeclareFontShape{EU2}{fxl}{m}{n} {<-> \fxl@@scale
> file:fxlr:\eu2...@parms}{}
> \DeclareFontShape{EU2}{fxl}{m}{it} {<-> \fxl@@scale
> file:fxlri:\eu2...@parms}{}
> ...
>
> Is it possible to activate a otf feature like +onum with a macro, such as
> \addfontfeature in xetex?
Only the first time the font is loaded as you're doing with the scale macro.
LaTeX doesn't read an .fd file twice, although somewhere once I had code that
disabled its check for exactly this sort of situation.
You shouldn't need to apply the default features (+kern, etc.) as you are doing
there; luaotfload should be applying them automatically, unless I'm mistaken.
Cheers,
-- Will