From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37730 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: showfont with xetex (syntax changed?) Date: Thu, 6 Dec 2007 12:32:51 +0100 Message-ID: <6faad9f00712060332s32be7922yf9b7e7788b4197f4@mail.gmail.com> References: <91844FC2-0148-4347-A206-4B22915EBDE3@st.estfiles.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 1196940855 10349 80.91.229.12 (6 Dec 2007 11:34:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Dec 2007 11:34:15 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 06 12:34:24 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 1J0Ezl-00043M-V7 for gctc-ntg-context-518@m.gmane.org; Thu, 06 Dec 2007 12:34:22 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1142D1FC0B; Thu, 6 Dec 2007 12:34:05 +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 08541-05-3; Thu, 6 Dec 2007 12:33:26 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BBE111FB77; Thu, 6 Dec 2007 12:33:26 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DF7911FB6B for ; Thu, 6 Dec 2007 12:33:25 +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 12510-01-4 for ; Thu, 6 Dec 2007 12:32:54 +0100 (CET) Original-Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.190]) by ronja.ntg.nl (Postfix) with ESMTP id 5A7861FBA8 for ; Thu, 6 Dec 2007 12:32:52 +0100 (CET) Original-Received: by rv-out-0910.google.com with SMTP id k15so202304rvb for ; Thu, 06 Dec 2007 03:32:51 -0800 (PST) Original-Received: by 10.142.172.12 with SMTP id u12mr1507548wfe.1196940771210; Thu, 06 Dec 2007 03:32:51 -0800 (PST) Original-Received: by 10.143.40.7 with HTTP; Thu, 6 Dec 2007 03:32:51 -0800 (PST) In-Reply-To: <91844FC2-0148-4347-A206-4B22915EBDE3@st.estfiles.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:37730 Archived-At: On 12/6/07, Steffen Wolfrum wrote: > Hi, > > when in february 2006 I asked for an alternative to fontspec that > could show me opentype features, Adam wrote: > > I find that the lcdf typetools are a tremendous help: > otfinfo -f ~/Library/Fonts/WarnockPro-Regular.otf > and I can test the features with: > \showfont["Warnock Pro: +smcp"] > > > Today this showfont-line doesn't work anymore: > > > \definetypeface[oneliner][rm][Xserif][Warnock Pro][default] > > \starttext > > \oneliner Test WQG 0196 > > \showfont["Warnock Pro: +smcp"] > > \stoptext > > > Someone knows what to do? (I wasn't aware of such usage ...) In this specific case you could use \showfont[SerifCaps] (if your ConTeXt version is newer than 2007.10.29) 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) One question for Hans: would it be possible (make sense) to make this work? \showfont[name:Iwona][features=mine] Perhaps there should be some kind of "raw" prefix introduced (again): \definefontsynonym[a][raw:Warnock Pro:mapping=tex-text;+smcp] But generally, LuaTeX is much more suitable for such previews (only that there might be no "newshowfont" available yet - writing one is doable if you know what you're interested in). My two cents: ConTeXt currenty uses smcp=yes,script=latn,onum=yes,liga=yes... while fontspec uses either Letters=SmallCaps Script=Latin Numbers=OldStyle Ligatures=Common or the same raw names as above. I would prefer the "human-readable" names as in fontspec, but ... well, the font calling mechanisms really need to improve in my opinion. What fontspec achieves in one line like (copying from XeTeX list): \setmainfont[Script=Devanagari]{Sanskrit 2003} needs dozens of lines in ConTeXt (definefontfeature, define typescripts in two steps, ... brrrr) So in case that some more features in XeTeX/LuaTeX change, do not be surprised too much ... 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 ___________________________________________________________________________________