Thanks Wolfgang,

but I got following error:
define font | font with name hlcrim is not found
math virtual | loading font lucidamath subfont 2 with name hlcrim at 458752 is skipped, not found
define font | font with name hlcry is not found
math virtual | loading font lucidamath subfont 3 with name hlcry at 458752 is skipped, not found
define font | font with name hlcrv is not found
math virtual | loading font lucidamath subfont 4 with name hlcrv at 458752 is skipped, not found
! LuaTeX error ...tminimal/texmf-context/tex/context/base/math-vfu.lua:85: attempt to index field '?' (a nil value)
stack traceback:
    ...tminimal/texmf-context/tex/context/base/math-vfu.lua:85: in function 'arrow'
    ...tminimal/texmf-context/tex/context/base/math-vfu.lua:222: in function 'alas'
    ...tminimal/texmf-context/tex/context/base/math-vfu.lua:498: in function <...tminimal/texmf-context/tex/context/base/math-vfu.lua:243>
    (tail call): ?
    (tail call): ?
    ...tminimal/texmf-context/tex/context/base/font-def.lua:506: in function 'read'
    ...tminimal/texmf-context/tex/context/base/font-ctx.lua:288: in function 'command_2'
    <main ctx instance>:1: in main chunk.
\lowleveldefinefont ...dimexpr \textface \relax )}
                                                  \edef \somefontspec {at \s...
\xxdododefinefont ...efont {#4}\newfontidentifier
                                                  \let \localrelativefontsiz...
\dodosetmathfamily ...family \fontsize \endcsname
                                                  \else \ifcsname \fontclass...
\dosetmathfamily ...athfamily \scriptscriptfont #1
                                                  \let \currentmathsize \plu...
\synchronizemath ...athfonts \the \mathstrategies
                                                  \fi
<inserted text> ...chronizefonts \synchronizemath
                                                  \synchronizefont \fi \spac...
...
l.3 \setupbodyfont[lucida]


Installing the tfm and vf fontfiles from CTAN did not help.

after adapting your script to:

\startluacode
mathematics.make_font ( "lucida-math", {
   { name = "lbr.afm", features = "virtualmath", main = true },
   { name = "lbmi.afm", vector = "traditional-mi", skewchar=0x7F },
   { name = "lbms.afm", vector = "traditional-sy", skewchar=0x30, parameters = true },
   { name = "lbme.afm", vector = "traditional-ex", extension = true },
   { name = "msam10", vector = "traditional-ma" },
   { name = "msbm10", vector = "traditional-mb" },
} )
\stopluacode

ConTeXt found the fonts but gaves:

! LuaTeX error ...tminimal/texmf-context/tex/context/base/math-vfu.lua:464: attempt to index local 'fci' (a nil value)
stack traceback:
    ...tminimal/texmf-context/tex/context/base/math-vfu.lua:464: in function <...tminimal/texmf-context/tex/context/base/math-vfu.lua:243>
    (tail call): ?
    (tail call): ?
    ...tminimal/texmf-context/tex/context/base/font-def.lua:506: in function 'read'
    ...tminimal/texmf-context/tex/context/base/font-ctx.lua:288: in function 'command_2'
    <main ctx instance>:1: in main chunk.
\lowleveldefinefont ...dimexpr \textface \relax )}
                                                  \edef \somefontspec {at \s...
\xxdododefinefont ...efont {#4}\newfontidentifier
                                                  \let \localrelativefontsiz...
\dodosetmathfamily ...family \fontsize \endcsname
                                                  \else \ifcsname \fontclass...
\dosetmathfamily ...athfamily \scriptscriptfont #1
                                                  \let \currentmathsize \plu...
\synchronizemath ...athfonts \the \mathstrategies
                                                  \fi
<inserted text> ...chronizefonts \synchronizemath
                                                  \synchronizefont \fi \spac...
...
l.3 \setupbodyfont[lucida]

No success so far...


Greetings Lutz



2009/4/23 Wolfgang Schuster <schuster.wolfgang@googlemail.com>

Am 23.04.2009 um 07:18 schrieb Lutz Haseloff:


Hi Hans, hi all,

with LuaTeX 0.40 the names database is written again and with Wolfgang's type-lucida.tex
i can use LucidaBright. Is there any chance to get the Lucida Math fonts working in
mkiv?


Add the following at the end of my typescript I send in my last mail, I tested it with
a few simple equations but it would help if we have a real test document like the one
from AMS.

\startluacode
mathematics.make_font ( "lucida-math", {
   { name = "lbr.afm", features = "virtualmath", main = true },
   { name = "hlcrim", vector = "traditional-mi", skewchar=0x7F },
   { name = "hlcry", vector = "traditional-sy", skewchar=0x30, parameters = true },
   { name = "hlcrv", vector = "traditional-ex", extension = true },
   { name = "msam10", vector = "traditional-ma" },
   { name = "msbm10", vector = "traditional-mb" },
} )
\stopluacode

\starttypescript [math] [lucida] [all]
   \definefontsynonym[MathRoman][lucidamath@lucida-math]
   \loadmapfile[lucida.map]
\stoptypescript

\starttypescript [lucida]
 \definetypeface [lucida] [rm] [serif]       [lucida] [default]
 \definetypeface [lucida] [ss] [sans]        [lucida] [default]
 \definetypeface [lucida] [tt] [mono]        [lucida] [default]
 \definetypeface [lucida] [mm] [math]        [lucida] [default]
 \definetypeface [lucida] [hw] [handwriting] [lucida] [default]
 \definetypeface [lucida] [cg] [calligraphy] [lucida] [default]
\stoptypescript

Wolfgang


___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________