On 15-6-2011 10:59, Ulrike Fischer wrote:
With ConTeXt ver: 2011.06.13 23:08 MKIV fmt: 2011.6.15 (from the minimals) the following fails:
I have to admit that I never used \letterspacefont (luatex offers it as a pdftex compatibility feature and as such it's strongly related to traditional font handling). The command makes a copy of an internal (tfm) + adapted metrics.
\starttext
\font\test=file:fxlr.otf \test abc \letterspacefont\lspfont=\font 500 \lspfont blub
base mode i.e. traditional, so it works
%breaks: letterspaced font is not small small caps: \font\test=file:fxlr.otf:mode=node;+smcp \test abc \letterspacefont\lspfont=\font 500 \lspfont blub
a font defined to use node mode, but the copy is a basemode one so it has regular shapes and no smallcaps (as there are changed on the fly)
%letterspacefont works: \font\test=file:fxlr.otf:mode=base;+smcp \test abc \letterspacefont\lspfont=\font 500 \lspfont blub
base mode i.e. traditional, so it works
\stoptext
So, when someone wants that feature he/she'd better force basemode which is no big deal as letterspacing is selectively applied to often known / specially defined fonts. Anyhow, context users will not use that command / method but instead use \kerncharacters[fraction], as in: {test {\kerncharacters[.5] test \bf test} test} or \setuphead [section] [style=\sca, textstyle={\kerncharacters[.5]}] etc. Support using \letterspacefont is very unlikely to end up in the core font code. Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------