From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36172 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: changing typeface Date: Thu, 23 Aug 2007 16:44:08 -0400 (EDT) Message-ID: References: <46CDAC8D.6050102@gmail.com> <46CDB42D.2060500@wxs.nl> <46CDDE27.7010400@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1187901873 1536 80.91.229.12 (23 Aug 2007 20:44:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 23 Aug 2007 20:44:33 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 23 22:44:30 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1IOJXY-0007JT-Pg for gctc-ntg-context-518@m.gmane.org; Thu, 23 Aug 2007 22:44:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DCAA020028; Thu, 23 Aug 2007 22:44:26 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19408-03-3; Thu, 23 Aug 2007 22:44:17 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 62F092001A; Thu, 23 Aug 2007 22:44:17 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EF6D42001A for ; Thu, 23 Aug 2007 22:44:15 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19408-03-2 for ; Thu, 23 Aug 2007 22:44:11 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by ronja.ntg.nl (Postfix) with ESMTP id 38EF420014 for ; Thu, 23 Aug 2007 22:44:10 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (adsl-68-79-98-20.dsl.sfldmi.ameritech.net [68.79.98.20]) BY hackers.mr.itd.umich.edu ID 46CDF199.2A377.11358 ; 23 Aug 2007 16:44:09 -0400 In-Reply-To: <46CDDE27.7010400@gmail.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:36172 Archived-At: 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 ___________________________________________________________________________________