ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Antoine Cailliau <antoinecailliau@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Handling Semi-Bold for Minion Pro in Context (LuaTeX)
Date: Mon, 2 May 2016 11:19:52 +0200	[thread overview]
Message-ID: <CAKX8Tc5krOw-sHzKw6PUg_X9Dt7LCLHenHgwOpei37E+M=Y-aA@mail.gmail.com> (raw)


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

Hello,

I'm trying to use the font Minion Pro for my document. I'm using the
simplefont module but I cannot use the semibold font. I guess I'm missing
some line in the configuration to bind sb to the semibold variant. Here is
a short example of my setup:

\definefontalternative[sb]
\definefontalternative[sbi]

\definefontfeature[default][default]
[mode=node,
script=latn,
kern=yes,
palt=yes,
tlig=yes,
trep=yes,
init=yes,
size=yes]
\definefontfeature[frac][default][frac=yes]
\definefontfeature[sups][default][sups=yes]
\definefontfeature[onum][default][onum=yes]
\definefontfeature[lnum][default][lnum=yes]

\definefontfamily [myfamily] [serif] [MinionPro]
\definefontfamily [myfamily] [sans]  [MyriadPro]

\setupbodyfont [myfamily]

\define[1]\sup{\feature[+][f:superscript]#1}
\defineparagraphs[TwoColumns][n=2, align={hz, hanging}]
\setupparagraphs[TwoColumns][1][width=100pt, style=italic, align=left]

\starttext

\startbuffer[Plato]
How you, O Athenians, have been affected by my accusers, I cannot tell;
but I know that they almost made me forget who I was--so persuasively
did they speak; and yet they have hardly uttered a word of truth.
\stopbuffer

\startTwoColumns
Roman\TwoColumns
\getbuffer[Plato]
\stopTwoColumns

\startTwoColumns
Italic\TwoColumns
{\it\getbuffer[Plato]}
\stopTwoColumns

\startTwoColumns
Semi bold\TwoColumns
{\sb\getbuffer[Plato]}
\stopTwoColumns

\startTwoColumns
Bold\TwoColumns
{\bf\getbuffer[Plato]}
\stopTwoColumns

\startTwoColumns
Semi bold italic\TwoColumns
{\sbi\getbuffer[Plato]}
\stopTwoColumns

\startTwoColumns
Bold italic\TwoColumns
{\bi\getbuffer[Plato]}
\stopTwoColumns

\stoptext

Any help is deeply welcome,

Antoine

[-- Attachment #1.2: Type: text/html, Size: 2893 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-02  9:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-02  9:19 Antoine Cailliau [this message]
2016-05-02 18:35 ` Wolfgang Schuster
2016-05-03  6:58   ` Antoine Cailliau
2016-05-03 20:13     ` Wolfgang Schuster
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='CAKX8Tc5krOw-sHzKw6PUg_X9Dt7LCLHenHgwOpei37E+M=Y-aA@mail.gmail.com' \
    --to=antoinecailliau@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).