From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4289 Path: main.gmane.org!not-for-mail From: Han The Thanh Newsgroups: gmane.comp.tex.context Subject: Re: how to switch font family Date: Wed, 7 Mar 2001 11:13:24 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <20010307111324.A10810@anxur.fi.muni.cz> References: <20010228172746.A9845@anxur.fi.muni.cz> <3A9E5DDC.650CF044@elvenkind.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035394967 24436 80.91.224.250 (23 Oct 2002 17:42:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:42:47 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Taco Hoekwater In-Reply-To: <3A9E5DDC.650CF044@elvenkind.com>; from taco@elvenkind.com on Thu, Mar 01, 2001 at 03:34:04PM +0100 Xref: main.gmane.org gmane.comp.tex.context:4289 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4289 Hi Taco, > > Hi all, > > > > can someone please tell me how to change the current font family, so that > > other atributes (size, weight and style) remain the same? > > \def\familyswitch#1[#2]{% > \edef\oldalternative{\fontalternative}% > \switchtobodyfont[#2]% > \getvalue{\oldalternative}} > > \familyswitch[pos] thanks for the tip. It works, however everytime I switched to another family, then the font definition file is loaded again (font-pos.tex). Is there anyway to prevent it? My need is to typeset a few characters in the body text in different font than the main font, so the switching is used quite frequently. Regards Thanh