[luatex] on lualatex

Pablo Rodríguez oinos at web.de
Sat Jun 5 19:45:09 CEST 2010


On 06/05/2010 05:35 PM, Will Robertson wrote:
> On 2010-06-05 20:42:33 +0930, Pablo Rodríguez <oinos at web.de> said:
>
>> I would like to start checking LuaLaTeX for micro-typographic features
>> (my texts contain no mathematical formulae).
>
> I believe recent versions of microtype support LuaLaTeX now. At some
> stage we might need to coordinate how microtype and fontspec
> communicate. Haven't looked into it yet.
>
> In the meantime you can use Hans' luatex-fonts.tex package to load
> OpenType fonts with Lua(La)TeX. But you'll need to write your own .fd
> files using them if you want to use them with LaTeX without fontspec.
> (E.g., see the eu2lmr.fd files with the euenc package.)
>
> But downloading a recent LuaTeX binary plus the latest versions of
> fontspec, luaotfload, etc., are probably easier :)

Thanks for your answer, Will.

Writing my own .fd files could be more difficult (I don't think this 
would be so complicated [I had to do that for Lambda, although I 
completely forgot how to do it ;-)]), but it won't take longer than 
downloading and updating.

I have solved it by copying eu2lmr.fd to the same directory where I 
compile the LuaLaTeX file and changing the following:

\DeclareFontShape{EU2}{lmr}{m}{n}%
      {<-10000>    "TheanoDidot-Regular:+tlig;+tsub;+liga;+rlig;"
       }{}

I have two questions:

How could I avoid the <-10000> in fonts that don't have optical sizes?

This only works if I have a copy of the font in the directory where I 
compile the LuaLaTeX document. Is there no way to specify the directory 
where the font is located or isn't it possible to instruct LuaLaTeX to 
find in an external directory (outside the texmf tree)?

Thanks for your help,


Pablo


More information about the luatex mailing list