From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38406 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: bug in \setfontfeature Date: Wed, 2 Jan 2008 11:01:36 +0100 Message-ID: <115224fb0801020201j6c9a2969te758c0188d7cd4e2@mail.gmail.com> References: <20080102094341.d155ac3a.schuster.wolfgang@googlemail.com> <477B553A.6030502@wxs.nl> Reply-To: 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 1199268177 6171 80.91.229.12 (2 Jan 2008 10:02:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Jan 2008 10:02:57 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 02 11:03:16 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 1JA0RP-00077W-AB for gctc-ntg-context-518@m.gmane.org; Wed, 02 Jan 2008 11:03:15 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D9E2E1FC93; Wed, 2 Jan 2008 11:02:48 +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 12878-10-3; Wed, 2 Jan 2008 11:02:10 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 07ED31FC98; Wed, 2 Jan 2008 11:02:10 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C87691FC98 for ; Wed, 2 Jan 2008 11:02:08 +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 12878-10-2 for ; Wed, 2 Jan 2008 11:01:36 +0100 (CET) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by ronja.ntg.nl (Postfix) with ESMTP id CB1051FC93 for ; Wed, 2 Jan 2008 11:01:36 +0100 (CET) Original-Received: by ug-out-1314.google.com with SMTP id q2so2410271uge.50 for ; Wed, 02 Jan 2008 02:01:36 -0800 (PST) Original-Received: by 10.67.19.13 with SMTP id w13mr13893657ugi.19.1199268096278; Wed, 02 Jan 2008 02:01:36 -0800 (PST) Original-Received: by 10.67.19.16 with HTTP; Wed, 2 Jan 2008 02:01:36 -0800 (PST) In-Reply-To: <477B553A.6030502@wxs.nl> Content-Disposition: inline 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:38406 Archived-At: On Jan 2, 2008 10:11 AM, Hans Hagen wrote: > Wolfgang Schuster wrote: > > On Tue, 01 Jan 2008 20:19:10 -0700 > > "Idris Samawi Hamid" wrote: > > > >> Dear consortium, > >> > >> check this out: > >> > >> ============================================== > >> % engine=luatex > >> > >> \definefontfeature > >> [oldstyle] > >> [mode=node,language=dflt,script=latn,onum=yes,tnum=yes] > >> > >> \setfontfeature{oldstyle} > >> > >> \starttext > >> 1234567890 > >> > >> \startitemize > >> \item test > >> \stopitemize > >> > >> \stoptext > >> ============================================== > > in font=otf.lua, patch ... > > function fonts.otf.set_dynamics(tfmdata,attribute,features) > local shared = tfmdata.shared > if shared then you forgot "local dynamics", the following works function fonts.otf.set_dynamics(tfmdata,attribute,features) local shared = tfmdata.shared local dynamics = shared.dynamics if shared then > end > end > > and remake Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________