From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42648 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: OpenType beginners question Date: Mon, 21 Jul 2008 11:09:09 +0200 Message-ID: <6faad9f00807210209r4f0caeacvcf08aba46f9c877b@mail.gmail.com> References: <000801c8eb08$79b91ea0$6d2b5be0$@de> 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 1216631396 18659 80.91.229.12 (21 Jul 2008 09:09:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jul 2008 09:09:56 +0000 (UTC) To: ud@mucschach.de, "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 21 11:10:41 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 1KKrPk-0005ID-2C for gctc-ntg-context-518@m.gmane.org; Mon, 21 Jul 2008 11:10:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 207061FD7B; Mon, 21 Jul 2008 11:09:44 +0200 (CEST) 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 23221-02-6; Mon, 21 Jul 2008 11:09:22 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9066B1FD02; Mon, 21 Jul 2008 11:09:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 459C01FD02 for ; Mon, 21 Jul 2008 11:09:21 +0200 (CEST) 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 23221-02-5 for ; Mon, 21 Jul 2008 11:09:11 +0200 (CEST) Original-Received: from yw-out-1718.google.com (yw-out-1718.google.com [74.125.46.154]) by ronja.ntg.nl (Postfix) with ESMTP id 53F4D1FC72 for ; Mon, 21 Jul 2008 11:09:10 +0200 (CEST) Original-Received: by yw-out-1718.google.com with SMTP id 5so854978ywm.74 for ; Mon, 21 Jul 2008 02:09:09 -0700 (PDT) Original-Received: by 10.151.14.5 with SMTP id r5mr3491780ybi.230.1216631349403; Mon, 21 Jul 2008 02:09:09 -0700 (PDT) Original-Received: by 10.151.83.13 with HTTP; Mon, 21 Jul 2008 02:09:09 -0700 (PDT) In-Reply-To: <000801c8eb08$79b91ea0$6d2b5be0$@de> 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:42648 Archived-At: On Mon, Jul 21, 2008 at 10:05 AM, Ulrich Dirr wrote: > Hi, > > I've adapted the complete luatex/markiv typescript example at > http://wiki.contextgarden.net/Mark_IV#Opentype_features > for FF Kievit Pro I. It works quiet nice out of the box (aaah, nomore > fiddling with font installation!). > > \starttypescript [sans] [kievit] > > \definefontsynonym [KievitProRegular] [name:KievitPro-Regular] > [features=default] > \definefontsynonym [KievitProMedium] [name:KievitPro-Medium] > [features=default] > \definefontsynonym [KievitProExtraBold] [name:KievitPro-ExtraBold] > [features=default] > > \definefontsynonym [KievitProItalic] [name:KievitPro-Italic] > [features=default] > \definefontsynonym [KievitProMediumItalic] > [name:KievitPro-MediumItalic] [features=default] > \definefontsynonym [KievitProExtraBoldItalic] > [name:KievitPro-ExtraBoldItalic] [features=default] > > \stoptypescript > > \starttypescript [sans] [kievit] > > \definefontsynonym [Sans] [KievitProRegular] > [features=default] > \definefontsynonym [SansItalic] [KievitProItalic] > [features=default] > \definefontsynonym [SansBold] [KievitProMedium] > [features=default] > \definefontsynonym [SansSlanted] [SansItalic] > [features=default] > \definefontsynonym [SansBoldSlanted] [SansBoldItalic] > [features=default] > \definefontsynonym [SansCaps] [Sans] > [features=smallcaps] > > \stoptypescript > > \definetypeface[kievit][rm][sans][kievit][default] > \definetypeface[kievit][ss][sans][kievit][default] > \definetypeface[kievit][tt][mono][modern] [default][rscale=1.12] > \definetypeface[kievit][mm][math][iwona] [default][rscale=1.02] > > \setupbodyfont[kievit,ss,10pt] > > Now \bf \it works perfectly well but \sc doesn't. Do I need some extra > definition? I'm only guessing without trying: You have \definefontsynonym [KievitProRegular] [name:KievitPro-Regular] [features=default] \definefontsynonym [Sans] [KievitProRegular] [features=default] \definefontsynonym [SansCaps] [Sans] [features=smallcaps] I suspect that "features=default" is taking precedence (ask Hans once he's back about the phylosophy behind this mechanism). I don't say that it should be that way, but for the moment try to define a new font instance with "features=smallcaps" from the beginning. Something like: \definefontsynonym [KievitProRegularCaps] [name:KievitPro-Regular] [features=smallcaps] \definefontsynonym [SansCaps] [KievitProRegularCaps] You also have \addfontfeature available where you can enable small caps. To be honest, \sc could work without so much trickery in XeTeX and LuaTeX (it could simply add +smcp to the current font), but definition of \sc has not been adapted to work like that yet. Mojca ___________________________________________________________________________________ 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 ___________________________________________________________________________________