On 27-10-2010 3:49, nitralime wrote:
I have made a mistake in my typescript. Here is the corrected version:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
..............
\starttypescript [math] [fourier][texnansi]
\definefontsynonym [Fourier-Math-Letters] [name:fouriermathletters]
\definefontsynonym [Fourier-Math-Letters-Italic]
[name:fouriermathlettersitalic]
\definefontsynonym [Fourier-Math-Letters-Bold]
[name:fouriermathlettersbold]
\definefontsynonym [Fourier-Math-Letters-BoldItalic]
[name:fouriermathlettersbolditalic]
\definefontsynonym [Fourier-Math-Blackboard] [name:fouriermathblackboard]
\definefontsynonym [Fourier-Math-Calligraphic] [name:fouriermathcal]
\definefontsynonym [Fourier-Math-Symbols] [name:fouriermathsymbols]
\definefontsynonym [Fourier-Math-Extension] [name:fouriermathextension]
%-----------------------------------------------------------------------
\definefontsynonym [Euler-Fraktur] [name:eufm10]
\definefontsynonym [Euler-Fraktur-Bold] [name:eufb10]
%-----------------------------------------------------------------------
\stoptypescript
..............
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

However, this correction has not affected the final result. The same
problem as before:-(

It does not work that way in mkiv.

(1) you need a proper serif definition:

\starttypescript [serif] [utopia] [name]
    \definefontsynonym [Serif]            [file:whatever.afm]
    \definefontsynonym [SerifItalic]      [file:...]
    \definefontsynonym [SerifBold]        [file:...]
    \definefontsynonym [SerifBoldItalic]  [file:...]
    \definefontsynonym [SerifSlanted]     [file:...]
    \definefontsynonym [SerifBoldSlanted] [file:...]
\stoptypescript

(2) you need a math definition:

\starttypescript [math] [fourier]
    \loadfontgoodies[fourier-math]
    \definefontsynonym[mathroman][four...@fourier-math]
\stoptypescript

(3) now you can define a typeface:

\definetypeface[whatever][rm][serif][utopia] [default]
\definetypeface[whatever][mm][math] [fourier][default]

\setupbodyfont[whatever]

However, first you need to figure out the right names for the utopia files. Next you need to make a file fourier-math.lfg, like:

return {
    name = "fourier-math",
    version = "1.00",
    comment = "Goodies that complement fourier math.",
    author = "Hans",
    copyright = "ConTeXt development team",
    mathematics = {
        mapfiles = {
            "fourier.map",
        },
        virtuals = {
            ["fourier-math"] = {
                { name = "futmi.tfm", vector = "tex-mi" },
                { name = "futmii.tfm", vector = "tex-it" },
{ name = "futsy.tfm", vector = "lbr-sy", skewchar=0x7F, parameters = true }, { name = "fourier-mex.tfm", vector = "tex-ex", extension = true },
            }
        }
    }
}

This does not work at my end as the names of the files are wrong. Also, more entries are needed (see for instance lucida-math.lfg). I have no time to figure out these names.

(btw, there is already some math utopia support)



-----------------------------------------------------------------
                                          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
___________________________________________________________________________________

Reply via email to