From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17204 Path: main.gmane.org!not-for-mail From: "Dirar BOUGATEF" Newsgroups: gmane.comp.tex.context Subject: Re: Fonts switching and styles .. Date: Mon, 22 Nov 2004 12:34:56 +0000 Message-ID: References: <41A1228D.1080007@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: sea.gmane.org 1101127084 1076 80.91.229.6 (22 Nov 2004 12:38:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Nov 2004 12:38:04 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 22 13:37:53 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CWDS5-0000ez-00 for ; Mon, 22 Nov 2004 13:37:53 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DD37B127A0; Mon, 22 Nov 2004 13:37:52 +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 18918-01; Mon, 22 Nov 2004 13:37:52 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 393F912792; Mon, 22 Nov 2004 13:35:07 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A816212792 for ; Mon, 22 Nov 2004 13:35:06 +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 18597-07 for ; Mon, 22 Nov 2004 13:35:06 +0100 (CET) Original-Received: from hotmail.com (unknown [64.4.22.54]) by ronja.ntg.nl (Postfix) with ESMTP id CB400126F8 for ; Mon, 22 Nov 2004 13:35:05 +0100 (CET) Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 22 Nov 2004 04:35:03 -0800 Original-Received: from 82.226.175.122 by by23fd.bay23.hotmail.msn.com with HTTP; Mon, 22 Nov 2004 12:34:56 GMT X-Originating-IP: [82.226.175.122] X-Originating-Email: [chabah5@hotmail.com] X-Sender: chabah5@hotmail.com In-Reply-To: <41A1228D.1080007@wxs.nl> Original-To: ntg-context@ntg.nl X-OriginalArrivalTime: 22 Nov 2004 12:35:03.0973 (UTC) FILETIME=[B0E22D50:01C4D08F] 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 Xref: main.gmane.org gmane.comp.tex.context:17204 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17204 I have tried style={\switchtobodyfont[karat]} and it works. Now how to switch to a different size without going through: \setupbodyfont[karat] \definefont[MyPartFont][SansBold at 24pt] \setuphead[part][style=\MyPartFont] The problem i see here is that i have to go through \setupbodyfont[karat] and that i can't say something like: \definefont[MyPartFont][karat at 24pt] Lets say i have 5 fonts in my document i only want to say \setupbodyfont[MyMainFont] once, then i should have other mecanisms for switching properly to other fonts at different sizes. Why does \definefont maps only from Sans, Serif, SansBold etc. ? This is quit fastidious, cause for this to work we have to use \setupbodyfont first and follow the steps above. I may be missing something out there .. Many thanks. Dirar.