ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Cambria typescript and Math problem
@ 2017-03-29 14:57 Henning Hraban Ramm
  0 siblings, 0 replies; only message in thread
From: Henning Hraban Ramm @ 2017-03-29 14:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-29 14:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-29 14:57 Cambria typescript and Math problem Henning Hraban Ramm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).