From: Henning Hraban Ramm <texml@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Cambria typescript and Math problem
Date: Wed, 29 Mar 2017 16:57:43 +0200 [thread overview]
Message-ID: <6DF2BFE2-7519-42ED-8F70-0A5836B0170F@fiee.net> (raw)
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 other threads:[~2017-03-29 14:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6DF2BFE2-7519-42ED-8F70-0A5836B0170F@fiee.net \
--to=texml@fiee.net \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).