ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* How to switch single font?
@ 2016-08-05 15:03 Henri Menke
  2016-08-05 15:29 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Henri Menke @ 2016-08-05 15:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

how can I switch to another typeface for the, say, roman font only?  When I use \definefontfamily to do so it switches *all* the fonts, including math, to the one loaded (example below).  This leads to very undesirable effects, such as math is no longer set in italics.

Cheers, Henri

---

\definefontfamily[main][rm][Linux Libertine O]
\setupbodyfont[main]
\starttext
foo $bar$
\stoptext
___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Re: How to switch single font?
  2016-08-05 15:03 How to switch single font? Henri Menke
@ 2016-08-05 15:29 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2016-08-05 15:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

> Henri Menke <mailto:henrimenke@gmail.com>
> 5. August 2016 um 17:03
> Dear list,
>
> how can I switch to another typeface for the, say, roman font only? 
> When I use \definefontfamily to do so it switches *all* the fonts, 
> including math, to the one loaded (example below). This leads to very 
> undesirable effects, such as math is no longer set in italics.
>
> Cheers, Henri
>
> ---
>
> \definefontfamily[main][rm][Linux Libertine O]
> \setupbodyfont[main]
> \starttext
> foo $bar$
> \stoptext
You have to set the math font (and sans serif or mono when you use them) 
as well
because you’re switching to a new collection of fonts when you change 
the bodyfont.

\definetypeface [main] [rm] [serif] [libertine] [default]
\definetypeface [main] [mm] [math]  [modern]    [default]

\setupbodyfont[main]

\starttext
foo $bar$
\stoptext

Wolfgang

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

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

end of thread, other threads:[~2016-08-05 15:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-05 15:03 How to switch single font? Henri Menke
2016-08-05 15:29 ` Wolfgang Schuster

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