From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/19000 Path: news.gmane.org!not-for-mail From: Stefan Wachter Newsgroups: gmane.comp.tex.context Subject: How to switch between fonts? Date: Wed, 16 Mar 2005 09:33:45 +0100 Message-ID: <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=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1110961959 6956 80.91.229.2 (16 Mar 2005 08:32:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 16 Mar 2005 08:32:39 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 16 09:32:38 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 1DBTxD-00073Q-UT for gctc-ntg-context-518@m.gmane.org; Wed, 16 Mar 2005 09:32:36 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6F67D127FC; Wed, 16 Mar 2005 09:33:53 +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 05554-07-3; Wed, 16 Mar 2005 09:33:49 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5198C1279C; Wed, 16 Mar 2005 09:33:49 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D3FD31279C for ; Wed, 16 Mar 2005 09:33:47 +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 05554-07-2 for ; Wed, 16 Mar 2005 09:33:47 +0100 (CET) Original-Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by ronja.ntg.nl (Postfix) with SMTP id 0621912784 for ; Wed, 16 Mar 2005 09:33:47 +0100 (CET) Original-Received: (qmail invoked by alias); 16 Mar 2005 08:33:46 -0000 Original-Received: from p54A25680.dip.t-dialin.net (EHLO [192.168.1.33]) (84.162.86.128) by mail.gmx.net (mp026) with SMTP; 16 Mar 2005 09:33:46 +0100 X-Authenticated: #10144042 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913 X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users X-Y-GMX-Trusted: 0 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:19000 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:19000 Dear font experts! For some weeks I try very hard to generate minimal PDF documents using the PDF base 14 fonts. Now the following problem popped up: The Helvitica, Times, and Courier fonts have "8a" as their default encoding. Unfortunately, the 8a encoding is somewhat incomplete because it misses some characters (eg. the degree character). In TeX I use texnansi encoding because it offers most of the special characters that I need. If I use 8a encoding for the PDF document (in order to avoid reencoding) then the degree symbol is typeset by an embedded "txsy" font. The bad thing about this solution is that this degree character does not take care of \bf, \it, or \bi. Therefore the result is unsatisfactory. If I use texnansi encoding for the PDF document then the degree symbol is typeset nicely. The disadvantage of this option is that now the built-in fonts are always reencoding which make some additional 2kb for the PDF document. I would like to have the reeconded font to be used only if it is really necessary. Now I see two problems: 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. 2. A general problem Provided that I write a set of typescripts for defining a typeface similar to the postscript typefaces of ConTeXt but based on other (virtual) fonts: is it possible to switch between these two typefaces. The switch must respect the current font characteristics (i.e. \ss, \rm, \tt, \bf, \it, \bi, and size). Thanks for your attention, --Stefan