From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16463 Path: main.gmane.org!not-for-mail From: "Ulrich Dirr" Newsgroups: gmane.comp.tex.context Subject: Setting up a typeface Date: Wed, 15 Sep 2004 10:56:30 +0200 Organization: Art & Satz Sender: ntg-context-bounces@ntg.nl Message-ID: Reply-To: ud@art-satz.de, mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1095238823 9033 80.91.229.6 (15 Sep 2004 09:00:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Sep 2004 09:00:23 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 15 11:00:07 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 1C7Ve3-0003Tq-00 for ; Wed, 15 Sep 2004 11:00:07 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F1110126F8; Wed, 15 Sep 2004 11:00:06 +0200 (CEST) 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 06800-02; Wed, 15 Sep 2004 11:00:06 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CA0641276B; Wed, 15 Sep 2004 10:56:40 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5B8671276B for ; Wed, 15 Sep 2004 10:56:39 +0200 (CEST) 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 06521-06-2 for ; Wed, 15 Sep 2004 10:56:38 +0200 (CEST) Original-Received: from moutng.kundenserver.de (unknown [212.227.126.191]) by ronja.ntg.nl (Postfix) with ESMTP id A0F61126F8 for ; Wed, 15 Sep 2004 10:56:38 +0200 (CEST) Original-Received: from [212.227.126.155] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1C7Vag-0005BV-00 for ntg-context@ntg.nl; Wed, 15 Sep 2004 10:56:38 +0200 Original-Received: from [217.232.139.196] (helo=DOMINUS) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1C7Vaf-0007XR-00 for ntg-context@ntg.nl; Wed, 15 Sep 2004 10:56:38 +0200 Original-To: X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Thread-Index: AcSbAeQ1vBKdfoJRTbChvpx8R1gP0g== X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:0df3a3f0652342c34c6927924e383942 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: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:16463 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16463 Hi, I've now studied the docs for a while and experimenting with a bunch of settings but I'm still failing setting up typefaces correctly in ConTeXt. Probably the font mechanism in ConTeXt is much more elaborate than with LaTeX's NFSS. But I'm too stupid to understand it :-( Could someone please help me? My test case -- and it will be the sans serif part of my wish list -- should setup the Linotype HelveticaNeue as body font. The main part is not very difficult to achieve. The test file: ------------------------------------------------------------------------- \setupoutput [pdftex] \input pdftexconfig \usetypescriptfile [type-NeueHelvetica] \usetypescript[HelveticaNeue][ec] \setupbodyfont[HelveticaNeueLT,ss,10pt] \starttext \showbodyfontenvironment[HelveticaNeueLT] \showbodyfont[HelveticaNeueLT] \stoptext ------------------------------------------------------------------------- type-NeueHelvetica.tex: ------------------------------------------------------------------------- \starttypescript [sans] [HelveticaNeue] [name] \definefontsynonym [Sans] [HelveticaNeueLT-Roman] \definefontsynonym [SansItalic] [HelveticaNeueLT-Italic] \definefontsynonym [SansBold] [HelveticaNeueLT-Bold] \definefontsynonym [SansBoldItalic] [HelveticaNeueLT-BoldItalic] [...] \stoptypescript \starttypescript [sans] [HelveticaNeue] [ec] \definefontsynonym [HelveticaNeueLT-Roman] [lhnr8t] [encoding=ec] \definefontsynonym [HelveticaNeueLT-Italic] [lhnri8t] [encoding=ec] \definefontsynonym [HelveticaNeueLT-Bold] [lhnb8t] [encoding=ec] \definefontsynonym [HelveticaNeueLT-BoldItalic] [lhnbi8t] [encoding=ec] [...] \stoptypescript \starttypescript [HelveticaNeue][ec] \usetypescript [sans] [HelveticaNeue] [name] \usetypescript [sans] [HelveticaNeue] [size] \stoptypescript \starttypescript [HelveticaNeue] [ec] \definetypeface [HelveticaNeueLT] [ss] [sans] [HelveticaNeue] [default] [encoding=ec] \stoptypescript ------------------------------------------------------------------------- The next step should define destinct sizes for use in a project. And here I'm always failing. I've tried, e.g., \definebodyfontenvironment [9bp] [ text=9bp, script=7bp, scriptscript=5bp, x=7bp, xx=5bp, big=11bp, small=7bp, interlinespace=11bp] or, e.g., \starttypescript [sans] [HelveticaNeue] [size] \definebodyfont [10bp] [ss] [tf=Sans at 10bp, bf=SansBold, it=SansItalic, sl=SansItalic, bi=SansBoldItalic, bs=SansBoldItalic] \stoptypescript in all sizes I want, with and without definitions of \definebodyfont, but never got what I want. How can I setup my typeface (regular, bold, etc.) to use the specific sizes 5,6,7,8,9.5,10,12,14,18,24,28 *bp*??? (And with correct dependencies) I'm definitely not understanding how the general scheme works. And all examples I've found always use the standard font sizes and the standard measurement units. Please help me! Best regards, Ulrich Dirr P.S. are there predefined shortcuts for heavy, light, etc. variants?