From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55096 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Selectively not using a font feature Date: Mon, 07 Dec 2009 09:50:32 +0100 Message-ID: <4B1CC1D8.3060204@wxs.nl> References: <20091206224532.GV13955@katherina.student.utwente.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"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1260175861 6600 80.91.229.12 (7 Dec 2009 08:51:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Dec 2009 08:51:01 +0000 (UTC) To: Mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 07 09:50:54 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NHZIz-0004RJ-Ac for gctc-ntg-context-518@m.gmane.org; Mon, 07 Dec 2009 09:50:53 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 69C2DC9BE2; Mon, 7 Dec 2009 09:50:52 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id XAG1cImUIZap; Mon, 7 Dec 2009 09:50:48 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C875AC9B95; Mon, 7 Dec 2009 09:50:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5D2B0C9B95 for ; Mon, 7 Dec 2009 09:50:47 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id lkwQzOL38D3n for ; Mon, 7 Dec 2009 09:50:36 +0100 (CET) Original-Received: from mail.solcon.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by balder.ntg.nl (Postfix) with ESMTP id F0E93C9B87 for ; Mon, 7 Dec 2009 09:50:35 +0100 (CET) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-9 (SurgeMail 4.2a3) with ESMTP id 10574-1713362 for ; Mon, 07 Dec 2009 09:49:01 +0100 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: <20091206224532.GV13955@katherina.student.utwente.nl> X-Authenticated-User: hagen@controller-9 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:55096 Archived-At: Matthijs Kooijman wrote: > Hi all, > > I'm currently using old-style numerals in my document using the onum otf font > feature: > > \definefontfeature[default][default][onum=yes] > > This gives very nice results, except for the cases where a 0 appears by itself > in the text. In these cases, it appears just like an o instead of a 0. I'd > like to explicitly turn off old style numerals for those cases, but I'm unsure > how. Any suggestions? it assumes that you know what is provided by the font ... you cam play with addff and subff and addfs and subfs (individual features cq. current set) \definefontfeature[smallcaps][smallcaps][script=latn] \definefontfeature[oldstyle] [oldstyle] [script=latn] \definedfont[name:cambria at 15pt] Hello there {\setff{smallcaps}capped 123 \setff{oldstyle}123!} \blank Hello there {\addff{smallcaps}capped 123 \addff{oldstyle}123!} \blank Hello there {\addff{smallcaps}capped \subff{smallcaps}normal} \blank ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________