Ahoi,

I’m trying to use Microsoft’s Cambria fonts (latest beta, MkIV).

The typescripts in type-imp-cambria.mkiv address the Regular and Math faces 
from cambria.ttc, that works.
But the other faces are only addressed by name, and ConTeXt can’t find them 
even if I put the font files into the working directory, tried refreshing the 
font database several times.

This doesn’t work:
\definefontsynonym [\s!SerifBold]       [\s!name:cambriabold]       
[\s!features=\s!default,\s!goodies=cambria]
\definefontsynonym [\s!SerifItalic]     [\s!name:cambriaitalic]     
[\s!features=\s!default,\s!goodies=cambria]
\definefontsynonym [\s!SerifBoldItalic] [\s!name:cambriabolditalic] 
[\s!features=\s!default,\s!goodies=cambria]

If I declare the files for those faces, it works. Like this:

    \starttypescript [math,serif] [cambria,cambria-m]
        \definefontsynonym [CambriaMath]  [file:cambria.ttc(Cambria Math)]
        \definefontsynonym [CambriaSerif] [file:cambria.ttc(Cambria)]
        \definefontsynonym [CambriaItalic] [file:cambriai]
        \definefontsynonym [CambriaBold] [file:cambriab]
        \definefontsynonym [CambriaBoldItalic] [file:cambriaz]
    \stoptypescript
    \starttypescript [serif] [cambria,cambria-m] [name]
        \setups[font:fallback:serif]
        \definefontsynonym [Serif]           [CambriaSerif]      
[features=default,goodies=cambria]
        \definefontsynonym [SerifBold]       [CambriaBold]       
[features=default,goodies=cambria]
        \definefontsynonym [SerifItalic]     [CambriaItalic]     
[features=default,goodies=cambria]
        \definefontsynonym [SerifBoldItalic] [CambriaBoldItalic] 
[features=default,goodies=cambria]
    \stoptypescript

I also had to add "cambria" in the second argument of the typescript.

Does the typescript from the distribution work for anyone? MnWE:


\usetypescriptfile[type-imp-cambria]
\setupbodyfont[cambria,rm,10pt]

\starttext

This is Cambria {\it italic} {\bf bold} {\bi bold italic} and some 
\m{\sqrt{123}^4/5 math}.

\stoptext


This example also fails with a math error: parameter 
\Umathsup_shift_up\textstyle is not set


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to