Re: [NTG-context] How to use Helvetica Neue Light (OS X)?

2016-02-11 Thread Hans Hagen

On 2/11/2016 10:31 AM, Nicola wrote:


That fixed the issue for me.


Not for me. After that command, I do see all the entries again, but when I
typeset my document the font is not found. I paste the log below.


then you have to wait till Wolfgang comes up with an idea (as he runs 
osx and might have that font)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to use Helvetica Neue Light (OS X)?

2016-02-11 Thread Taco Hoekwater

> On 10 Feb 2016, at 21:04, Hans Hagen  wrote:
> 
> On 2/10/2016 5:44 PM, Nicola wrote:
>> On 2016-02-10 15:19:01 +, Pablo Rodriguez said:
>>> 
>>> I’m not OS user, but the following works with Junction
>>> (https://www.theleagueofmoveabletype.com/junction):
>>> 
>>>\definefontfamily[mainface][ss][Junction][tf=style:light]
>> 
>> Thanks, that indeed does the trick (modulo Taco's comment in another post).
> 
> mtxrun --script font --reload —force

That fixed the issue for me.

Best wishes,
Taco

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to use Helvetica Neue Light (OS X)?

2016-02-11 Thread Nicola

On 2016-02-11 08:36:12 +, Taco Hoekwater said:




On 10 Feb 2016, at 21:04, Hans Hagen  wrote:

On 2/10/2016 5:44 PM, Nicola wrote:

On 2016-02-10 15:19:01 +, Pablo Rodriguez said:


I’m not OS user, but the following works with Junction
(https://www.theleagueofmoveabletype.com/junction):

\definefontfamily[mainface][ss][Junction][tf=style:light]


Thanks, that indeed does the trick (modulo Taco's comment in another post).


mtxrun --script font --reload —force


That fixed the issue for me.


Not for me. After that command, I do see all the entries again, but when I
typeset my document the font is not found. I paste the log below.

Hans has suggested:


can you delete the fonts path in the texmf-cache


Do you mean texmf-var/fonts? Here is what I done, step by step:

0) `sudo mv /usr/local/texlive/2015/texmf-var/fonts ~/.Trash`.

1) delete all the cache files in 
/usr/local/texlive/2015/texmf-var/luatex-cache and

  in ~/Library/texlive/texmf-var/luatex-cache;

2) At this point, running context or 'luatools --generate' results in:

resolvers   | trees | analyzing '/Users/nicola/Library/texmf'
mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'

3) Run `mtxrun --generate` (without sudo). This creates
  ~/Library/texlive/texmf-var/luatex-cache/context;

4) run `mtxrun --script fonts --list --all --pattern=avenirnextcondensed*`:
  this runs for a while and at the end I get:

fonts   | names | accessing the data table failed
avenirnextcondensed   
avenirnextcondensedultralightitalic   /System/Library/Fonts/Avenir Next 
Condensed.ttc   index:  0
avenirnextcondensedblack  avenirnextcondensedheavyitalic
   /System/Library/Fonts/Avenir Next Condensed.ttc   index:  2
avenirnextcondensedbold   avenirnextcondensedbold   
   /System/Library/Fonts/Avenir Next Condensed.ttc   index: 11
avenirnextcondensedbolditalic avenirnextcondensedbolditalic 
   /System/Library/Fonts/Avenir Next Condensed.ttc   index: 10
avenirnextcondenseddemi   avenirnextcondenseddemibolditalic 
   /System/Library/Fonts/Avenir Next Condensed.ttc   index:  8
avenirnextcondenseddemibold   avenirnextcondenseddemibold   
   /System/Library/Fonts/Avenir Next Condensed.ttc   index:  9
avenirnextcondenseddemibolditalic avenirnextcondenseddemibolditalic 
   /System/Library/Fonts/Avenir Next Condensed.ttc   index:  8
avenirnextcondensedheavy  avenirnextcondensedheavy  
   /System/Library/Fonts/Avenir Next Condensed.ttc   index:  3
avenirnextcondensedheavyitalicavenirnextcondensedheavyitalic
   /System/Library/Fonts/Avenir Next Condensed.ttc   index:  2
avenirnextcondenseditalic avenirnextcondenseditalic 
   /System/Library/Fonts/Avenir Next Condensed.ttc   index:  7
avenirnextcondensedlight  
avenirnextcondensedultralightitalic   /System/Library/Fonts/Avenir Next 
Condensed.ttc   index:  0
avenirnextcondensedmedium avenirnextcondensedmedium 
   /System/Library/Fonts/Avenir Next Condensed.ttc   index:  6
avenirnextcondensedmediumitalic   avenirnextcondensedmediumitalic   
   /System/Library/Fonts/Avenir Next Condensed.ttc   index:  5
avenirnextcondensednormal avenirnextcondensedregular
   /System/Library/Fonts/Avenir Next Condensed.ttc   index:  4
avenirnextcondensedregularavenirnextcondensedregular
   /System/Library/Fonts/Avenir Next Condensed.ttc   index:  4
avenirnextcondensedultralight avenirnextcondensedultralight 
   /System/Library/Fonts/Avenir Next Condensed.ttc   index:  1
avenirnextcondensedultralightitalic   
avenirnextcondensedultralightitalic   /System/Library/Fonts/Avenir Next 
Condensed.ttc   index:  0


I don't know whether the first line of this output indicates a problem.

5) Typeset the document. This takes ~10s and the result is an empty
  document (font not found).

6) Run `mtxrun --script fonts --list --all --pattern=avenirnextcondensed*`:

resolvers   | trees | analyzing '/Users/nicola/Library/texmf'
avenirnextcondensed   avenirnextcondensedbold   
/System/Library/Fonts/Avenir Next Condensed.ttc   index: 11
avenirnextcondensedbold   avenirnextcondensedbold   
/System/Library/Fonts/Avenir Next Condensed.ttc   index: 11


7) Typeset again. Result: font found, document typeset in boldface.

8) Run `mtxrun --script font --reload --force`. After that, mtxrun
  shows me the same output as in step 4. Typesetting the document
  several times always results in `unknown font`. Document and log
  below.

Nicola

\definefontfamily [myfamily] [serif] [Avenir Next Condensed]
\setupbodyfont[myfamily]
\starttext
\tf Regular, \it Italic \bf Bold and \bi BoldItalic
\stoptext


resolvers   | trees | analyzing '/Users/nicola/Library/texmf'
mtx-context | run 1: luatex 

Re: [NTG-context] How to use Helvetica Neue Light (OS X)?

2016-02-11 Thread Wolfgang Schuster

Nicola 
11. Februar 2016 um 11:49
On 2016-02-11 10:32:14 +, Wolfgang Schuster said:


Thanks! The typescript works for me, at least with the beta.
This is no surprise because typescripts are contexts native way to load 
fonts

and even the \definefontfamily command creates a typescript for your fonts.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to use Helvetica Neue Light (OS X)?

2016-02-11 Thread Nicola

On 2016-02-11 10:14:10 +, Taco Hoekwater said:


It looks like \definefontfamily depends on actual separate font files.
This worked for me:

\definefontfamily [myfamily] [serif] [Avenir Next Condensed]
 [tf=name:Avenir Next Condensed Regular,
  bf=name:Avenir Next Condensed Bold,
  bi=name:Avenir Next Condensed Bold Italic,
  it=name:Avenir Next Condensed Italic]


Thanks, this works (after a --force --reload, even in beta)!

Nicola


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to use Helvetica Neue Light (OS X)?

2016-02-11 Thread Taco Hoekwater

> On 11 Feb 2016, at 10:31, Nicola  wrote:
> 
> On 2016-02-11 08:36:12 +, Taco Hoekwater said:
> 
>>> On 10 Feb 2016, at 21:04, Hans Hagen  wrote:
>>> On 2/10/2016 5:44 PM, Nicola wrote:
 On 2016-02-10 15:19:01 +, Pablo Rodriguez said:
> I’m not OS user, but the following works with Junction
> (https://www.theleagueofmoveabletype.com/junction):
> \definefontfamily[mainface][ss][Junction][tf=style:light]
 Thanks, that indeed does the trick (modulo Taco's comment in another post).
>>> mtxrun --script font --reload —force
>> That fixed the issue for me.
> 
> Not for me. After that command, I do see all the entries again, but when I
> typeset my document the font is not found. I paste the log below.

It looks like \definefontfamily depends on actual separate font files. 
This worked for me:

\definefontfamily [myfamily] [serif] [Avenir Next Condensed]
 [tf=name:Avenir Next Condensed Regular,
  bf=name:Avenir Next Condensed Bold,
  bi=name:Avenir Next Condensed Bold Italic,
  it=name:Avenir Next Condensed Italic]

Best wishes,
Taco

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to use Helvetica Neue Light (OS X)?

2016-02-11 Thread Nicola

On 2016-02-11 10:32:14 +, Wolfgang Schuster said:



Besides the \definefontfamily you can also write the required typescripts
yourself, below is a example for the normal Avenir Next fonts.


Thanks! The typescript works for me, at least with the beta.

Nicola


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to use Helvetica Neue Light (OS X)?

2016-02-11 Thread Nicola

On 2016-02-11 11:03:41 +, Wolfgang Schuster said:


Nicola 11. Februar 2016 um 11:49
On 2016-02-11 10:32:14 +, Wolfgang Schuster said:


Thanks! The typescript works for me, at least with the beta.
This is no surprise because typescripts are contexts native way to load fonts
and even the \definefontfamily command creates a typescript for your fonts.


Does the typescript rely on some features present in the beta but not in
TeX Live 2015? I ask because with ConTeXt from TeX Live the first two \input
blocks are typeset with the default font (Latin Modern, I think) and the last
two blocks in Avenir Next Light (no boldface). The log has:

fonts   > otf loading > loading '/System/Library/Fonts/Avenir 
Next.ttc', hash 'avenir-next-avenirnext-regular'

fonts   > otf loading > loading done
fonts   > otf loading > loading failed due to read error
fonts   > defining > font with asked name 'Avenir Next' is not 
found using lookup 'file'

fonts   > defining > unknown font 'Avenir Next', loading aborted
fonts   > defining > unable to define 'Avenir Next' as 
'avenir-12pt-ss-tf-0--0'

[...]
fonts   > otf loading > loading '/System/Library/Fonts/Avenir 
Next.ttc', hash 'avenir-next-avenirnext-bold'

fonts   > otf loading > loading done
fonts   > otf loading > loading failed due to read error
fonts   > defining > font with asked name 'Avenir Next' is not 
found using lookup 'file'

fonts   > defining > unknown font 'Avenir Next', loading aborted
fonts   > defining > unable to define 'Avenir Next' as 
'avenir-12pt-ss-bf-0--0'

[...]
fonts   > otf loading > loading '/System/Library/Fonts/Avenir 
Next.ttc', hash 'avenir-next-avenirnext-medium'

fonts   > otf loading > loading done
fonts   > otf loading > loading failed due to read error
fonts   > defining > font with asked name 'Avenir Next' is not 
found using lookup 'file'

fonts   > defining > unknown font 'Avenir Next', loading aborted
fonts   > defining > unable to define 'Avenir Next' as 
'avenir-light-12pt-ss-bf-0--0'


Nicola


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to use Helvetica Neue Light (OS X)?

2016-02-11 Thread Wolfgang Schuster

Nicola 
11. Februar 2016 um 10:31
On 2016-02-11 08:36:12 +, Taco Hoekwater said:

[...]

8) Run `mtxrun --script font --reload --force`. After that, mtxrun
  shows me the same output as in step 4. Typesetting the document
  several times always results in `unknown font`. Document and log
  below.

Nicola

\definefontfamily [myfamily] [serif] [Avenir Next Condensed]
\setupbodyfont[myfamily]
\starttext
\tf Regular, \it Italic \bf Bold and \bi BoldItalic
\stoptext

The \definefontfamily uses currently a fixed value for the font width
but I won’t have time for this before the weekend because I have to
check a few (hundred!) fonts for the best solution.


Besides the \definefontfamily you can also write the required typescripts
yourself, below is a example for the normal Avenir Next fonts.

 begin example
\starttypescript[sans][avenir]
\setups[font:fallback:sans]
\definefontsynonym [Sans]   [Avenir Next(AvenirNext-Regular)]
\definefontsynonym [SansItalic] [Avenir Next(AvenirNext-Italic)]
\definefontsynonym [SansBold]   [Avenir Next(AvenirNext-Bold)]
\definefontsynonym [SansBoldItalic] [Avenir 
Next(AvenirNext-BoldItalic)]

\stoptypescript

\starttypescript[sans][avenir-light]
\setups[font:fallback:sans]
\definefontsynonym [Sans]   [Avenir 
Next(AvenirNext-UltraLight)]
\definefontsynonym [SansItalic] [Avenir 
Next(AvenirNext-UltraLightItalic)]

\definefontsynonym [SansBold]   [Avenir Next(AvenirNext-Medium)]
\definefontsynonym [SansBoldItalic] [Avenir 
Next(AvenirNext-MediumItalic)]

\stoptypescript

\definetypeface [avenir] [ss] [sans] [avenir] [default] [features=default]
\definetypeface [avenir] [mm] [math] [modern] [default]

\definetypeface [avenir-light] [ss] [sans] [avenir-light] [default] 
[features=default]

\definetypeface [avenir-light] [mm] [math] [modern]   [default]

\setupbodyfont[avenir]

\starttext

\input knuth {\bf \input knuth }

\switchtobodyfont[avenir-light]
\input knuth {\bf \input knuth }

\stoptext
 end example


BTW: ConTeXts already provides typescripts for many OS X fonts but they 
are a little bit dated.


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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to use Helvetica Neue Light (OS X)?

2016-02-10 Thread Nicola

On 2016-02-10 12:48:32 +, Hans Hagen said:


On 2/10/2016 12:36 PM, Nicola wrote:


(1) I conclude that .dfont fonts are not dealt properly by ConTeXt, or
that I am missing some configuration step.


indeed the latest mkiv does not support dfonts any longer


Ok, good to know. Any suggestion on how to select a font within a .ttc?

Btw, I read in the wiki(*) that “the current version of LuaTeX (0.60)
has severe problems dealing with the new TrueType collection fonts in
Snow Leopard (Mac OS 10.6).”

Is that still the case with the current LuaTeX (I am on El Capitan)? That
might explain my results.

What is the best practice: do you recommended using only ttf and otf fonts?

Nicola

(*) http://wiki.contextgarden.net/Fonts_in_LuaTeX#Querying_the_font_database


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to use Helvetica Neue Light (OS X)?

2016-02-10 Thread Nicola

On 2016-02-10 14:13:37 +, Hans Hagen said:


Ok, good to know. Any suggestion on how to select a font within a .ttc?


normally by name


Btw, I read in the wiki(*) that “the current version of LuaTeX (0.60)
has severe problems dealing with the new TrueType collection fonts in
Snow Leopard (Mac OS 10.6).”


0.60 is ancient ... we have approx 0.90 now


Is that still the case with the current LuaTeX (I am on El Capitan)? That
might explain my results.


i don't use osx but others can tell you


What is the best practice: do you recommended using only ttf and otf fonts?


ttc is okay


So, if someone using OS X could tell me how to, say, use Avenir Light or
Avenir Next Ultra Light (both are .ttc), that would be much appreciated :)

Nicola


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to use Helvetica Neue Light (OS X)?

2016-02-10 Thread Taco Hoekwater
Hi,

> On 10 Feb 2016, at 16:19, Pablo Rodriguez  wrote:
> 
> On 02/10/2016 03:45 PM, Nicola wrote:
>> On 2016-02-10 14:13:37 +, Hans Hagen said:
 
 Ok, good to know. Any suggestion on how to select a font within a .ttc?
>>> 
>>> normally by name


It seems the ttc extractor fails in the current beta, at least on osx. 

After a —reload of the fonts, I get similar results to Nicola: only one 
indexed font is found for each of the .ttc files (always the last index). 

So, for example, I have only these four entries for Avenir Next Condensed:

avenirnextcondensed avenirnextcondensedultralightitalic   
/System/Library/Fonts/Avenir Next Condensed.ttc  index: 12
avenirnextcondenseditalic   avenirnextcondensedultralightitalic   
/System/Library/Fonts/Avenir Next Condensed.ttc  index: 12
avenirnextcondensedlightavenirnextcondensedultralightitalic   
/System/Library/Fonts/Avenir Next Condensed.ttc  index: 12
avenirnextcondensedultralightitalic avenirnextcondensedultralightitalic   
/System/Library/Fonts/Avenir Next Condensed.ttc  index: 12

The last of those lines is the most specific one, the earlier ones are probably 
heuristically derived, and the font works indeed ok.

But the fonts at index 1–11 of the ttc are missing completely! 

That same issue happens for all the ttcs files on my system, with the
latest standalone beta.

Best wishes,
Taco
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to use Helvetica Neue Light (OS X)?

2016-02-10 Thread Pablo Rodriguez
On 02/10/2016 03:45 PM, Nicola wrote:
> On 2016-02-10 14:13:37 +, Hans Hagen said:
>>>
>>> Ok, good to know. Any suggestion on how to select a font within a .ttc?
>>
>> normally by name
>>
>>> Btw, I read in the wiki(*) that “the current version of LuaTeX (0.60)
>>> has severe problems dealing with the new TrueType collection fonts in
>>> Snow Leopard (Mac OS 10.6).”
>>
>> 0.60 is ancient ... we have approx 0.90 now
>>
>>> Is that still the case with the current LuaTeX (I am on El Capitan)? That
>>> might explain my results.
>>
>> i don't use osx but others can tell you
>>
>>> What is the best practice: do you recommended using only ttf and otf fonts?
>>
>> ttc is okay
> 
> So, if someone using OS X could tell me how to, say, use Avenir Light or
> Avenir Next Ultra Light (both are .ttc), that would be much appreciated :)

Hi Nicolca,

I’m not OS user, but the following works with Junction
(https://www.theleagueofmoveabletype.com/junction):

\definefontfamily[mainface][ss][Junction][tf=style:light]

I hope 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to use Helvetica Neue Light (OS X)?

2016-02-10 Thread Hans Hagen

On 2/10/2016 2:51 PM, Nicola wrote:

On 2016-02-10 12:48:32 +, Hans Hagen said:


On 2/10/2016 12:36 PM, Nicola wrote:


(1) I conclude that .dfont fonts are not dealt properly by ConTeXt, or
that I am missing some configuration step.


indeed the latest mkiv does not support dfonts any longer


Ok, good to know. Any suggestion on how to select a font within a .ttc?


normally by name


Btw, I read in the wiki(*) that “the current version of LuaTeX (0.60)
has severe problems dealing with the new TrueType collection fonts in
Snow Leopard (Mac OS 10.6).”


0.60 is ancient ... we have approx 0.90 now


Is that still the case with the current LuaTeX (I am on El Capitan)? That
might explain my results.


i don't use osx but others can tell you


What is the best practice: do you recommended using only ttf and otf fonts?


ttc is okay

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to use Helvetica Neue Light (OS X)?

2016-02-10 Thread Nicola

On 2016-02-10 15:49:37 +, Taco Hoekwater said:


It seems the ttc extractor fails in the current beta, at least on osx.

After a —reload of the fonts, I get similar results to Nicola: only one
indexed font is found for each of the .ttc files (always the last index).


I have exactly the same for the beta. Let me add that things do not look
right with ConTeXt from TeX Live either. Try this:

1) remove the cache from ~/Library/texlive/2015/texmf-var
2) luatools --generate
3) mtxrun --script fonts --list --all --pattern=avenirnextcondensed*
4) Typeset my test document using Avenir Next Condensed.
5) mtxrun --script fonts --reload
6) mtxrun --script fonts --list --all --pattern=avenirnextcondensed*
7) Typeset again.

My results:

3) I see all the entries, plus some spurious ones, which are probably
  synthesized by the script (e.g., avenirnextcondensedblack).
4) The PDF is an empty document (`unknown font` in the console).
6) I see only avenirnextcondensed and avenirnextcondensedbold: the rest
  is gone.
7) The document is typeset in boldface (at least the font is found).

Nicola


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to use Helvetica Neue Light (OS X)?

2016-02-10 Thread Nicola

On 2016-02-10 15:19:01 +, Pablo Rodriguez said:


I’m not OS user, but the following works with Junction
(https://www.theleagueofmoveabletype.com/junction):

\definefontfamily[mainface][ss][Junction][tf=style:light]


Thanks, that indeed does the trick (modulo Taco's comment in another post).

Nicola


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to use Helvetica Neue Light (OS X)?

2016-02-10 Thread Hans Hagen

On 2/10/2016 6:06 PM, Nicola wrote:

On 2016-02-10 15:49:37 +, Taco Hoekwater said:


It seems the ttc extractor fails in the current beta, at least on osx.

After a —reload of the fonts, I get similar results to Nicola: only one
indexed font is found for each of the .ttc files (always the last index).


I have exactly the same for the beta. Let me add that things do not look
right with ConTeXt from TeX Live either. Try this:

1) remove the cache from ~/Library/texlive/2015/texmf-var
2) luatools --generate
3) mtxrun --script fonts --list --all --pattern=avenirnextcondensed*
4) Typeset my test document using Avenir Next Condensed.
5) mtxrun --script fonts --reload
6) mtxrun --script fonts --list --all --pattern=avenirnextcondensed*
7) Typeset again.

My results:

3) I see all the entries, plus some spurious ones, which are probably
   synthesized by the script (e.g., avenirnextcondensedblack).
4) The PDF is an empty document (`unknown font` in the console).
6) I see only avenirnextcondensed and avenirnextcondensedbold: the rest
   is gone.
7) The document is typeset in boldface (at least the font is found).


can you delete the fonts path in the texmf-cache

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to use Helvetica Neue Light (OS X)?

2016-02-10 Thread Hans Hagen

On 2/10/2016 5:44 PM, Nicola wrote:

On 2016-02-10 15:19:01 +, Pablo Rodriguez said:


I’m not OS user, but the following works with Junction
(https://www.theleagueofmoveabletype.com/junction):

\definefontfamily[mainface][ss][Junction][tf=style:light]


Thanks, that indeed does the trick (modulo Taco's comment in another post).


mtxrun --script font --reload --force


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to use Helvetica Neue Light (OS X)?

2016-02-10 Thread Nicola

On 2016-02-09 22:15:47 +, Nicola said:


I want to use OS X's Helvetica Neue Light in a document. How may
I do that?


I have investigated the issue a bit more and it seems that I have
a more fundamental problem with fonts. More specifically, I have
tested the latest beta (ConTeXt 0.63 2016.02.08 15:35) and the TeX
Live version (ConTeXt 0.61 2015.05.18 12:26), with inconsistent
results. The beta is a fresh install, where I have only executed:

sh ./first-setup.sh --modules=all --engine=luatex
. ./tex/setuptex
luatools --generate

This is a selection of fonts that I have tried (the name is the name
that I have used as an argument to \definefamily):

Name SuffixTeXLive ConTeXt  ConTeXt Beta
---
Baskerville   .ttc OK   OK
Courier   .dfont   unknown font unknown font
Geneva.dfont   OK   unknown font
Helvetica .dfont   OK   unknown font
Helvetica Neue.dfont   Nearly OK(*) unknown font
Helvetica Neue Desk Interface .ttc Nearly OK(*) Nearly OK(**)
Hoefler   .ttc unknown font unknown font
Hoefler Text  .ttc unknown font unknown font
Hoefler Text Ornaments.ttc unknown font unknown font
Menlo .ttc OK   OK
Monaco.dfont   OK   unknown font
Optima.ttc OK   OK
Palatino  .ttc OK   OK
Source Code Pro   .otf OK   Nearly OK(***)
Times .dfont   unknown font unknown font
Times Roman   .dfont   unknown font unknown font

(*) Instead of bold, bold italic is used
(**) Instead of bold italic, bold is used (!)
(***) Italic and bold italic are shown as regular and italic, resp.

In general, I have no problems with .ttf and .otf fonts (with the
exception of Source Code Pro, see the table).

From the above:

(1) I conclude that .dfont fonts are not dealt properly by ConTeXt, or
   that I am missing some configuration step.

(2) I suspect that I also have a naming issue (e.g., see Hoefler and
   Times). This is what mtxrun gives me for Hoefler (for both ConTeXt
   versions):

mtxrun --script fonts --list --all --pattern=hoefl*

hoeflertext  hoeflertextornaments 
/Library/Fonts/Hoefler Text Ornaments.ttf
hoeflertextblack hoeflertextblack 
/Library/Fonts/Hoefler Text.ttc index:  2
hoeflertextblackitalic   hoeflertextblackitalic   
/Library/Fonts/Hoefler Text.ttc index:  4
hoeflertextitalichoeflertextitalic
/Library/Fonts/Hoefler Text.ttc index:  3
hoeflertextnormalhoeflertextornaments 
/Library/Fonts/Hoefler Text Ornaments.ttf
hoeflertextornaments hoeflertextornaments 
/Library/Fonts/Hoefler Text Ornaments.ttf
hoeflertextregular   hoeflertextregular   
/Library/Fonts/Hoefler Text.ttc index:  1



(3) I still don't now how to select, say, Helvetica Light or Avenir Black.
   For the record, in LuaLaTeX I use \setsansfont{Helvetica Neue Light},
   and it works.

The document I have used for the tests is pretty basic, but I paste it
below for completeness.

Nicola

\definefontfamily [myfamily] [serif] [Some Font] %[style=Light]
\setupbodyfont[myfamily]
\starttext
\scale[width=\textwidth]{\switchtobodyfont   [6pt]\tf Regular, \it 
Italic \bf Bold and \bi BoldItalic}
\scale[width=\textwidth]{\switchtobodyfont   [8pt]\tf Regular, \it 
Italic \bf Bold and \bi BoldItalic}
\scale[width=\textwidth]{\switchtobodyfont  [10pt]\tf Regular, \it 
Italic \bf Bold and \bi BoldItalic}
\scale[width=\textwidth]{\switchtobodyfont  [12pt]\tf Regular, \it 
Italic \bf Bold and \bi BoldItalic}
\scale[width=\textwidth]{\switchtobodyfont[17.3pt]\tf Regular, \it 
Italic \bf Bold and \bi BoldItalic}

\stoptext


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to use Helvetica Neue Light (OS X)?

2016-02-10 Thread Hans Hagen

On 2/10/2016 12:36 PM, Nicola wrote:


(1) I conclude that .dfont fonts are not dealt properly by ConTeXt, or
that I am missing some configuration step.


indeed the latest mkiv does not support dfonts any longer (makes no 
sense to depend on an obsolete format and the few fonts around are not 
worth the trouble of implementing)


you can try \usemodule[oldotf]

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] How to use Helvetica Neue Light (OS X)?

2016-02-09 Thread Nicola

I am coming back to using ConTeXt after a relatively long hiatus,
so I am trying to re-learn old things and learn the new stuff.
Please bear with me.

I want to use OS X's Helvetica Neue Light in a document. How may
I do that?

I have tried:

\definefontfamily [myfamily] [serif] [Helvetica Neue Light]

but, fair enough, that results in `font with asked name 'unknown'
is not found`. If I use

\definefontfamily [myfamily] [serif] [Helvetica Neue]

then the document is typeset in Helvetica Neue, but in boldface.
Why? Using mtxrun, all the relevant files are found:

mtxrun --script fonts --list --all --pattern=neue*

helveticaneue   helveticaneuebold   
/System/Library/Fonts/HelveticaNeue.dfont  index: 13
helveticaneuebold   helveticaneuebold   
/System/Library/Fonts/HelveticaNeue.dfont  index: 13
helveticaneuedeskinterface  helveticaneuedeskinterfaceregular   
/System/Library/Fonts/HelveticaNeueDeskInterface.ttc   index:  9
helveticaneuedeskinterfacenormalhelveticaneuedeskinterfaceregular   
/System/Library/Fonts/HelveticaNeueDeskInterface.ttc   index:  9
helveticaneuedeskinterfaceregular   helveticaneuedeskinterfaceregular   
/System/Library/Fonts/HelveticaNeueDeskInterface.ttc   index:  9


How do I specify the font's weight?

Nicola


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___