[luatex] font expansion / HZ

Patrick Gundlach patrick at gundla.ch
Mon Jan 10 09:00:55 CET 2011


Am 09.01.2011 um 23:14 schrieb Paul Isambert:

> Le 09/01/2011 19:33, Patrick Gundlach a écrit :
>> Hi,
>> 
>> I am experimenting with the pdftex features (margin kerning and font expansion). So far I have only been able to make margin kerning to work. Now I tried font expansion but couldn't note any difference to what I have before. I set
>> 
>> \pdfadjustspacing=2
>> 
>> and for the font I set the parameters to (for example)
>> 
>>   f.parameters.stretch = 30
>>   f.parameters.shrink  = 20
>>   f.parameters.step    = 10
>>   f.parameters.auto_expand = true
>> 
>> (where f is the font object for font.define(f))
>> 
>> Without posting a complete minimal example: can someone tell me if these parameters look OK or if I am missing anything "obvious"?

> I think, but might be completely mistaken, that they're ok... but wrong: those parameters are not supposed to be set like that, but when the font is created; i.e. there lacks what \pdffontexpand does, that is creating two ghost fonts. In other words, once a font has been loaded, those parameters are only informative, and changing them is useless.

This _is_ while loading/creating the font. I am using a setup similar to

http://wiki.luatex.org/index.php/Use_a_TrueType_font

without going through the callback but directly defining the font:

num = font.define(f)
and then
tex.definefont("name",num)

\name this is in the font f

So how to create the ghost fonts here?


Patrick




More information about the luatex mailing list