Re: [NTG-context] The requested font has no files for the 'tf' alternative

2017-03-15 Thread Marco Patzer
On Wed, 15 Mar 2017 19:26:06 +0100
Wolfgang Schuster  wrote:

> > Pablo Rodriguez 
> > 15. März 2017 um 19:10via Postbox 
> > 
> >
> > How about removing the directory tex/texmf-cache/luatex-cache/?
> >
> > I had some problems with fonts and removing it was the way of
> > solving them.  
> You can remove the font cache with
> 
>  mtxrun --script cache --fonts --erase
> 
> and the complete cache with
> 
>  mtxrun --script cache --erase

I don't know if those commands would have helped. Since it doesn't
store any personal information I purged my context installation and
did a reinstall. Now all fonts work.

> The font cache is regenerated with
> 
>  mtxrun --script fonts --reload

I tried that (without clearing the cache) before, but to no avail.

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
___

Re: [NTG-context] The requested font has no files for the 'tf' alternative

2017-03-15 Thread Wolfgang Schuster



Pablo Rodriguez 
15. März 2017 um 19:10via Postbox 



How about removing the directory tex/texmf-cache/luatex-cache/?

I had some problems with fonts and removing it was the way of solving 
them.

You can remove the font cache with

mtxrun --script cache --fonts --erase

and the complete cache with

mtxrun --script cache --erase


The font cache is regenerated with

mtxrun --script fonts --reload

and the normal cache (which is needed to use context, fonts etc. 
scripts) with


mtxrun --generate


Wolfgang
___
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
___

Re: [NTG-context] The requested font has no files for the 'tf' alternative

2017-03-15 Thread Pablo Rodriguez
On 03/15/2017 12:56 PM, Marco Patzer wrote:
> [...]
> Thanks to Wolfgang's assistance I figured that the syntax in my OP
> was correct and the issue is with my installation. It works for me
> in a virgin installation, but throws the abovementioned error in my
> current installation.
> 
> I don't know what borked my installation and why it only affected
> some fonts and not others.

How about removing the directory tex/texmf-cache/luatex-cache/?

I had some problems with fonts and removing it was the way of solving them.

Just in case it helps,

Pablo
-- 
http://www.ousia.tk
___
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
___

Re: [NTG-context] The requested font has no files for the 'tf' alternative

2017-03-15 Thread Marco Patzer
On Tue, 14 Mar 2017 23:44:29 +0100
Marco Patzer  wrote:

> Your example works for me. But it's still unclear what I'm doing
> wrong. According to your explanation this should work:
> 
>   \definefontfamily
> [mainface]
> [rm]
> [Caecilia LT Std]
> [tf=Caecilia LT Std Roman]
> 
> However, it shows:
> 
>   selectfont > The requested font 'Caecilia LT Std' has no files for
> the 'tf' alternative, Latin Modern is used instead.
> 
> It appears that ConTeXt somehow can't find the font.

Thanks to Wolfgang's assistance I figured that the syntax in my OP
was correct and the issue is with my installation. It works for me
in a virgin installation, but throws the abovementioned error in my
current installation.

I don't know what borked my installation and why it only affected
some fonts and not others.

So sorry for the noise and thanks for quick responses.

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
___

Re: [NTG-context] The requested font has no files for the 'tf' alternative

2017-03-15 Thread Henning Hraban Ramm
Am 2017-03-14 um 23:44 schrieb Marco Patzer :
>  selectfont > The requested font 'Caecilia LT Std' has no files for the 'tf' 
> alternative, Latin Modern is used instead.
> 
> It appears that ConTeXt somehow can't find the font.

There seem to be serious problems with font detection.

I spent most of yesterday trying to convince ConTeXt to load my font, even from 
the same directory and even proven candidates like Gentium and Delicious – I 
get mostly only TeX Gyre Palladio Math :(

While a simple example works:

\usetypescriptfile[type-fiee]
\usetypescript[fiee]
\setupbodyfont[fiee,rm,9.5pt]

\starttext
\input tufte
{\ss \input knuth }
\stoptext

The same code in an environment doesn’t. I tried force-reloading the font 
database several times, deleting the luatex cache, reverting to an older 
version - always the same. I’m out of resources now.



Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

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

Re: [NTG-context] The requested font has no files for the 'tf' alternative

2017-03-14 Thread Marco Patzer
On Tue, 14 Mar 2017 21:39:34 +0100
Wolfgang Schuster  wrote:

> [...]

Thanks for the explanation, Wolfgang.

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

That makes sense.

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

Your example works for me. But it's still unclear what I'm doing
wrong. According to your explanation this should work:

  \definefontfamily
[mainface]
[rm]
[Caecilia LT Std]
[tf=Caecilia LT Std Roman]

However, it shows:

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

It appears that ConTeXt somehow can't find the font.

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
___

Re: [NTG-context] The requested font has no files for the 'tf' alternative

2017-03-14 Thread Wolfgang Schuster

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 

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

Re: [NTG-context] The requested font has no files for the 'tf' alternative

2017-03-14 Thread Marco Patzer
On Mon, 13 Mar 2017 22:10:56 +0100
Pablo Rodriguez  wrote:

> On 03/13/2017 09:55 PM, Marco Patzer wrote:
> > On Fri, 10 Mar 2017 17:12:36 +0100 Pablo Rodriguez wrote:  
> >> [...]
> >>   \definefontfamily[mainface][rm][Caecilia LT Std-Roman]  
> > 
> > This also shows:
> > 
> > selectfont > The requested font 'Caecilia LT Std-Roman' has no files
> > for the 'tf' alternative, Latin Modern is used instead.
> >   
> >> What it works is a different font name. And I guess that Roman
> >> isn’t part of the font name, but this is the style.  
> > 
> > otfinfo -i CaeciliaLTStd-Roman.otf | grep name
> > Full name:   CaeciliaLTStd-Roman
> > PostScript name: CaeciliaLTStd-Roman
> > Mac font menu name:  Caecilia LT Std Roman  
> 
> \definefontfamily[mainface][rm][CaeciliaLTStd-Roman]
> 
> I guess the full name should work. But I’m only guessing.

Sadly it does not.

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
___

Re: [NTG-context] The requested font has no files for the 'tf' alternative

2017-03-13 Thread Pablo Rodriguez
On 03/13/2017 09:55 PM, Marco Patzer wrote:
> On Fri, 10 Mar 2017 17:12:36 +0100 Pablo Rodriguez wrote:
>> [...]
>>   \definefontfamily[mainface][rm][Caecilia LT Std-Roman]
> 
> This also shows:
> 
> selectfont > The requested font 'Caecilia LT Std-Roman' has no files
> for the 'tf' alternative, Latin Modern is used instead.
> 
>> What it works is a different font name. And I guess that Roman isn’t
>> part of the font name, but this is the style.
> 
> otfinfo -i CaeciliaLTStd-Roman.otf | grep name
> Full name:   CaeciliaLTStd-Roman
> PostScript name: CaeciliaLTStd-Roman
> Mac font menu name:  Caecilia LT Std Roman

\definefontfamily[mainface][rm][CaeciliaLTStd-Roman]

I guess the full name should work. But I’m only guessing.

Pablo
-- 
http://www.ousia.tk
___
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
___

Re: [NTG-context] The requested font has no files for the 'tf' alternative

2017-03-13 Thread Marco Patzer
On Fri, 10 Mar 2017 17:12:36 +0100
Pablo Rodriguez  wrote:

> On 03/09/2017 10:33 AM, Marco Patzer wrote:
> > \definefontfamily
> >   [mainface]
> >   [rm]
> >   [Caecilia LT Std Roman]
> >   %% doesn't work, either
> >   %% [tf=file:CaeciliaLTStd-Roman.otf]
> > [...]
> >   %% \definedfont [name:CaeciliaLTStd-Roman] %% this works  
> 
> Hi Marco,
> 
> how about the following?
> 
>\definefontfamily[mainface][rm][Caecilia LT Std-Roman]

This also shows:

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

> What it works is a different font name. And I guess that Roman isn’t
> part of the font name, but this is the style.

otfinfo -i CaeciliaLTStd-Roman.otf | grep name
Full name:   CaeciliaLTStd-Roman
PostScript name: CaeciliaLTStd-Roman
Mac font menu name:  Caecilia LT Std Roman

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
___

Re: [NTG-context] The requested font has no files for the 'tf' alternative

2017-03-10 Thread Pablo Rodriguez
On 03/09/2017 10:33 AM, Marco Patzer wrote:
> \definefontfamily
>   [mainface]
>   [rm]
>   [Caecilia LT Std Roman]
>   %% doesn't work, either
>   %% [tf=file:CaeciliaLTStd-Roman.otf]
> [...]
>   %% \definedfont [name:CaeciliaLTStd-Roman] %% this works

Hi Marco,

how about the following?

   \definefontfamily[mainface][rm][Caecilia LT Std-Roman]

What it works is a different font name. And I guess that Roman isn’t
part of the font name, but this is the style.

Just in case it might help,

Pablo
-- 
http://www.ousia.tk
___
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
___

Re: [NTG-context] The requested font has no files for the 'tf' alternative

2017-03-10 Thread Marco Patzer
On Fri, 10 Mar 2017 08:13:59 +0800
Vladimir Lomov  wrote:

> Some time ago I faced the same problem: I tried to use one of
> Microsoft font but it didn't work, the only thing I saw in log was
> the same message. I solved the problem by deleting "font cache"
>   luatex-cache/context/HASH/fonts
> and generating it again
>   mtxrun --script fonts --reload --force

Thanks for the response. The same result with the rebuilt cache.

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
___

Re: [NTG-context] The requested font has no files for the 'tf' alternative

2017-03-09 Thread Vladimir Lomov
Hello
** Marco Patzer [2017-03-09 10:33:34 +0100]:

> 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

Some time ago I faced the same problem: I tried to use one of Microsoft
font but it didn't work, the only thing I saw in log was the same
message. I solved the problem by deleting "font cache"
  luatex-cache/context/HASH/fonts
and generating it again
  mtxrun --script fonts --reload --force
(may be with '--force' option you may not delete the "cache" but it
didn't hurt anyway).

Hope this will help you.

---
WBR, Vladimir Lomov

-- 
This is Jim Rockford.
At the tone leave your name and message; I'll get back to you.

This is Maria, Liberty Bail Bonds.  Your client, Todd Lieman, skipped and
his bail is forfeit.  That's the pink slip on your '74 Firebird, I believe.
Sorry, Jim, bring it on over.

This is Marilyn Reed, I wanta talk to you...  Is this a machine?  I don't
talk to machines!  [Click]
-- "The Rockford Files"
___
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
___