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: urw garamond typescript
Date: Thu, 24 Apr 2008 13:54:09 +0200	[thread overview]
Message-ID: <115224fb0804240454n34939474i59d2d1eed42b55d4@mail.gmail.com> (raw)
In-Reply-To: <20080424113501.GA26264@gaston.couberia.bzh>

On Thu, Apr 24, 2008 at 1:35 PM, Peter Münster <pmlists@free.fr> wrote:
> On Thu, Apr 24 2008, Wolfgang Schuster wrote:
>
> > \starttypescipt [mytypeface]
> >   \definetypeface [mytypeface] [ss] [sans] [...] [default]
> > \stoptypescript
>
> I try to ask better questions:
> - The first argument to \definetypeface is the name of the typeface, right?

The first argument is what you as font name for \setupbodyfont.

> - Why do I need the second *and* the third arguments, they seem redundant
>  to me?  ("ss" means always "sans" and so on)

AFAIK they are the command to switch from one style to another one,
e.g. \rm, \ss
but I wondered myself about this.

> - What is the meaning of the fourth argument, it seems that I don't need it?

The content is the name of the typescript you want to use for the font
collection,
take for example you are interested to combine different fonts for one document
to one collcetion.

\starttypescript [letter]
  \definetypeface [letter] [rm] [serif] [cambria] [default]
  \definetypeface [letter] [ss] [serif] [corbel] [default]
  \definetypeface [letter] [tt] [mono] [consolas] [default]
\stoptypescript

\usetypescript[letter]
\setupbodyfont[letter]

This is waht I use in my letter manual, I combine cambria as serif font,
corbel as sans font and consolas as mono font into the font collcetion letter.

Each of the three font is defined in a seperate typescript, the typescript for
the cambria font looks like

\starttypescript [serif] [cambria]
   ...
\stoptypescript

and the one for calibri

\starttypescripot [sans] [calibri]
  ...
\stoptypescript

> - Same question for the fifth argument.

Don't know, I though is has something to do with optical sizes but I never
tried anything else than default.

> > If you use this typescript as bodyfont a sans style would be used
> > instead of roman.
>
> > Why this odd defintion I see now why why you have to enclose all synonyms
> > within a typescript environment.
>
> I don't have to, this works too:
> \starttypescript [urwgaramond]
>  \setups[font:fallback:serif]
>  [...]
> \stoptypescript
> \starttypescript [urwgaramond]
>  [...]
>  \definetypeface [\typescriptone] [] [serif] []
> \stoptypescript

What do you use for [...] in the second typescript.

> > You will also loose the functionality to create a new font collcetion
> > for your document with the serif garamond as serif typeface, palatino
> > for math etc.
>
> Next exercise for me: creation of a new font collection!
> Could you suggest please, what fonts would fit nicely with garamond,
> for ss, tt and mm?

I suggest palatino (mathpazo?) for math but this would be more a topic
for Hraban, you could try to use the luxi mono fonts for typewriter.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2008-04-24 11:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-24  7:11 Peter Münster
2008-04-24  8:10 ` Hans Hagen
2008-04-24 11:00   ` Peter Münster
2008-04-24 11:14     ` Wolfgang Schuster
2008-04-24 11:35       ` Peter Münster
2008-04-24 11:54         ` Wolfgang Schuster [this message]
2008-04-24 12:30           ` Peter Münster
2008-04-24 13:12           ` Hans Hagen
2008-04-24 13:23             ` Wolfgang Schuster
2008-04-24 13:33               ` Hans Hagen
2008-04-26 19:06           ` Henning Hraban Ramm
2008-04-26 19:53             ` Hans Hagen
2008-04-26 22:15             ` Idris Samawi Hamid

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=115224fb0804240454n34939474i59d2d1eed42b55d4@mail.gmail.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).