On 07/06/2010, at 1:19 AM, M. Niedermair wrote:

>> 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.
> 
> I want to do like this with lualtex and luaotfload:
> 
> \usefont{EU2}{fxl}{m}{n}\selecfont
> some text with numbers 0123456789
> {\addfontfeature{+onum} and old style numbers 01234567890}


I found the code to reset a LaTeX font definition.
If you put \ma...@onum in your .fd file and load the font like usual, you can 
then execute this:

   \global\expandafter\let 
      \csnam...@encoding/% 
             \...@family/% 
             \...@series/% 
             \...@shape/% 
             \...@size\endcsname 
       \relax 

to forget about the font, then change \ma...@onum, and reload the font.

But please don't use the same macro names as fontspec, as I'm sure it will only 
lead to confusion :)

-- Will


Reply via email to