ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: The requested font has no files for the 'tf' alternative
Date: Tue, 14 Mar 2017 21:39:34 +0100	[thread overview]
Message-ID: <58C85506.2090906@gmail.com> (raw)
In-Reply-To: <20170309103334.29dcdb6a@homerow>


[-- Attachment #1.1: Type: text/plain, Size: 3548 bytes --]

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 <mailto:lists@homerow.info>
> 9. März 2017 um 10:33via Postbox 
> <https://www.postbox-inc.com/?utm_source=email&utm_medium=sumlink&utm_campaign=reach>
> 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 
<https://www.postbox-inc.com/?utm_source=email&utm_medium=siglink&utm_campaign=reach>

[-- Attachment #1.2: Type: text/html, Size: 5719 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  parent reply	other threads:[~2017-03-14 20:39 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-09  9:33 Marco Patzer
2017-03-10  0:13 ` Vladimir Lomov
2017-03-10  8:57   ` Marco Patzer
2017-03-10 16:12 ` Pablo Rodriguez
2017-03-13 20:55   ` Marco Patzer
2017-03-13 21:10     ` Pablo Rodriguez
2017-03-14  8:26       ` Marco Patzer
2017-03-14 20:39 ` Wolfgang Schuster [this message]
2017-03-14 22:44   ` Marco Patzer
2017-03-15  7:17     ` Henning Hraban Ramm
2017-03-15  7:27       ` Fonts not found Henning Hraban Ramm
2017-03-16 21:28         ` Henning Hraban Ramm
2017-03-15 11:56     ` The requested font has no files for the 'tf' alternative Marco Patzer
2017-03-15 18:10       ` Pablo Rodriguez
2017-03-15 18:26         ` Wolfgang Schuster
2017-03-15 20:37           ` Marco Patzer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=58C85506.2090906@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).