ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* specifying body fonts
@ 2017-02-11 20:51 John Culleton
  2017-02-12 17:32 ` Pablo Rodriguez
  0 siblings, 1 reply; 2+ messages in thread
From: John Culleton @ 2017-02-11 20:51 UTC (permalink / raw)
  To: ntg-context

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).

No biggie but does this ring any bells?
-- 
John Culleton
Wexfordpress
Book design and indexing.


___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: specifying body fonts
  2017-02-11 20:51 specifying body fonts John Culleton
@ 2017-02-12 17:32 ` Pablo Rodriguez
  0 siblings, 0 replies; 2+ messages in thread
From: Pablo Rodriguez @ 2017-02-12 17:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-12 17:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-11 20:51 specifying body fonts John Culleton
2017-02-12 17:32 ` Pablo Rodriguez

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).