ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
Subject: Re: Mixing fonts ?
Date: Wed, 03 May 2006 13:25:41 +0200	[thread overview]
Message-ID: <1146655541.6576.4.camel@localhost> (raw)
In-Reply-To: <44588BEC.7070708@cs.com>

On Wed, 2006-05-03 at 12:54 +0200, WN wrote:
> I am trying to learn more about font switching (read the font manuals 
> but to no avail).
> The thing I am trying to do is :
> 
> * For normal text I want to use the Times-Roman font
> * For math's I want to use a different font, i.e. Computer Modern
> 
> I think I have to work with typescripts and use combinations of 
> \setupbodyfont but
> I cannot work out the proper combination.
> 
> Thanks for any help
> Regards
> Wim

This should work:

\usetypescript[modern]
\usetypescript[times][ec]

\definetypeface[MyFace][rm][serif][times][default][encoding=ec]
\definetypeface[MyFace][mm][math][modern][default][encoding=ec]

\setupbodyfont[MyFace,12pt]

There's some interesting stuff on the wiki:

http://wiki.contextgarden.net/Psnfss

HTH

Thomas

  reply	other threads:[~2006-05-03 11:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-03 10:54 WN
2006-05-03 11:25 ` Thomas A. Schmitz [this message]
2006-05-03 17:06 ` Willi Egger

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=1146655541.6576.4.camel@localhost \
    --to=thomas.schmitz@uni-bonn.de \
    --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).