From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/57232 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: ntg-context Digest, Vol 69, Issue 95 Date: Thu, 18 Mar 2010 14:29:23 +0100 Message-ID: <4BA22AB3.6070002@wxs.nl> References: <54d7f5601003180400o2ea155a7j6aa3d7ada27d61fa@mail.gmail.com> 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: dough.gmane.org 1268919044 11223 80.91.229.12 (18 Mar 2010 13:30:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 18 Mar 2010 13:30:44 +0000 (UTC) Cc: Michael Saunders To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 18 14:30:34 2010 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.69) (envelope-from ) id 1NsFo2-0003lq-4q for gctc-ntg-context-518@m.gmane.org; Thu, 18 Mar 2010 14:30:34 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C893EC9D85; Thu, 18 Mar 2010 14:30:30 +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 7fT6CZD4NtCH; Thu, 18 Mar 2010 14:30:02 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 26493C9DEB; Thu, 18 Mar 2010 14:30:02 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7255EC9DEB for ; Thu, 18 Mar 2010 14:29:49 +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 TRGheSRUykt4 for ; Thu, 18 Mar 2010 14:29:34 +0100 (CET) Original-Received: from mail.solcon.nl (unknown [217.121.8.199]) by balder.ntg.nl (Postfix) with ESMTP id 1F8CBC9D85 for ; Thu, 18 Mar 2010 14:29:32 +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.2d2) with ESMTP id 4056-1713362 for multiple; Thu, 18 Mar 2010 14:28:57 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100227 Lightning/1.0b1 Thunderbird/3.0.3 In-Reply-To: <54d7f5601003180400o2ea155a7j6aa3d7ada27d61fa@mail.gmail.com> 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:57232 Archived-At: On 18-3-2010 12:00, Michael Saunders wrote: > Wolfgang Schuster: > >> \setupbodyfont[pagella] >> >> \definefontfeature[smcp][smcp=yes] >> \definefontfeature[frac][frac=yes] >> >> \setuphead[chapter][textstyle=\addfs{frac}\addfs{smcp}] > .... > > This is just an example, but what I think you mean to say by it is > that the new command \addfs{} has the behavior I describe, but only > for otf features and not for things like switching to semibold or to > condensed (and, presumably, even if I'm able to define my own commands > for things like semibold, something like: > \sb ABC \it DEF > would set the DEF at regular weight). > > Since I've never seen anyone talk about \addfs{}, but only give > examples, I'm guessing (but just guessing) that there exists somewhere > a list of what otf features are active at any given point, and that > this command can add to that list. That's great. I might not need it > anytime soon, but I'm just curious---are there other commands of this > kind? Maybe something to clear the list? this mechanism is one of the spin off's of the oriental tex project (where we play font fonts that have 50+ stylistic variants and 20+ justification variants) \addfontfeaturetoset {..} % merge \subtractfontfeaturefromset {..} % merge \addfontfeaturetofont {..} % overload \subtractfontfeaturefromfont{..} % overload \let\addfs\addfontfeaturetoset \let\subfs\subtractfontfeaturefromset \let\addff\addfontfeaturetofont \let\subff\subtractfontfeaturefromfont there's also \setfontfeature and \setff in principle you can also use this to let fonts adapt to a language / script and in due time i'll add it as automatism there (internally in mkiv this is what we call dynamic features) Hans ----------------------------------------------------------------- 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 ___________________________________________________________________________________