From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48489 Path: news.gmane.org!not-for-mail From: Alan Stone Newsgroups: gmane.comp.tex.context Subject: font switching questions Date: Tue, 17 Mar 2009 22:48:51 +0100 Message-ID: <326847810903171448l5208311do3b5d440486dd8122@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1568203701==" X-Trace: ger.gmane.org 1237326648 24043 80.91.229.12 (17 Mar 2009 21:50:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Mar 2009 21:50:48 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 17 22:52:05 2009 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 lo.gmane.org with esmtp (Exim 4.50) id 1LjhCK-0006mc-FB for gctc-ntg-context-518@m.gmane.org; Tue, 17 Mar 2009 22:51:44 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2BA451FD1D; Tue, 17 Mar 2009 22:50:20 +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 15909-01-2; Tue, 17 Mar 2009 22:49:31 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C00F11FD59; Tue, 17 Mar 2009 22:49:31 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 150111FD2D for ; Tue, 17 Mar 2009 22:49:30 +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 02650-03 for ; Tue, 17 Mar 2009 22:48:58 +0100 (CET) Original-Received: from filter4-nij.mf.surf.net (filter4-nij.mf.surf.net [195.169.124.155]) by ronja.ntg.nl (Postfix) with ESMTP id 7FF2A1FCE8 for ; Tue, 17 Mar 2009 22:48:52 +0100 (CET) Original-Received: from mail-ew0-f173.google.com (mail-ew0-f173.google.com [209.85.219.173]) by filter4-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n2HLmpt9012341 for ; Tue, 17 Mar 2009 22:48:51 +0100 Original-Received: by ewy21 with SMTP id 21so1993545ewy.2 for ; Tue, 17 Mar 2009 14:48:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=GjWpQgcQkdTQOMSIft+qBhHGtndDjZrjm83Cqm49i0g=; b=vOQjCRr6uJu17sAJJlkzldRa2n59Kp4rvxrgU1a1Bd6OHMw6/rb0Vi1mu/NuwjHSjo j/PQAhrNgBh8IcBwlq9oXmGdVCommoqBJeLLcNTJyk6OfzVlLJvG0weg7NFUWp92DPdH LktnR/rHU2cfY76NoQ284LcN6IcdPfCAySf7M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=qEkhXv2ht5fKHNwXqBsNHX++SWUIBBXEYGDGXtpxKKDxsV468dsXxJKSSsSXcquts5 P9JAgCHpqg2E2jbMf7t3dr4OqJDk9djaX2tSV5wV4wBdDG6kWfkxw2WObZGBbjzGuypK Romu4lk63sAvp3QGqmnFsQ9yODT9dfsQhux+s= Original-Received: by 10.216.10.208 with SMTP id 58mr286397wev.82.1237326531207; Tue, 17 Mar 2009 14:48:51 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.219.173; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 195153556 - d4c8860ef17c X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.155 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:48489 Archived-At: --===============1568203701== Content-Type: multipart/alternative; boundary=0016364d26335d2157046557887b --0016364d26335d2157046557887b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Ahoi, Following a previous discussion, I've been advised to "try to avoid \switchtobodyfont and use \definedfont or \definefont instead". (1) What's the difference between \definefont and \definedfont ? (2) In the underneath example... (2a) how to implement \define(d)font for font switching ? (2b) how to define \myFontHook ? Thanks, Alan \usemodule[t-lettrine] \usetypescriptfile[tps_arial] \usetypescript[arial] \definetypeface[myFont][arial] \usetypescriptfile[tps_timesnewroman] \usetypescript[timesnewroman] \definetypeface[myOtherFont][timesnewroman] \def\myFontSize{12pt} \def\myOtherFontSize{20pt} \setupbodyfont[myFont,\myFontSize] \setuphead[chapter][style={\switchtobodyfont[myOtherFont,\myOtherFontSize]}] \starttext \chapter{Chapter One} %\lettrine[FontHook={\myFontHook}]{T}{hus}, I came to the conclusion that the designer of a new \lettrine{T}{hus}, I came to the conclusion that the designer of a new system must not only be the implementer and first large-- scale user; the designer should also write the first user manual. \stoptext --0016364d26335d2157046557887b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Ahoi,
=A0
Following a previous discussion, I've been advised to "try to= avoid \switchtobodyfont and use \definedfont or \definefont instead".=
=A0
(1) What's the difference between \definefont and \definedfont ?
=A0
(2) In the underneath example...
=A0
(2a) how to implement \define(d)font for font switching ?
=A0
(2b) how to define \myFontHook ?
=A0
Thanks,
Alan
=A0
\usemodule[t-lettrine]
=A0
\usetypescriptfile[tps_arial]
\usetypescript[arial]
\definetypef= ace[myFont][arial]
=A0
\usetypescriptfile[tps_timesnewroman]
\usetypescript[timesnewroman]=
\definetypeface[myOtherFont][timesnewroman]
=A0
\def\myFontSize{12pt}
\def\myOtherFontSize{20pt}
=A0
\setupbodyfont[myFont,\myFontSize]
=A0
\setuphead[chapter][style=3D{\switchtobodyfont[myOtherFont,\myOtherFon= tSize]}]
=A0
\starttext
=A0
\chapter{Chapter One}
=A0
%\lettrine[FontHook=3D{\myFontHook}]{T}{hus}, I came to the conclusion= that the designer of a new
\lettrine{T}{hus}, I came to the conclusion = that the designer of a new
system must not only be the implementer and f= irst large-- scale user; the designer should also write
the first user manual.
=A0
\stoptext
--0016364d26335d2157046557887b-- --===============1568203701== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1568203701==--