From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/97553 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: The requested font has no files for the 'tf' alternative Date: Tue, 14 Mar 2017 21:39:34 +0100 Message-ID: <58C85506.2090906@gmail.com> References: <20170309103334.29dcdb6a@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3813357227380977641==" X-Trace: blaine.gmane.org 1489524015 11774 195.159.176.226 (14 Mar 2017 20:40:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 14 Mar 2017 20:40:15 +0000 (UTC) User-Agent: Postbox 5.0.11 (Macintosh/20170302) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 14 21:40:07 2017 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 blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cntEk-0002GD-0A for gctc-ntg-context-518@m.gmane.org; Tue, 14 Mar 2017 21:40:06 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3709E83962; Tue, 14 Mar 2017 21:39:51 +0100 (CET) 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 kHKQuviPTH1v; Tue, 14 Mar 2017 21:39:50 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 49AFF839EA; Tue, 14 Mar 2017 21:39:50 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2531E83941 for ; Tue, 14 Mar 2017 21:39:50 +0100 (CET) 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 4btgQRrQr86L for ; Tue, 14 Mar 2017 21:39:48 +0100 (CET) Original-Received: from mail-wr0-f174.google.com (mail-wr0-f174.google.com [209.85.128.174]) (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 E8AC183894 for ; Tue, 14 Mar 2017 21:39:37 +0100 (CET) Original-Received: by mail-wr0-f174.google.com with SMTP id g10so131789470wrg.2 for ; Tue, 14 Mar 2017 13:39:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=7s1iEGPXfz3d54mY/QJgF2rvBKE8sTc8wNWhTcST5TU=; b=e73X/nHPlPJj80dZ9jM/pc0vanMv51QD/mB0xucVBJ0TDHJxJMGtUErcUOnmAz4qwr /1J1pa82qJtQuFBWnu6dnZpqFghBke3Rc6Yq9fB9CVSrazsWrzyM6ODMUJvKNmJnSdZt O5c0BjmmXX2pp9BoiDMOBklW7mrumOhBajWCKRB+sO0f2X6Ic3JvKGpL3qAJJJFA7uG0 fxfE6msTxGeITIFVxQVoO/IA6kPrtFNTGNYvlnFVhg/Ap8n1K8C24fJ8mjRHbHKNwr5x nvLE1LCfJXKWFqxhec6gyHKzU83HldD6ECQTv6/mBF4fayhOuOb4587r4w+n/QVS+T1b 61Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=7s1iEGPXfz3d54mY/QJgF2rvBKE8sTc8wNWhTcST5TU=; b=iVE78g40JzT0ZrqRXW59JqTqFQevlyuFmbVhYTwDXvPQxrN0lpxQxDn1/jfSaRLlLR 78EKeFNXrbMpJxj3E96BnS0qY0K2VBImsIO7qnUACnzJ8Q8/VT8wH/R0FXEQuoPAICa/ h5WfE8u3//gCCpeHNjonHMyApKRdhbRtgHjP3tS097mZmshQItJmbhL2fXzM4Om/eF8t Cw4Z7pPKI4UvczStuG17l0F5fOQzpkPP/vhIApnv2tIlPhoHhn2vzVjRB6/hMoP9obOl j9QaXEQ094Y4SOmrpAQWoTs+0fNC0xm8rxH9RGk21zn/wxjZiMaYwbVANhUpKba8E7vR oVUQ== X-Gm-Message-State: AMke39nVFpFFbKKVutBCdwP+kgjSR9Wh3GZj9HeNkLpkod5dRz0d217zJfBD7nFAPk0b/w== X-Received: by 10.223.169.171 with SMTP id b40mr36773060wrd.132.1489523976982; Tue, 14 Mar 2017 13:39:36 -0700 (PDT) Original-Received: from Wolfgangs-MBP.localdomain (x2f242ec.dyn.telefonica.de. [2.242.66.236]) by smtp.gmail.com with ESMTPSA id l41sm30381590wre.23.2017.03.14.13.39.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Mar 2017 13:39:36 -0700 (PDT) In-Reply-To: <20170309103334.29dcdb6a@homerow> 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:97553 Archived-At: This is a multi-part message in MIME format. --===============3813357227380977641== Content-Type: multipart/alternative; boundary="------------040206070206050303030508" This is a multi-part message in MIME format. --------------040206070206050303030508 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Marco, there is a differenece between the family name of a font (which is used by \definefontfamily) and the individual name of a font. The differences between both names can be explained with a with a (kind of) real family. For my example I use the main cast of the Simpsons. Surname : Simpson Grandfather : Abraham Simpson Grandmother : Mona Simpson Father : Homer Simpson Mother : Marge Simpson Son : Bart Simpson Daughter : Lisa Simpson All members of the family use the same surname but each of them has also its individual name, the same system can be applied to your font collection. Family: Caecilia LT Std Light : Caecilia LT Std Light Lightitalic : Caecilia LT Std Light Italic Regular : Caecilia LT Std Roman Italic : Caecilia LT Std Italic Bold : Caecilia LT Std Bold Bolditalic : Caecilia LT Std Bold Italic Heavy : Caecilia LT Std Heavy Heavyitalic : Caecilia LT Std Heavy Italic Each font of your collection has its individual name, e.g. the regular style has the name “Caecilia LT Std Roman” but all styles use the same name for the family (i.e. “Caecilia LT Std”) which is used by \definefontfamily. When you now used a individual name instead of the family name for \definefontfamily you should get a message in log for the correct name, e.g. the following example \definefontfamily[mainface][rm][TeX Gyre Pagella Regular] \setupbodyfont[mainface] \starttext Font test! \stoptext shows this in the log selectfont > The name 'texgyrepagellaregular' is not a proper family name, use 'texgyrepagella' instead. selectfont > The requested font 'TeX Gyre Pagella Regular' has no files for the 'tf' alternative, Latin Modern is used instead. which tells you to use “texgyrepagella” for the \definefontfamily command. Wolfgang > Marco Patzer > 9. März 2017 um 10:33via Postbox > > Hi! > > I run into a problem using some fonts. Latin Modern is used instead > and ConTeXt displays: > > selectfont > The requested font 'Caecilia LT Std Roman' has no files > for the 'tf' alternative, Latin Modern is used instead. > > Example: > > \definefontfamily > [mainface] > [rm] > [Caecilia LT Std Roman] > %% doesn't work, either > %% [tf=file:CaeciliaLTStd-Roman.otf] > > \setupbodyfont [mainface] > > \starttext > %% \definedfont [name:CaeciliaLTStd-Roman] %% this works > \input knuth > \stoptext > > The font is in the database: > > mtxrun -script fonts -list -all caecilia > > This happens with other fonts too, not only Caecilia. Some fonts > work, others don't. Couldn't find anything on the list, so I might > be doing something wrong here. What's the issue here? > > context: 2017.03.02 22:23 > > Marco > ___________________________________________________________________________________ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ -- Sent from Postbox --------------040206070206050303030508 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Marco,

there is a differenece between the family name of a font (which is used by \definefontfamily) and the individual name of a font. The differences between both names can be explained with a with a (kind of) real family.

For my example I use the main cast of the Simpsons.


Surname : Simpson

    Grandfather : Abraham Simpson
    Grandmother : Mona Simpson
    Father      : Homer Simpson
    Mother      : Marge Simpson
    Son         : Bart Simpson
    Daughter    : Lisa Simpson


All members of the family use the same surname but each of them has also its individual name, the same system can be applied to your font collection.


Family: Caecilia LT Std

    Light       : Caecilia LT Std Light
    Lightitalic : Caecilia LT Std Light Italic
    Regular     : Caecilia LT Std Roman
    Italic      : Caecilia LT Std Italic
    Bold        : Caecilia LT Std Bold
    Bolditalic  : Caecilia LT Std Bold Italic
    Heavy       : Caecilia LT Std Heavy
    Heavyitalic : Caecilia LT Std Heavy Italic


Each font of your collection has its individual name, e.g. the regular style has the name “Caecilia LT Std Roman” but all styles use the same name for the family (i.e. “Caecilia LT Std”) which is used by \definefontfamily.


When you now used a individual name instead of the family name for \definefontfamily you should get a message in log for the correct name, e.g. the following example

    \definefontfamily[mainface][rm][TeX Gyre Pagella Regular]
   
    \setupbodyfont[mainface]
    
    \starttext
    Font test!
    \stoptext

shows this in the log

    selectfont      > The name 'texgyrepagellaregular' is not a proper family name, use 'texgyrepagella' instead.
    selectfont      > The requested font 'TeX Gyre Pagella Regular' has no files for the 'tf' alternative, Latin Modern is used instead.

which tells you to use “texgyrepagella” for the \definefontfamily command.


Wolfgang
9. März 2017 um 10:33 via Postbox
Hi!

I run into a problem using some fonts. Latin Modern is used instead
and ConTeXt displays:

selectfont > The requested font 'Caecilia LT Std Roman' has no files for the 'tf' alternative, Latin Modern is used instead.

Example:

\definefontfamily
[mainface]
[rm]
[Caecilia LT Std Roman]
%% doesn't work, either
%% [tf=file:CaeciliaLTStd-Roman.otf]

\setupbodyfont [mainface]

\starttext
%% \definedfont [name:CaeciliaLTStd-Roman] %% this works
\input knuth
\stoptext

The font is in the database:

mtxrun -script fonts -list -all caecilia

This happens with other fonts too, not only Caecilia. Some fonts
work, others don't. Couldn't find anything on the list, so I might
be doing something wrong here. What's the issue here?

context: 2017.03.02 22:23

Marco
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________

--
Sent from Postbox
--------------040206070206050303030508-- --===============3813357227380977641== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============3813357227380977641==--