From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/43502 Path: news.gmane.org!not-for-mail From: "Ulrich Dirr" Newsgroups: gmane.comp.tex.context Subject: Re: Some layout questions Date: Thu, 28 Aug 2008 12:25:08 +0200 Organization: =?us-ascii?Q?Munchener_Schachakademie?= Message-ID: <001701c908f8$58c50bb0$0a4f2310$@de> References: <000001c9076a$c8d48af0$5a7da0d0$@de> <48B55F99.5070201@elvenkind.com> <005f01c908d9$712b7a50$53826ef0$@de> <48B66A55.9010100@elvenkind.com> Reply-To: ud@mucschach.de, mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1219919302 13011 80.91.229.12 (28 Aug 2008 10:28:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Aug 2008 10:28:22 +0000 (UTC) To: "ConTeXt Mailing List" Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 28 12:29:15 2008 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 1KYekb-0003li-Lz for gctc-ntg-context-518@m.gmane.org; Thu, 28 Aug 2008 12:29:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A965D1FD38; Thu, 28 Aug 2008 12:28:11 +0200 (CEST) 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 09691-01-9; Thu, 28 Aug 2008 12:27:25 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0C43D1FBD4; Thu, 28 Aug 2008 12:27:23 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C505E1FCA0 for ; Thu, 28 Aug 2008 12:27:15 +0200 (CEST) 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 08767-04-13 for ; Thu, 28 Aug 2008 12:26:29 +0200 (CEST) Original-Received: from mo-p00-ob.rzone.de (mo-p00-ob.rzone.de [81.169.146.161]) by ronja.ntg.nl (Postfix) with ESMTP id B622C1FB82 for ; Thu, 28 Aug 2008 12:25:13 +0200 (CEST) X-RZG-CLASS-ID: mo00 X-RZG-AUTH: :OWgkeFWraPyFhZwvtbXq2Jjyn7iY3ZFxeDl9OtoMgMYGLBPAHcp9Mg== Original-Received: from MSAud (dslb-084-057-061-246.pools.arcor-ip.net [84.57.61.246]) by post.webmailer.de (mrclete mo9) (RZmta 16.47) with ESMTP id m03d42k7S9Ll9H for ; Thu, 28 Aug 2008 12:25:11 +0200 (MEST) (envelope-from: ) In-Reply-To: <48B66A55.9010100@elvenkind.com> X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AckI7TXStPY20gg4RUGOw5R7xEL7NQACf9eA Content-Language: de X-AVK-Virus-Check: AVK 19.172;F1206 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:43502 Hi Taco, On 2008-08-28 Taco Hoekwater wrote: > % engine=luatex > \definefontfeature > [default][default] > [protrusion=quality,expansion=quality,mode=node,script=latn] > \definetypeface[kievit][rm][serif][times][default] > \definetypeface[kievit][ss][serif][times][default] > \definetypeface[kievit][tt][mono][modern][default][rscale=1.12] > \definetypeface[kievit][mm][math][iwona] [default][rscale=1.02] > > \setupbodyfont[kievit,ss,10pt] > > \starttext > \showframe > \setupalign[hanging] \input tufte > \stoptext > % This works! > I used [serif][times] instead of [sans][kievit] because I don't have > the font, but that should not matter. Things to note: > > * The relative ordering of commands matters, your \definefontfeature > was too late. I'll try to document that in the manual. > * You only need \usetypescript[xxx] if the \definetypeface > commands are actually inside of a \starttypescript[xxx] block. > * It turns out I could not use [features=hz] because at a lower > level [times] already sets up [features=default], and that setting > wins over the high-level one. > But in your new setup for kievit, you could also do it this way: > \definefontfeature > [hz][default] > [protrusion=quality,expansion=quality,mode=node,script=latn] > \definetypeface[kievit][rm][serif][times][default][features=hz] > just make sure not to attach any [features=...] to the > \definefontsynonym commands. Thank you very much for explaining these mysteries. The whole typescript thingy is a strange black box for me ... Interesting is that you instruct me not to use any features in \definefontsynonym -- I had just copied this from the wiki. Then the wiki should be updated ;-) I would like to see on the wiki a real life working example for luatex/mkiv using OpenType pro fonts for roman and sans serif, e.g. MinionPro and MetaPro. Using several font features and languages (e.g. small caps, caps spacing, greek, etc.) This would demystify font handling a lot. Best regards, Ulrich ___________________________________________________________________________________ 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 ___________________________________________________________________________________