From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/57036 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: simplefonts Date: Fri, 12 Mar 2010 20:32:23 +0100 Message-ID: <4B9A96C7.90008@wxs.nl> References: <54d7f5601003121111g59f37924q6e03dffb49e6ea32@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 1268422403 30777 80.91.229.12 (12 Mar 2010 19:33:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 12 Mar 2010 19:33:23 +0000 (UTC) Cc: Michael Saunders To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 12 20:33:11 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 1NqAbe-0005YF-Kg for gctc-ntg-context-518@m.gmane.org; Fri, 12 Mar 2010 20:33:10 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1EB73C9D84; Fri, 12 Mar 2010 20:33:10 +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 kPEOZRJopaoN; Fri, 12 Mar 2010 20:33:06 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 70C25C9C85; Fri, 12 Mar 2010 20:33:06 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D58EDC9C85 for ; Fri, 12 Mar 2010 20:33:05 +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 8fB6dy1Kb+0g for ; Fri, 12 Mar 2010 20:33:02 +0100 (CET) Original-Received: from mail.solcon.net (unknown [217.121.8.199]) by balder.ntg.nl (Postfix) with ESMTP id B24B7C9C71 for ; Fri, 12 Mar 2010 20:33:02 +0100 (CET) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.196; Original-Received: from [10.100.1.196] (unverified [10.100.1.196]) by controller-9 (SurgeMail 4.2d2) with ESMTP id 2179-1713362 for multiple; Fri, 12 Mar 2010 20:32:12 +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: <54d7f5601003121111g59f37924q6e03dffb49e6ea32@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:57036 Archived-At: On 12-3-2010 20:11, Michael Saunders wrote: > The command \definefontfeature intrigues me greatly. I wonder if it > could solve all my problems. I'd love to understand it so that I > don't end up coming in here and asking you to write all my font setups > line by line. I Googled it and found only a few scattered examples > here and there, mostly from this list. I wish I could find an > explanation of it written down somewhere. For example, I would very > much like to know: > 1. What the first two arguments do. the mode=base|node determines if we use traditional tex mechanisms (base) or let mkiv do all work itself (node) > 2. What keys and values are available for the third, and what they mean. the mode=base|node determines if we use traditional tex mechanisms (base) or let mkiv do all work itself (node) there are also extra features and these are described on the wiki, in articles and mk.pdf and hybrid.pdf and once they are stable they will be properly documented > 3. Once I have composed a \definefontfeature command, how do I use it > in the text. not in the text, only when defining fonts; although you can enable and disable features in the running text (dynamicly) .. from the source: % \startbuffer % \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 % \stopbuffer % % \typebuffer \getbuffer > 4. For example, I gathered that I needed a [default] [default] > [...onum=yes...] to get oldstyle numerals by default, but what if I > want to use some lining numerals here and there? > \definefontfeature [lining] [lining] [...onum=no...] > {\lining 123} > doesn't do it. lnum=yes > 5. How I could use the superior and inferior shapes in my font---like > for the footnotemarks, for example? hm, with sups=yes,subs=yes i guess but better use \high{..} and \low{..} as often such font features are rather limited and depend on the font > 6. Could I use \definefontfeature to set up the different design sizes > of my font (I'm trying to use some standard Adobe fonts like Garamond > Premiere Pro, which have design sizes), as well as its other features? i never looked into that as i don't have those fonts > 7. Maybe \definefontfeature is how I should turn on hz? sure, once it's implemented (probably no big deal but as said, i don't have those fonts) > I'm sure these things must be possible, but I'm stumped about how to > find them out. 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 ___________________________________________________________________________________