From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4290 Path: main.gmane.org!not-for-mail From: S2P development Newsgroups: gmane.comp.tex.context Subject: Re: how to switch font family Date: Wed, 07 Mar 2001 13:04:52 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3AA623E4.31332C19@wkap.nl> References: <20010228172746.A9845@anxur.fi.muni.cz> <3A9E5DDC.650CF044@elvenkind.com> <20010307111324.A10810@anxur.fi.muni.cz> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035394968 24445 80.91.224.250 (23 Oct 2002 17:42:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:42:48 +0000 (UTC) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:4290 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4290 Han The Thanh wrote: > > 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. Can't help you straight away. But perhaps you can define this (the alternate fontfamily) as 'hw' or 'cg'? Context has 5 different text families at the same time: \tt \ss \rm \hw \cg The previous macro then becomes something like: \def\familyswitch#1{% {\edef\oldalternative{\fontalternative}% \hw \getvalue{\oldalternative}#1}} With call: \familyswitch{The chars for the other fontfamily}