From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37764 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: showfont with xetex (syntax changed?) Date: Thu, 06 Dec 2007 18:55:22 +0100 Message-ID: <4758378A.3010206@wxs.nl> References: <91844FC2-0148-4347-A206-4B22915EBDE3@st.estfiles.de> <6faad9f00712060332s32be7922yf9b7e7788b4197f4@mail.gmail.com> <6faad9f00712060835l4604d133n6d902e72d1e0ee26@mail.gmail.com> <115224fb0712060945p4e4b73cdxe0994fe0606b6156@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" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196963798 7267 80.91.229.12 (6 Dec 2007 17:56:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Dec 2007 17:56:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 06 18:56:48 2007 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 1J0Kxn-0006gX-VD for gctc-ntg-context-518@m.gmane.org; Thu, 06 Dec 2007 18:56:44 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C30801FD19; Thu, 6 Dec 2007 18:56:13 +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 09515-03; Thu, 6 Dec 2007 18:56:05 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 71A631FCB1; Thu, 6 Dec 2007 18:56:05 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D88D61FCB1 for ; Thu, 6 Dec 2007 18:56:03 +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 08717-04-8 for ; Thu, 6 Dec 2007 18:56:00 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with ESMTP id 5B3331FB2D for ; Thu, 6 Dec 2007 18:55:58 +0100 (CET) Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-1 (SurgeMail 3.7b8) with ESMTP id 1541 for ; Thu, 06 Dec 2007 18:55:57 +0100 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) In-Reply-To: <115224fb0712060945p4e4b73cdxe0994fe0606b6156@mail.gmail.com> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 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:37764 Archived-At: Wolfgang Schuster wrote: > 2007/12/6, Mojca Miklavec : >> On Dec 6, 2007 5:09 PM, Steffen Wolfrum wrote: >>> Am 06.12.2007 um 12:32 schrieb Mojca Miklavec: >>> >>>> The general approach would be something like: >>>> \definefontfeature[mine][smcp=yes] >>>> \definefontsynonym[a][name:Warnock Pro][features=mine] >>>> \showfont[a] >>>> (grep the sources for definefontfeature) >>> >>> hmm ... the only hit is in /base/font-ini.mkii (and font-ini.tex) >>> >>> \def\mkdefinefontfeature#1% #2 >>> {\setvalue{\??fa#1}} % {#2} >> \definefontfeature >> [default] >> [liga=yes,kern=yes,tlig=yes,trep=yes] % texligatures=yes,texquotes=yes >> >> \definefontfeature >> [smallcaps] >> [liga=yes,kern=yes,tlig=yes,trep=yes,smcp=yes] % >> texligatures=yes,texquotes=yes > > I would prefer something like > > \definefontfeature > [smallcaps] > [default] % inherit settings from default > [smcp=yes] % add smcp to the feature list something like that ... keep in mind that you don't need to define a font then, {\setfontfeature{smallcaps}Some Text} will automatically give you that featureset so in practice we can do with only a few real font definitions; mkiv keeps track of such dunamic features and efficiently caches data; we sped up luatex + mkiv some 30% and when using dynamic features with huge fonts (zapfino, arab, chinese) we can even gain more (our sample mk.tex went from 29 seconds down to some 20 seconds and dynamic arab gives another 2 a 3 seconds; a fast console another 2+ seconds but that's another story; just in case you wondered why it took a while for this beta to surface) 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________