On 15-8-2011 8:04, Wolfgang Schuster wrote:
Hi,
is italic correction still supported with MkIV because in the following example
the second sentence has the same length as the first.
% engine=pdftex
\starttext
\setbox\scratchbox\hbox{A short sentence with a {\it italic} word.}
\the\wd\scratchbox\ : \box\scratchbox\par
\setbox\scratchbox\hbox{A short sentence with a {\it italic\/} word.}
\the\wd\scratchbox\ : \box\scratchbox
\stoptext
yes and no:
yes: the code is there
no : it has not been adapted to the font cleanup
So, first fix this in font-ext.lua:
local descriptions = tfmdata.descriptions
for unicode, d in next, tfmdata.characters do
local d = descriptions[unicode]
Then enable the feature:
\starttext
\definefontfeature[one][default]
\definefontfeature[two][default][itlc=yes]
\definefont[testa][SerifItalic*one]
\definefont[testb][SerifItalic*two]
\setbox\scratchbox\hbox{A short sentence with a {\testa italic} word.}
\the\wd\scratchbox\ : \box\scratchbox\par
\setbox\scratchbox\hbox{A short sentence with a {\testa italic\/} word.}
\the\wd\scratchbox\ : \box\scratchbox
\setbox\scratchbox\hbox{A short sentence with a {\testb italic} word.}
\the\wd\scratchbox\ : \box\scratchbox\par
\setbox\scratchbox\hbox{A short sentence with a {\testb italic\/} word.}
\the\wd\scratchbox\ : \box\scratchbox
\stoptext
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________