From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95134 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Specifying font style variant with \definefontfamily Date: Thu, 09 Jun 2016 22:59:34 +0200 Message-ID: <5759D8B6.2060308@gmail.com> References: <20160609203743.GO39769@lahore> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5713688944041008299==" X-Trace: ger.gmane.org 1465506030 11678 80.91.229.3 (9 Jun 2016 21:00:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jun 2016 21:00:30 +0000 (UTC) To: Pavneet Arora , mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 09 23:00:18 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bB73o-0006PR-SE for gctc-ntg-context-518@m.gmane.org; Thu, 09 Jun 2016 23:00:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A6652EF28; Thu, 9 Jun 2016 22:59:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 75xyRUoycRfe; Thu, 9 Jun 2016 22:59:47 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id DFEF9EFE2; Thu, 9 Jun 2016 22:59:47 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 73541EFC4 for ; Thu, 9 Jun 2016 22:59:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CIuQSNjKMy43 for ; Thu, 9 Jun 2016 22:59:45 +0200 (CEST) Original-Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 8F51BEF28 for ; Thu, 9 Jun 2016 22:59:35 +0200 (CEST) Original-Received: by mail-wm0-f54.google.com with SMTP id m124so76509345wme.1 for ; Thu, 09 Jun 2016 13:59:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=E8D5Ib9m0Nd+CCtCaLDH1lHrwrroIln+ewxIO39MKXg=; b=vZuP74JBNxdgxwd9eDaEas0/w06j0NaVihLIYpaI6S8hSOzQJJQrqLTrKtT9A3gNO/ 97WlSCccPMAdFI9jGm8JosQZ44lELJStsAXUZT1sMaq5nh6UepoahEbVQdYVo1Yb1dIW zWuZCGvXi+jxYEjTb0oyvGhCIwguPLDTubnhHIP8dMKTOMOa+BoaliEfBrrdxf06EEhk AOSrm/Oc3Rsc+gvtRM6WOKo/EqBgIj3qROnMVUP/69zVgbTEdnygO95Sd0oux8Ly4/rm 1+fQyC0M0VTYCYommQN0krjQFu7TY8AeyDRAZtNzeGKrhPdBYoIS7f7ETwzpckyQjiyA BQXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=E8D5Ib9m0Nd+CCtCaLDH1lHrwrroIln+ewxIO39MKXg=; b=DhwoLe50VSsT2sKtqR7kNLLfRUvbQrKdVBFfrmNHWMc5leSp/OYW7+fcyHXiFID45/ NIM67x5hLz2fvySDT9lRIXCP8nC+PzNxCdXD4f72Ihx9XTia6bSuF9JGy4oMllrT473E sB/r/34sH5WrpPX4PZ8cKzq1yG4a71H3HrRQ1irvT0v7t/5LKNCSm4hQldaS/CWhJb07 YDEw9iGZgjGMlAO0CHVp2Qpa7vDeLFFn9ZuiooTaoRcxxxZLfVtJPm98PrnXEDYu2StJ K5UJ/ACjRiYP8nJYov1wnkE4FQiM9EgDGB9HW+fdVaeETyj7+Wi8ruIL4xArV45D6RSU AC4w== X-Gm-Message-State: ALyK8tL81S6K86gsLo6tVqcK7TS10+/CK5eHUVzqvbJhEM97jKI8mShDL/JDqu88Ns9S9w== X-Received: by 10.194.71.80 with SMTP id s16mr12956923wju.157.1465505975199; Thu, 09 Jun 2016 13:59:35 -0700 (PDT) Original-Received: from keima.localdomain (x2f2deea.dyn.telefonica.de. [2.242.222.234]) by smtp.gmail.com with ESMTPSA id b207sm32349112wmb.0.2016.06.09.13.59.33 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 09 Jun 2016 13:59:34 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <20160609203743.GO39769@lahore> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:95134 Archived-At: This is a multi-part message in MIME format. --===============5713688944041008299== Content-Type: multipart/alternative; boundary="------------000800050708090404000603" This is a multi-part message in MIME format. --------------000800050708090404000603 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Pavneet Arora > 9. Juni 2016 um 22:37 > I'm still a bit at a loss on how one goes about correctly specifying the > variants in \definefontfamily using the default form given in the wiki. > Usually adding "* Light", etc. is sufficient (see commented line using > Junction font). > > (As an aside, is it also possible to combine \sc\bf? I haven't been > able to figure that out). > > My application is using the (free) Andada font family, and I need to > point the smallcaps style to the correct font > (https://www.fontsquirrel.com/fonts/andada). > > In the following MWE I tried the following without success: > > 1. [sc=* SC Regular] > 2. [sc=Andada SC Regular] > 3. [sc=* SC-Regular] > 4. [sc=Andada SC-Regular] > > All give the following (or similar) error to stdout: > > ...ext/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:121: > attempt to index local 'file' (a nil value) > stack traceback: > ...ext/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:121: in > function 'selectfont_savefile' > ...ext/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:151: in > function <...ext/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:142> > ...ext/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:526: in > function 'registerfiles' > ...ext/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:567: in > function 'action1' > [string "local function scan1()..."]:55: in function <[string "local > function scan1()..."]:42> > > 1 \definefontfamily[mainface][rm][Latin Modern] > 2 >> \definefontfamily[mainface][rm][Andada][sc=Andada SC Regular] > > > I end up finally settling on the form using the explicit file: > [sc=file:AndadaSC-Regular.otf], which does work. > > But I really would like to understand how the first form as given in the > wiki should be used properly? What patterns should I be looking for? There was a bug in the code but I fixed it. Wolfgang --------------000800050708090404000603 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
9. Juni 2016 um 22:37
I'm still a bit at a loss on how one goes about correctly specifying the
variants in \definefontfamily using the default form given in the wiki.
Usually adding "* Light", etc. is sufficient (see commented line using
Junction font).

(As an aside, is it also possible to combine \sc\bf? I haven't been
able to figure that out).

My application is using the (free) Andada font family, and I need to
point the smallcaps style to the correct font
(https://www.fontsquirrel.com/fonts/andada).

In the following MWE I tried the following without success:

1. [sc=* SC Regular]
2. [sc=Andada SC Regular]
3. [sc=* SC-Regular]
4. [sc=Andada SC-Regular]

All give the following (or similar) error to stdout:

...ext/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:121: attempt to index local 'file' (a nil value)
stack traceback:
...ext/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:121: in function 'selectfont_savefile'
...ext/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:151: in function <...ext/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:142>
...ext/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:526: in function 'registerfiles'
...ext/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:567: in function 'action1'
[string "local function scan1()..."]:55: in function <[string "local function scan1()..."]:42>

1 \definefontfamily[mainface][rm][Latin Modern]
2 >> \definefontfamily[mainface][rm][Andada][sc=Andada SC Regular]


I end up finally settling on the form using the explicit file:
[sc=file:AndadaSC-Regular.otf], which does work.

But I really would like to understand how the first form as given in the
wiki should be used properly? What patterns should I be looking for?
There was a bug in the code but I fixed it.

Wolfgang
--------------000800050708090404000603-- --===============5713688944041008299== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============5713688944041008299==--