From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: changing typeface
Date: Thu, 23 Aug 2007 16:44:08 -0400 (EDT) [thread overview]
Message-ID: <alpine.WNT.0.999.0708231630530.2648@nqvgln> (raw)
In-Reply-To: <46CDDE27.7010400@gmail.com>
On Thu, 23 Aug 2007, Istvan Hollerbach wrote:
> Hi,
>
> Ok, I have seen showfont.pdf, and have tried
>
> \definetypeface [times] [rm] [serif] [times] [default] [encoding=ec]
> \switchtotypeface [times] [12pt,rm],
>
> and they work. But what are [rm], [encoding=ec] and why is included
> [times] twice? I do not understand the syntax.
This is the basic syntax of "using" a typeface (defining typefaces is
different).
\definetypeface [name of typeface] [style] [font style] [font name]
[special mappings] [extras]
You can give anything as the name of the typeface. In the above
example it is times. When you switch to that font, you need to use the
name of the typeface. So you could have also done
\definetypeface [mainface] [rm] [serif] [times] [default] [encoding=ec]
\switchtobodyfont[mainface, rm 12pt]
The style (rm), and font style (serif) are needed for internal
purposes. This is telling context that times is a serif font
(http://en.wikipedia.org/wiki/Serif) and it will be used as the roman
(rm) style of the typeface. Other options are sans serif
(http://en.wikipedia.org/wiki/Sans-serif) used as sans-serif style,
which is indicated by [ss] [sans].
The special mappings tell context if something special needs to be
done for that font. I have only seen this being used for math fonts.
In other cases you can leave it to default.
The extras specify, encoding, scaling, (and in case of math fonts, the
text typeface in math operators). In the above, encoding=ec tells
ConTeXt to use ec encoding (also called cork encoding)
see http://www.tug.org/fontname/html/Encodings.html#Encodings. The
more commonly used encoding with context is texnansi (also called
LY1).
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2007-08-23 20:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-23 15:49 Istvan Hollerbach
2007-08-23 16:22 ` Hans Hagen
2007-08-23 16:46 ` Aditya Mahajan
2007-08-23 19:21 ` Istvan Hollerbach
2007-08-23 20:29 ` Henning Hraban Ramm
2007-08-23 20:44 ` Aditya Mahajan [this message]
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=alpine.WNT.0.999.0708231630530.2648@nqvgln \
--to=adityam@umich.edu \
--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).