ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Handling Semi-Bold for Minion Pro in Context (LuaTeX)
Date: Tue, 03 May 2016 22:13:24 +0200	[thread overview]
Message-ID: <57290664.5030608@gmail.com> (raw)
In-Reply-To: <CAKX8Tc5m=oyG4V8OENkQrL4aDUYbWh-b-zK52xCLSx31aAbUng@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1488 bytes --]

> Antoine Cailliau <mailto:antoinecailliau@gmail.com>
> 3. Mai 2016 um 08:58
>
>     The \definefontfamily command is limited to the default
>     alternatives (tf, bf, it, sl, bi, bs ans sc).
>
>
> Thanks for your answer, what shall I use to define non-default 
> alternatives?
At the moment your only option is to write your own typescript for the 
fonts.

\definefontalternative[sb]
\definefontalternative[si]

\starttypescript [sans] [source-sans]
   \definebodyfont [default] [ss]
     [tf=Sans             sa 1,
      it=SansItalic       sa 1,
      sb=SansMedium       sa 1,
      si=SansMediumItalic sa 1,
      bf=SansBold         sa 1,
      bi=SansBoldItalic   sa 1]
\stoptypescript

\starttypescript [sans] [source-sans]
     \definefontsynonym [Sans]             [file:SourceSansPro-Regular.otf]
     \definefontsynonym [SansItalic]       [file:SourceSansPro-It.otf]
     \definefontsynonym [SansMedium]       [file:SourceSansPro-Semibold.otf]
     \definefontsynonym [SansMediumItalic] 
[file:SourceSansPro-SemiboldIt.otf]
     \definefontsynonym [SansBold]         [file:SourceSansPro-Bold.otf]
     \definefontsynonym [SansBoldItalic]   [file:SourceSansPro-BoldIt.otf]
\stoptypescript

\definetypeface [source] [ss] [sans] [source-sans] [default] 
[features=default]
\definetypeface [source] [mm] [math] [xits]        [default]

\setupbodyfont[source]

\starttext

Upright {\it Italic} {\sb SemiBold} {\si SemiBoldItalic} {\bf Bold} {\bi 
BoldItalic}

\stoptext

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 3547 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
___________________________________________________________________________________

  reply	other threads:[~2016-05-03 20:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-02  9:19 Antoine Cailliau
2016-05-02 18:35 ` Wolfgang Schuster
2016-05-03  6:58   ` Antoine Cailliau
2016-05-03 20:13     ` Wolfgang Schuster [this message]
2016-05-04  8:31       ` Antoine Cailliau
2016-05-04 14:00         ` Antoine Cailliau
2016-05-04 14:39         ` Wolfgang Schuster
2016-05-04 15:48           ` Antoine Cailliau

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=57290664.5030608@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).