Let me be more specific.
For handwriting I can do \setupbodyfont[luci,10pt,hw] and get everything in handwriting, or {\hw ...} for local handwriting. The typescript for handwriting is:
\starttypescript [handwriting] [lucibr] [name]
\definebodyfont [default] [hw] [tf=Handwriting sa 1]
\definefontsynonym [Handwriting] [LucidaHandwriting-Italic]
\definefontsynonym [LucidaHandwriting-Italic] [file:lbh.tfm]
\stoptypescript
and there is:
\definetypeface [luci][hw] [handwriting] [lucibr][default]
\definetypeface [luci][fx] [fax] [lucibr][default]


For the fax (fx) type I did add the same sort of typescript for the font plus for the size
\starttypescript [fax] [lucibr] [name] \tracetypescript
\definebodyfont
[4pt,5pt,6pt,7pt,8pt,9pt,10pt,11pt,12pt,14.4pt,17.3pt,24pt]
[fx] [default]
\stoptypescript

Addition of \definefontstyle [fx,fax][fx] make no difference. \setupbodyfont[luci,10pt,fx] has no effect and {\fx ...} crashes on an undefined \fx.

By the way. Font variants like \variant[blackletter] used to worked. I had serif typescript additions for it:
\definefontvariant [Serif] [blackletter] [-Blackletter]
\definefontsynonym [Serif-Blackletter] [LucidaBlackletter]
and the accompanying reference to the tfm.
Has this changed in mkiv too?

I hope this information will enable the answer. Either crushing my hopes for an easy solution or pointing out the way to go ;-)

On 19 aug 2009, at 09:08, Hans Hagen wrote:

Hans van der Meer wrote:
This used to define command \fx in a typescript:
\definefontstyle [fax] [fx]
\definestyle [fax] [\fx] []
However MKIV produces an undefined control sequence \fx.
What happened?

actual definition of those commands is delayed so in order to test what is wrong a more complete example is needed

btw, you can say:

\definefontstyle [fx,fax] [fx]

Hans


Hans van der Meer