From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9830 Path: main.gmane.org!not-for-mail From: Idris S Hamid Newsgroups: gmane.comp.tex.context Subject: Re: \switchtobodyfont[cmr] in Gamma Date: Wed, 13 Nov 2002 12:07:23 -0800 Organization: Imamology Sender: ntg-context-admin@ref.ntg.nl Message-ID: <200211131207.23863.ishamid@attbi.com> References: <5.1.0.14.1.20021112092521.00ad1ab0@server-1> Reply-To: ntg-context@ref.ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1037214411 26745 80.91.224.249 (13 Nov 2002 19:06:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 13 Nov 2002 19:06:51 +0000 (UTC) Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18C2qf-0006xE-00 for ; Wed, 13 Nov 2002 20:06:49 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 5402410AE8; Wed, 13 Nov 2002 20:08:31 +0100 (MET) Original-Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by ref.ntg.nl (Postfix) with ESMTP id B7E7710AE6 for ; Wed, 13 Nov 2002 20:07:16 +0100 (MET) Original-Received: from linux ([12.252.37.110]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20021113190713.TRIW24365.rwcrmhc51.attbi.com@linux>; Wed, 13 Nov 2002 19:07:13 +0000 Original-To: ntg-context@ref.ntg.nl, Hans Hagen , ntg-context@ntg.nl User-Agent: KMail/1.4.2 In-Reply-To: <5.1.0.14.1.20021112092521.00ad1ab0@server-1> Errors-To: ntg-context-admin@ref.ntg.nl X-BeenThere: ntg-context@ref.ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:9830 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9830 On Tuesday 12 November 2002 00:31, Hans Hagen wrote: > >-------------cm-test.tex-------------- > >\input m-gamma.tex > >\input type-omg.tex > > > >\setupbodyfont[cmr,14pt] > >%\setupbodyfont[omlgc, 14.4pt] > > > >This is a test > > > >\switchtobodyfont[omlgc, 14.4pt] > >%\switchtobodyfont[cmr,14pt] > > > >This is a test > > > >\switchtobodyfont[cmr, 14pt] > >%\switchtobodyfont[omlgc, 14.4pt] > > > >This is a test > > > >\stoptext > in my type-omg i see no omlgc defined, so \setupbodyfont[cmr,14pt] Eh? The following is at the end of the official tpe-omg.tex: ------------------------------ \starttypescript [OmegaLGC] \definebodyfontenvironment [omlgc] [default] [interlinespace=3D2.8ex] \definetypeface [omlgc] [rm] [serif] [omega] [omega] \definetypeface [omlgc] [tt] [mono] [omega] [omega] \stoptypescript ----------------------------------- and \switchtobodyfont[omlgc] is used throughout m-gamma.tex.=20 And it works:-) > \setupbodyfont[cmr, 14pt] This is a test \fontname\font \par > \switchtobodyfont[omlgc, 14.4pt] This is a test \fontname\font \par > \switchtobodyfont[cmr, 14pt] This is a test \fontname\font \par > > gives me expected behavior. Are you sure? I get=20 This is a test omlgc at 14.0pt in omlgc of course.=20 Are you sure there's not a bug somewhere else? I have my own private font= s \definetypeface [mtnaskh] [rm] [naskh] [mtnaskhi] [mtnaskhi] [rscale=3D1.= 6] and when I do a switch to omlgc it works fine. I always enclose omlgc in= its=20 own group as well. But when I switch to cmr in its own group it does not = work=20 at all. I bet that if I replaced all the fonts in type-omg.tex with cmr it would = work=20 with no problem. There must be something else afoot. > > When mixing fonts, esp with similar names, and esp in an ungrouped way, > it's best to use the typeface mechanism, since it provides a namespace, > while the less clever mechanism overloads definitions (keep in mind tha= t > there are some limitations to the amount of fonts and memory, so there = are > some trade off's) I will study the xchange between u and Giuseppe and see if I can make sen= se of=20 this. Stay tuned. Best wishes Idris --=20 Dr. Idris S Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523