[luatex] luatextra font system

Ulrike Fischer luatex at nililand.de
Sat Mar 14 14:34:15 CET 2009


Am Sat, 14 Mar 2009 12:32:00 +0100 schrieb Elie Roux:

> Ulrike Fischer a écrit :
>> Incompatible to who? XeTeX *extended* the standard \font syntax to 
>> handle the loading of open type fonts but the syntax for all fonts 
>> that pdftex and raw luatex can handle too is unchanged.
>>   
> 
> Your TeX version handles \font="[myinternalfile]" for files in the TDS? 
> Great! Mine does not... That's how eu1*.fd handle fonts, and that's why 
> it's not compatible.

\font="[...]" is the syntax to load a font directly and extracts the
tfm from the font. A external tfm is not needed. 

pdftex is not able to do this. It needs an external tfm and
\font=<tfm-name> is the normal syntax to do this (and this syntax
works with xetex too). 

http://tug.org/mailman/htdig/xetex/2007-July/007048.html



>> And in no case generate a lot of eu1*.fd-files. As you can see if 
>> you look at xetex/fontspec there are quite unnecessary. Also you 
>> will never be able to generate all entries for all possible 
>> combinations of open type features. (fontspec generates the entries 
>> on the fly and use counters in the family name to distinguish 
>> different variants.)
>>   
> 
> Please read my mail again... I'm not talking about new fonts. Of course 
> new OT fonts will be declared with fontspec. I'm talking about using old 
> fonts, like times for example. 

Times is a new OT font too. So this sentence doesn't make sense. 

> The most logical way to use them with 
> LuaTeX would be to use them with EU1 encoding I think.

fontspec uses EU1 for all fonts it declares. It you use e.g.
\setmainfont{Cambria} and then look in the log-file you will find
font descriptions like EU1/Cambria(0)/bx/it. But only for the latin
modern fonts there are eu1*.fd-files. As far as I know Will used
this special way for the latin modern fonts because there are the
default fonts and should always work. 

So if you really think that fd-files are necessary make at least
sure that they don't disturb fontspec. The best would be if you used
EU2 as encoding name. 



-- 
Ulrike Fischer 



More information about the luatex mailing list