ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: default parameter in \definefont
Date: Tue, 26 Feb 2013 08:18:25 +0100	[thread overview]
Message-ID: <92717FC7-DF85-45AE-B534-ABA53AFA0B58@gmail.com> (raw)
In-Reply-To: <20130225180013.2b632568@localb.wexfordpress.net>


Am 26.02.2013 um 00:00 schrieb john Culleton <John@wexfordpress.com>:

> Some time back Wolfgang advised me to use statements like this:
> \definefont [titlefont][MyriadPro-Bold*default at 70bp]
> 
> I cannot find what the *default parameter does. Can someone educate me?

When you use a font in MkIV you have to specify which features of the font
should be enabled/disabled, to do this you define first a list for them with
the \definefontfeature command, e.g.

  \definefontfeature[myfeatures][liga=yes,onum=yes,…]


For the main fonts in the document which are loaded with \setupbodyfont
these settings are applied in the typescripts, e.g.

  \defintfontsynonym[Serif][MyRegularFont][features=myfeatures]

but when you load a single font with \definefont you apply
the list as argument to the font name after the asterisk.


When you want only a bigger version of the serif or sans version of your
document you can say \definefont[SansBold at 70bp] without applying
the list of features because the are already set in the typescripts.

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:[~2013-02-26  7:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-25 23:00 john Culleton
2013-02-26  7:18 ` Wolfgang Schuster [this message]
2013-02-26 15:04   ` john Culleton
2013-02-26 16:43     ` john Culleton
2013-02-26 16:55       ` Marco Patzer
2013-02-26 17:26         ` john Culleton
2013-02-27 11:19     ` 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=92717FC7-DF85-45AE-B534-ABA53AFA0B58@gmail.com \
    --to=wolfgang.schuster@gmail.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).