From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48394 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: XeTeX font feature selection Date: Sun, 15 Mar 2009 09:58:30 +0100 Message-ID: <6faad9f00903150158i76ce7d59ye682520c571f8428@mail.gmail.com> References: 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 1237107569 307 80.91.229.12 (15 Mar 2009 08:59:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Mar 2009 08:59:29 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 15 10:00:46 2009 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 1LimD7-0005y8-Ew for gctc-ntg-context-518@m.gmane.org; Sun, 15 Mar 2009 10:00:45 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 539CB1FB4E; Sun, 15 Mar 2009 09:59:21 +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 24671-07; Sun, 15 Mar 2009 09:58:46 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BA0A21FA41; Sun, 15 Mar 2009 09:58:45 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7CB2F1FA41 for ; Sun, 15 Mar 2009 09:58:40 +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 07491-01 for ; Sun, 15 Mar 2009 09:58:32 +0100 (CET) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by ronja.ntg.nl (Postfix) with ESMTP id 66C6B1FA2B for ; Sun, 15 Mar 2009 09:58:31 +0100 (CET) Original-Received: from ey-out-1920.google.com (ey-out-1920.google.com [74.125.78.149]) by filter3-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n2F8wUFJ003604 for ; Sun, 15 Mar 2009 09:58:30 +0100 Original-Received: by ey-out-1920.google.com with SMTP id 5so710827eyb.38 for ; Sun, 15 Mar 2009 01:58:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=/x//LiJ5T/hUwycMgoc0zd5/1FdI+UK80P031KPSudE=; b=pC43iyJ5GxZ5FFnd3QASzNKJsPt/DffqkUpru3ieruSIEezZD2WxEP58x9RAefzWDR 5VAS4A9kJYfnzcaKfy5SyDTHpTp9YKS+k9J3m258wezhYne/z3JmeWUhc6UFTndmS7Pd ivdmMr1WNyON4T6G5qpUUS3oMDPcI/lkELXPY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=TY+Zp2Qq+8XrU+Ma0up5JzjsbnPyaeuV7VMDs+0wzEjHfPyPvuqJ0oeNrNGhmA8Ubp wq2yaRjLytd7ItZ8jw2AsZV0dq8jw9G9CHWHHGzfhmsQBP4MhhMZi/SKFApFdBWZG8EW l2UdyYkGH7wDW5AiHwpp5s+YjP+SrHmqUz7H8= Original-Received: by 10.216.26.201 with SMTP id c51mr1353980wea.228.1237107510311; Sun, 15 Mar 2009 01:58:30 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.78.149; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 193705700 - e593c1b0778f X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:48394 Archived-At: On Sat, Mar 14, 2009 at 15:33, John Hughes wrote: > What is the correct way of selecting a font and using OpenType > features? I have tried > > \definetypeface[linlib][rm][Xserif][Linux Libertine][features=oldstyle] > \setupbodyfont[linlib, 12pt] > > but the output prints Computer Modern (and not with old-style > numerals). The font seems to work without the "features=oldstyle", but > I am not sure how to select the font and some OpenType features. I > don't seem to be able to find any documentation. Hello, the only documentation is type-xtx.tex source code. The Xserif hack that has originally been written by Adam Lindsey now reads as: \starttypescript[Xserif][all][name] \definefontsynonym[Dummy] [name:\typescripttwo] [features=default] \definefontsynonym[Serif] [Dummy] This means that [features=default] is hardcoded into the syntax. I didn't try it, but to make something work the way you would like it, one would need to modify the hack into something like this: \definefontsynonym[Dummy] [name:\typescripttwo] [\typescriptthree] (but this would need some thinking, I do not suggest doing this modification right away even if it works). Else you can use "classical" typescripts as those in pdftex and luatex (see type-otf.tex, type-tmf.tex etc.) - numerous examples spread around. A kind-of-dirty, but most simple trick is to just redefine default features: >>From font-ini.mkii: \definefontfeature [default] [liga=yes,kern=yes,tlig=yes,trep=yes] \definefontfeature [oldstyle] [liga=yes,kern=yes,tlig=yes,trep=yes,onum=yes] Just put the following definition on top of your document: \definefontfeature [default] [liga=yes,kern=yes,tlig=yes,trep=yes,onum=yes] 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 ___________________________________________________________________________________