ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: times new roman, arial and courier fonts
Date: Sun, 24 Jan 2010 10:59:20 +0100	[thread overview]
Message-ID: <4B5C19F8.1090308@googlemail.com> (raw)
In-Reply-To: <c86049a21001231122h54576595ib2dbe6027874e2e2@mail.gmail.com>

Am 23.01.10 20:22, schrieb Marius:
> The solution to my question is:
>
> \usetypescriptfile[type-win]
> \starttypescript [winfonts]
>   \definetypeface [winfonts] [rm] [serif] [times]   [default]
>   \definetypeface [winfonts] [ss] [sans]  [arial]   [default]
>   \definetypeface [winfonts] [tt] [mono]  [courier] [default]
>   \definetypeface [winfonts] [mm] [math]  [times]   [default]
> \stoptypescript
> \usetypescript[winfonts]
> \setupbodyfont[winfonts,10pt]

There is another way to do this in MkIV.

\definetypeface[winfonts][rm][specserif][Times New Roman][default]
\definetypeface[winfonts][ss][specsans] [Arial]		 [default]
\definetypeface[winfonts][tt][specsmono][Courier]	 [default]
\definetypeface[winfonts][mm][math]	[times]		 [default]

\setupbodyfont[winfonts]

The third argument is one of the three keywords specserif, specsans or 
specmono and the fourth is the familyname of the font. You could use 
spaces and uppercase letters in the familyname because ConTeXt takes 
care of this and removes them itself in the definition, this system is 
build on top of the new spec-Interface for fonts.

Wolfgang
___________________________________________________________________________________
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:[~2010-01-24  9:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-23 14:46 Marius
2010-01-23 14:57 ` Wolfgang Schuster
2010-01-23 19:22   ` Marius
2010-01-24  9:59     ` Wolfgang Schuster [this message]
     [not found] <mailman.0.1264330801.10026.ntg-context@ntg.nl>
2010-01-24 14:32 ` Vyatcheslav Yatskovsky
2010-01-24 17:06   ` Wolfgang Schuster

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=4B5C19F8.1090308@googlemail.com \
    --to=schuster.wolfgang@googlemail.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).