ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pablo Rodriguez <oinos@gmx.es>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: specifying body fonts
Date: Sun, 12 Feb 2017 18:32:37 +0100	[thread overview]
Message-ID: <89b36acf-f1fb-5c39-5775-7f701c17f61f@gmx.es> (raw)
In-Reply-To: <20170211155104.4cf3247f@acer3.locall.com>

On 02/11/2017 09:51 PM, John Culleton wrote:
> Reently I saw an example of setting up the various formats of a single
> body font such as \rm, \it \bf, \sc etc. with examples of using these in
> Gyre font. It may have been in the wiki or here on the list
> There were examples of slanted type vs.true italic as I recall. 
> I should have copied it but I didn't (at age 84 I forget to do things).

Hi John,

it was a sample from me. Sorry for not having answered before.

An extended version with slanted would be:

    \definefontfamily
        [mainface]
        [rm]
        [TeX Gyre Pagella]
        [it={TeX Gyre Cursor-Italic},
         sl={TeX Gyre Schola-Regular, features:{default,slanted}}
         bf={TeX Gyre Adventor-Bold},
         bi={TeX Gyre Termes-BoldItalic}]

    \setupbodyfontenvironment
        [default]
        [em=italic]

    \setupbodyfont[mainface]
    \starttext
    \startTEXpage[offset=1em]
    Roman font {\em italic} {\sl slanted}

    \bf Bold font \em bold italic
    \stopTEXpage
    \stoptext

Let me know if you miss something in the sample.


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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-02-12 17:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-11 20:51 John Culleton
2017-02-12 17:32 ` Pablo Rodriguez [this message]

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=89b36acf-f1fb-5c39-5775-7f701c17f61f@gmx.es \
    --to=oinos@gmx.es \
    --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).