From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39396 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: Font question Date: Wed, 05 Mar 2008 10:17:33 +0100 Message-ID: <47CE652D.3080404@elvenkind.com> References: <20080229194224.GB18957@atos.labs.wmid.amu.edu.pl> <47C87116.4080209@wxs.nl> <20080229223120.GA26535@atos.labs.wmid.amu.edu.pl> <20080304225545.GA20252@atos.labs.wmid.amu.edu.pl> 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: ger.gmane.org 1204708744 2100 80.91.229.12 (5 Mar 2008 09:19:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Mar 2008 09:19:04 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 05 10:19:30 2008 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 1JWpmb-0007G4-JJ for gctc-ntg-context-518@m.gmane.org; Wed, 05 Mar 2008 10:19:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ED5D51FC2F; Wed, 5 Mar 2008 10:18:54 +0100 (CET) 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 11386-05-6; Wed, 5 Mar 2008 10:18:10 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0F6891FBD5; Wed, 5 Mar 2008 10:18:10 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0E9401FBB8 for ; Wed, 5 Mar 2008 10:18:07 +0100 (CET) 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 11386-05-5 for ; Wed, 5 Mar 2008 10:17:34 +0100 (CET) Original-Received: from tullamore.elvenkind.com (elvenknd.xs4all.nl [82.95.203.226]) by ronja.ntg.nl (Postfix) with ESMTP id 408A41FBD5 for ; Wed, 5 Mar 2008 10:17:34 +0100 (CET) Original-Received: from glenlivet.elvenkind.com (glenlivet.elvenkind.com [10.10.0.6]) by tullamore.elvenkind.com (Postfix) with ESMTP id 0F68C3050287 for ; Wed, 5 Mar 2008 10:17:34 +0100 (CET) User-Agent: Thunderbird 2.0.0.0 (X11/20070522) In-Reply-To: <20080304225545.GA20252@atos.labs.wmid.amu.edu.pl> 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:39396 Archived-At: Marcin Borkowski wrote: > OK, so the first part of my questions about mfonts.pdf;) > > Thank you in advance for the answers; I'd like to stress that I'm not in > a hurry, so please take your time! Also, as I said, I have nothing > against being "redirected" to some other part of documentation in case > it is easier than to write a full answer here. > > 1. Do I get it right when I think that \definefontsynonym takes 2 or 3 > arguments, and: > > When given two, they mean: (1) the synonym being defined > and (2) an earlier defined synonym being a "replacement text" for (1); > > When given three, (1) is as above, (2) is the filename of the font (tfm > I guess?) and (3) contains some low-level options like the encoding That sounds right. > (are there any other options available?) I think you can also define: mapping % for xetex (?) handling % for an experimental pdftex font feature features % mostly for mkiv But all the first two are somewhat experimental, and features are only really useful for opentype fonts. All three are relatively new and not documented in mfont.pdf yet. > 2. What does exactly sa mean? Do I get it right when I think that it's > the factor by which the "body font size" - i.e., some constant dimen > parameter defined for the whole document (or environment) - is > multiplied? Does the "laziness" of sa mean that the actual scaling will > happen _after_ the definition of the body font size, which might be e.g. > different for different components of a product within a project using a > common environment? And what is mo? sa stands for "scaled at", mo stands for "mapped on". One of them (I think sa) is a multiple of the value you specify at \setupbodyfont[..] or \switchtobodyfont[..], the other is (I think) in relation to the actual current font size (so it is different whether \tfx or \tfa is in effect). > 3. What are the arguments to \definebodyfont? #1 size (5pt ... 12pt default) #2 family (rm ss tt mm hw cg) #3 font definitions (tf = ..., etc.) > 4. What are the relations between \definefontsynonym, \definefont and > \definebodyfont? things defined with \definefontsynonym can be used in the right hand side of assignments in arg #3 of \definebodyfont, and in the #2 argument of \definefont. \definefont has no real relation to font switching, it is just a low-level shortcut for a specific font, much like a bare \font command in plain TeX, except that it allows synonyms and sa/mo. \definebodyfont is used to build up font collections > 5. I can understand neither the paragraph right before the > \definebodyfont example on page 4 of mfonts.pdf, nor the example itself. That paragraph is a bit confusing to me as well. Browsing through type-siz.tex may help (in tex/context/base). Best wishes, Taco ___________________________________________________________________________________ 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 ___________________________________________________________________________________