From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: How to use Helvetica Neue Light (OS X)?
Date: Thu, 11 Feb 2016 11:32:14 +0100 [thread overview]
Message-ID: <56BC632E.4020508@gmail.com> (raw)
In-Reply-To: <n9hke3$pv2$1@ger.gmane.org>
[-- Attachment #1.1: Type: text/plain, Size: 2303 bytes --]
> Nicola <mailto:nvitacolonna@gmail.com>
> 11. Februar 2016 um 10:31
> On 2016-02-11 08:36:12 +0000, Taco Hoekwater said:
>
> [...]
>
> 8) Run `mtxrun --script font --reload --force`. After that, mtxrun
> shows me the same output as in step 4. Typesetting the document
> several times always results in `unknown font`. Document and log
> below.
>
> Nicola
>
> \definefontfamily [myfamily] [serif] [Avenir Next Condensed]
> \setupbodyfont[myfamily]
> \starttext
> \tf Regular, \it Italic \bf Bold and \bi BoldItalic
> \stoptext
The \definefontfamily uses currently a fixed value for the font width
but I won’t have time for this before the weekend because I have to
check a few (hundred!) fonts for the best solution.
Besides the \definefontfamily you can also write the required typescripts
yourself, below is a example for the normal Avenir Next fonts.
%%%% begin example
\starttypescript[sans][avenir]
\setups[font:fallback:sans]
\definefontsynonym [Sans] [Avenir Next(AvenirNext-Regular)]
\definefontsynonym [SansItalic] [Avenir Next(AvenirNext-Italic)]
\definefontsynonym [SansBold] [Avenir Next(AvenirNext-Bold)]
\definefontsynonym [SansBoldItalic] [Avenir
Next(AvenirNext-BoldItalic)]
\stoptypescript
\starttypescript[sans][avenir-light]
\setups[font:fallback:sans]
\definefontsynonym [Sans] [Avenir
Next(AvenirNext-UltraLight)]
\definefontsynonym [SansItalic] [Avenir
Next(AvenirNext-UltraLightItalic)]
\definefontsynonym [SansBold] [Avenir Next(AvenirNext-Medium)]
\definefontsynonym [SansBoldItalic] [Avenir
Next(AvenirNext-MediumItalic)]
\stoptypescript
\definetypeface [avenir] [ss] [sans] [avenir] [default] [features=default]
\definetypeface [avenir] [mm] [math] [modern] [default]
\definetypeface [avenir-light] [ss] [sans] [avenir-light] [default]
[features=default]
\definetypeface [avenir-light] [mm] [math] [modern] [default]
\setupbodyfont[avenir]
\starttext
\input knuth {\bf \input knuth }
\switchtobodyfont[avenir-light]
\input knuth {\bf \input knuth }
\stoptext
%%%% end example
BTW: ConTeXts already provides typescripts for many OS X fonts but they
are a little bit dated.
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 3559 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2016-02-11 10:32 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-09 22:15 Nicola
2016-02-10 11:36 ` Nicola
2016-02-10 12:48 ` Hans Hagen
2016-02-10 13:51 ` Nicola
2016-02-10 14:13 ` Hans Hagen
2016-02-10 14:45 ` Nicola
2016-02-10 15:19 ` Pablo Rodriguez
2016-02-10 15:49 ` Taco Hoekwater
2016-02-10 17:06 ` Nicola
2016-02-10 19:16 ` Hans Hagen
2016-02-10 16:44 ` Nicola
2016-02-10 20:04 ` Hans Hagen
2016-02-11 8:36 ` Taco Hoekwater
2016-02-11 9:31 ` Nicola
2016-02-11 9:48 ` Hans Hagen
2016-02-11 10:14 ` Taco Hoekwater
2016-02-11 10:46 ` Nicola
2016-02-11 10:32 ` Wolfgang Schuster [this message]
2016-02-11 10:49 ` Nicola
2016-02-11 11:03 ` Wolfgang Schuster
2016-02-11 13:38 ` Nicola
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=56BC632E.4020508@gmail.com \
--to=schuster.wolfgang@gmail.com \
--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).