From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/19133 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: How to switch between fonts? Date: Thu, 17 Mar 2005 21:58:29 +0100 Message-ID: <4239EF75.9050004@wxs.nl> References: <4237EF69.8090306@gmx.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1111133916 26753 80.91.229.2 (18 Mar 2005 08:18:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 18 Mar 2005 08:18:36 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 18 09:18:36 2005 Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DCCg6-0004xU-Pv for gctc-ntg-context-518@m.gmane.org; Fri, 18 Mar 2005 09:17:54 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D913C12807; Fri, 18 Mar 2005 09:19:31 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19397-01; Fri, 18 Mar 2005 09:19:27 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 82B821280D; Fri, 18 Mar 2005 09:19:27 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B64401280D for ; Fri, 18 Mar 2005 09:19:26 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18615-05 for ; Fri, 18 Mar 2005 09:19:26 +0100 (CET) Original-Received: from mailrelay02.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 33DC712807 for ; Fri, 18 Mar 2005 09:19:26 +0100 (CET) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j2I8JOSQ015638 for ; Fri, 18 Mar 2005 09:19:24 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id DC60A18225; Fri, 18 Mar 2005 09:03:08 +0100 (CET) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 638ED17B8B for ; Fri, 18 Mar 2005 08:03:07 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <4237EF69.8090306@gmx.de> X-Virus-Scanned: ClamAV 0.80/705/Fri Feb 11 17:51:32 2005 clamav-milter version 0.80j on mailrelay02 X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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: by amavisd-new at ntg.nl X-MailScanner-From: ntg-context-bounces@ntg.nl X-MailScanner-To: gctc-ntg-context-518@m.gmane.org Xref: news.gmane.org gmane.comp.tex.context:19133 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:19133 Stefan Wachter wrote: > 1. A particual problem in this situation > > Is it possible to define font synonymes locally (i.e. inside a group)? > In that case I could map the virtual fonts that are base on 8a encoded > raw fonts into virtual fonts that are based on texnansi reencoded raw > fonts. > > I tried that but it seems that font synonymes are accepted only at the > beginning. not true; what you observe is that font defs are frozen; an option is to define multiple typeface collections, since these store information; so, \definetypeface[timesa][rm][serif][times][default[encoding=texnansi] \definetypeface[timesb][rm][serif][times][default[encoding=ec] now you can use both intermixed > The switch must respect the current font characteristics (i.e. \ss, \rm, > \tt, \bf, \it, \bi, and size). \timesa \bf test \pushcurrentfont \timesb \popcurrentfont test alternatively you can define symbols for those special chars, see symb-*.tex; \getglyph is also an option; this one follows the style Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------