From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50258 Path: news.gmane.org!not-for-mail From: Yue Wang Newsgroups: gmane.comp.tex.context Subject: Re: Font switching question Date: Tue, 12 May 2009 00:26:42 +0800 Message-ID: <68bfdc900905110926ka2fe366h56987caabde9b5c4@mail.gmail.com> References: <68bfdc900905110508l6aba12f1of1aa8edb420a1e84@mail.gmail.com> <68bfdc900905110738i4aeca7bfw3f2b52ccb34a1a7@mail.gmail.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-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1242059354 32274 80.91.229.12 (11 May 2009 16:29:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 May 2009 16:29:14 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon May 11 18:29:04 2009 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 1M3YNE-0006J6-0O for gctc-ntg-context-518@m.gmane.org; Mon, 11 May 2009 18:29:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5CE261FEE8; Mon, 11 May 2009 18:29:02 +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 29807-02-5; Mon, 11 May 2009 18:27:54 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 79FE21FEEC; Mon, 11 May 2009 18:27:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4208B1FEEC for ; Mon, 11 May 2009 18:27:48 +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 28939-04-2 for ; Mon, 11 May 2009 18:26:44 +0200 (CEST) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by ronja.ntg.nl (Postfix) with ESMTP id 94C901FEE2 for ; Mon, 11 May 2009 18:26:44 +0200 (CEST) Original-Received: from qw-out-1920.google.com (qw-out-1920.google.com [74.125.92.150]) by filter1-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n4BGQgNl019446 for ; Mon, 11 May 2009 18:26:43 +0200 Original-Received: by qw-out-1920.google.com with SMTP id 5so1775819qwc.38 for ; Mon, 11 May 2009 09:26:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=05YtWAUK+vxZjaNjIHC5EodoL5uOWld/0xaA0r5d6h8=; b=Ebs/JwSP/1oVudTcHsFiVVJZOsVvBOeRaMt3u59x89LbiUyaA0ew7G+N1rDvAFMv10 BfhMQy/fT8A4xQNDA9lPStrIsBFPVbimlG4TMbwdZCsl5MN5/Wl6WaDkDNNXzSZDov8z MExmmjK0vkra7XcMjoI3Umq67W7uVqA6AJ6iE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=dTUsp8HBlpvbUAu3FPef11XJuiZTVCnwGdil+QfU4MG4Z3H8CalvKaHGnS6pqs2iNv 2drhJrTu4R06yvW1yeZIJFzJnf/RmQ6xYBMIgrilQOWaeHCJwAapYwhnzzISOaT+8doU rO85w0wOchVC9EHUN6/oH/W9x9OGxgFwfgxRw= Original-Received: by 10.229.100.16 with SMTP id w16mr544399qcn.47.1242059202102; Mon, 11 May 2009 09:26:42 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.92.150; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 223258469 - 26a9a56dad29 - 20090511 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:50258 Archived-At: On Mon, May 11, 2009 at 11:23 PM, Wolfgang Schuster wrote: > > Am 11.05.2009 um 16:38 schrieb Yue Wang: > >> Hi Hans: >> >> let me give a better explanation. >> >> we define a typescript foobar. so we can call =A0\foobar to load the >> foobar typeface. >> then we should define a macro like this: >> \def\switchtofoobar{\savecurrentstyle\foobar\getcurrentstyle} >> and call it like that: >> >> text 1 {\swichtofoobar text2} text 3 >> when \savecurrentstyle is called, it define a macro named >> \getcurrentstyle in order to save the style of text 1 (like \ss\it, >> 10pt) into that. that's all we want. > > From font-ini.mkii (\push/\popcurrentfont): > > % \definetypeface[one][rm][serif][computer-roman][default] > % \definetypeface[two][rm][serif][computer-roman][default][rscale=3D.9] > % > % {\one \bf test \two test} > % {\one \bf test \pushcurrentfont \two \popcurrentfont test} > > there are more helper macros like \savefont and \restorefont Thank you very much, Wolfgang! > > Wolfgang > > _________________________________________________________________________= __________ > 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 =A0: http://www.pragma-ade.nl / http://tex.aanhet.net > archive =A0: https://foundry.supelec.fr/projects/contextrev/ > wiki =A0 =A0 : http://contextgarden.net > _________________________________________________________________________= __________ > ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________