From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9814 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: \switchtobodyfont[cmr] in Gamma Date: Tue, 12 Nov 2002 09:31:55 +0100 Sender: ntg-context-admin@ref.ntg.nl Message-ID: <5.1.0.14.1.20021112092521.00ad1ab0@server-1> References: <200211111448.05918.ishamid@attbi.com> Reply-To: ntg-context@ref.ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1037090745 9033 80.91.224.249 (12 Nov 2002 08:45:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 12 Nov 2002 08:45:45 +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 18BWg3-0002LX-00 for ; Tue, 12 Nov 2002 09:45:43 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 9E83310AF8; Tue, 12 Nov 2002 09:47:19 +0100 (MET) Original-Received: from mail.solcon.nl (mail.solcon.nl [212.45.33.11]) by ref.ntg.nl (Postfix) with ESMTP id 2EB8910AE9 for ; Tue, 12 Nov 2002 09:45:59 +0100 (MET) Original-Received: from server-1.pragma-ade.nl (wc-58016.solcon.nl [212.45.58.16]) by mail.solcon.nl (8.12.5/pre1.0-MySQL/8.12.5) with ESMTP id gAC9goqb002530 for ; Tue, 12 Nov 2002 10:42:51 +0100 Original-Received: from LAPTOP-3.wxs.nl (laptop-3 [10.100.1.191]) by server-1.pragma-ade.nl (8.12.2/8.12.2) with ESMTP id gAC8jugk014704 for ; Tue, 12 Nov 2002 09:45:57 +0100 X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Original-To: ntg-context@ntg.nl In-Reply-To: <200211111448.05918.ishamid@attbi.com> X-RAVMilter-Version: 8.4.1(snapshot 20020919) (mail.solcon.nl) 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:9814 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9814 At 02:48 PM 11/11/2002 -0800, Idris S Hamid wrote: >In Gamma (and perhaps in regular ConTeXt as well but I have no other fonts to >test there) \setupbodyfont[cmr] does not seem to work/behaves strangely: > >-------------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] \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. 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 that there are some limitations to the amount of fonts and memory, so there are some trade off's) >--------------------------- > >Results: > >First line in cmr14, second line in omlgc14.4 (OK so far) > >Third line in omlgc14 (This is wrong!) this is probably because you now have Serif redefined to an oml font, and since you don't use grouping, there is no way that tex can go back to the already lost definitions (that is: in typefaces we use a namespace, so there it's no problem). you may try (1) grouping or (2) \switchtobodyfont[reset] in between, but mixing fonts this way (not using typefaces) can be painfully slow Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------