From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25053 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Monospace Fonts for Verbatim Date: Tue, 10 Jan 2006 14:25:12 +0100 Message-ID: <43C3B5B8.4000504@wxs.nl> References: <1C7A1FE7-90DC-4A1F-A2E6-31F6815A5EA8@louspringer.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1136899525 20785 80.91.229.2 (10 Jan 2006 13:25:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 10 Jan 2006 13:25:25 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 10 14:25:23 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1EwJV4-0002KA-A9 for gctc-ntg-context-518@m.gmane.org; Tue, 10 Jan 2006 14:25:22 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 17006127A6; Tue, 10 Jan 2006 14:25:19 +0100 (CET) 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 12434-03; Tue, 10 Jan 2006 14:25:17 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B896B1278F; Tue, 10 Jan 2006 14:25:16 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 556111278F for ; Tue, 10 Jan 2006 14:25:15 +0100 (CET) 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 12181-07-2 for ; Tue, 10 Jan 2006 14:25:14 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by ronja.ntg.nl (Postfix) with SMTP id 354E01278E for ; Tue, 10 Jan 2006 14:25:13 +0100 (CET) Original-Received: from [10.100.1.102] (unverified [10.100.1.102]) by controller-1 (SurgeMail 3.5b3) with ESMTP id 11136 for ; Tue, 10 Jan 2006 14:34:53 +0300 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <1C7A1FE7-90DC-4A1F-A2E6-31F6815A5EA8@louspringer.com> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: 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: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:25053 Archived-At: Louis Springer wrote: > I have a typescript I am using for a custom font, but the custom font > has no monospace variant appropriate for verbatim text. I'm > attempting to use Courier or some other monospace font for verbatim > and maintain my custom font for normally typeset serf text. > > My broken typescript is as follows: > > \starttypescript [map][sunsans,sunserif][texnansi] > \loadmapfile[texnansi-sun-sunsans.map] > \loadmapfile[texnansi-sun-sunserif.map] > \stoptypescript > > % sans serif > \starttypescript [sans] [sunsans] [name] > \definefontsynonym[Sans] [SunSans-Regular] > \definefontsynonym[SansItalic] [SunSans-Italic] > \definefontsynonym[SansBold] [SunSans-RegularDemi] > \definefontsynonym[SansBoldItalic] [SunSans-Regular-BoldOblique] > \stoptypescript > > > \starttypescript [sans] [sunsans] [texnansi] > \usetypescript[sans][fallback] > \definefontsynonym[SunSans-Heavy][texnansi-SunSans-Heavy] > [encoding=texnansi] > \definefontsynonym[SunSans-Italic][texnansi-SunSans-Italic] > [encoding=texnansi] > \definefontsynonym[SunSans-Regular-Bold][texnansi-SunSans-Regular- > Bold][encoding=texnansi] > \definefontsynonym[SunSans-Regular-BoldOblique][texnansi-SunSans- > Regular-BoldOblique][encoding=texnansi] > \definefontsynonym[SunSans-Regular][texnansi-SunSans-Regular] > [encoding=texnansi] > \definefontsynonym[SunSans-RegularDemi][texnansi-SunSans-RegularDemi] > [encoding=texnansi] > \stoptypescript > > > %serif > \starttypescript [serif] [sunserif] [name] > \definefontsynonym[Serif] [SunSerif-Regular] > \definefontsynonym[SerifItalic] [SunSerif-Italic] > \definefontsynonym[SerifBold] [SunSerif-Regular-Bold] > \definefontsynonym[SerifBoldItalic] [SunSerif-Regular-Bold-Italic] > \stoptypescript > > > \starttypescript [serif] [sunserif] [texnansi] > \usetypescript[serif][fallback] > \definefontsynonym[SunSerif-Italic][texnansi-SunSerif-Italic] > [encoding=texnansi] > \definefontsynonym[SunSerif-Regular-Bold-Italic][texnansi-SunSerif- > Regular-Bold-Italic][encoding=texnansi] > \definefontsynonym[SunSerif-Regular-Bold][texnansi-SunSerif-Regular- > Bold][encoding=texnansi] > \definefontsynonym[SunSerif-Regular][texnansi-SunSerif-Regular] > [encoding=texnansi] > \stoptypescript > > %monospace > \starttypescript [mono] [sunserif] [name] > \usetypescript[mono][fallback] > \definefontsynonym[Serif] [Mono] > \stoptypescript hm, why this way? (It's Mono btw) > > > The last bit (around the comment "monospace") is my apparently futile > attempt to get the verbatim to use the default monospace font. I get > the desired results with a kludge if I replace > > \definefontsynonym[Serif] [SunSerif-Regular] > > with > > \definefontsynonym[Serif] [Mono] > > but this affects "normally" typeset serif. Ideally, I would like to > have in the SunSerif-Regular typeface for non-verbatim serif text. \definetypeface[somesun][rm][serif][sunserif][default] \definetypeface[somesun][ss][sans][sunsans][default] \definetypeface[somesun][tt][mono][modern][default][rscale=.9] \definetypeface[somesun][mm][math][modern][default][rscale=.9] so, you don't need to define some fake sun mono Hans