From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39457 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.comp.tex.context Subject: Re: Font question Date: Tue, 11 Mar 2008 15:07:52 +0100 Message-ID: <20080311140752.GB19259@atos.labs.wmid.amu.edu.pl> 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> <47CE652D.3080404@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1205244604 2561 80.91.229.12 (11 Mar 2008 14:10:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Mar 2008 14:10:04 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 11 15:10:31 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 1JZ5Af-0004Jp-Pz for gctc-ntg-context-518@m.gmane.org; Tue, 11 Mar 2008 15:09:37 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 77D7C1FC83; Tue, 11 Mar 2008 15:09:03 +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 06931-01-3; Tue, 11 Mar 2008 15:08:26 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0AC071FCF6; Tue, 11 Mar 2008 15:08:26 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9C7301FCF6 for ; Tue, 11 Mar 2008 15:08:24 +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 06931-01-2 for ; Tue, 11 Mar 2008 15:07:53 +0100 (CET) Original-Received: from atos.wmid.amu.edu.pl (atos.wmid.amu.edu.pl [150.254.78.2]) by ronja.ntg.nl (Postfix) with ESMTP id C0F071FCA2 for ; Tue, 11 Mar 2008 15:07:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by atos.wmid.amu.edu.pl (Postfix) with ESMTP id 49D3A1020E13 for ; Tue, 11 Mar 2008 15:07:53 +0100 (CET) X-Virus-Scanned: by amavisd-new (PLD-Linux) at wmid.amu.edu.pl Original-Received: from atos.wmid.amu.edu.pl ([127.0.0.1]) by localhost (atos.wmid.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id IfNOQuAU8zcZ for ; Tue, 11 Mar 2008 15:07:53 +0100 (CET) Original-Received: by atos.wmid.amu.edu.pl (Postfix, from userid 3884) id 0EC8D1020DFA; Tue, 11 Mar 2008 15:07:52 +0100 (CET) Content-Disposition: inline In-Reply-To: <47CE652D.3080404@elvenkind.com> User-Agent: Mutt/1.4.2.3i 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:39457 Archived-At: Dnia Wed, Mar 05, 2008 at 10:17:33AM +0100, Taco Hoekwater napisał(a): Thanks for the answers; still, some things are not clear for me. > > 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). Still don't get it. I tried the following example, just to see what happens (sorry, I know it looks terrible): \definefont [TitleFont] [Serif sa b] \definefont [TitleFontTwo] [Serif mo b] \starttext Hello World!\par {\TitleFont Hello world!\par} {\TitleFontTwo Hello world!\par} And with viii: {\viii Hello World!\par {\TitleFont Hello world!\par} {\TitleFontTwo Hello world!\par}} And with switchtobodyfont: {\switchtobodyfont[8pt] Hello World!\par {\TitleFont Hello world!\par} {\TitleFontTwo Hello world!\par}} \stoptext No difference between sa and mo using this example... (Right after looking at the results, I \show-ed \viii and noticed that \viii and \switchtobodyfont[8pt] do essentially the same. What's the use of having them both?) > > 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. So to be sure: I can use names defined by \definefontsynonym in place of font filenames? > = > \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. So it just _defines_ (what a surprise!) some command to be a font-switching macro? > = > \definebodyfont is used to build up font collections Still, I have no idea about the relation between these three... Here's what I seem to understand now: \definebodyfont is a mystery to me; \definefontsynonym defines #1 to mean the same as #2, where #2 may be another "synonym" or a filename (and then you have - or may? - provide encoding informaction in #3). It doesn't support sa or mo, and that's ok, because its use is just fiddling with _names_; \definefont is similar to \definefontsynonym except that it allows scaling and does not allow filenames (only "synonyms"). How much of that is right? > > 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). I'll try that too soon... > = > Best wishes, > Taco Thanks in advance -- = Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl) Nie wiesz nawet, jak cenny jeste=B6 w Moich oczach! Jezus ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________