ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* fonts and luatex
@ 2008-04-13 11:14 Antoine Junod
  2008-04-13 11:33 ` Hans Hagen
  0 siblings, 1 reply; 19+ messages in thread
From: Antoine Junod @ 2008-04-13 11:14 UTC (permalink / raw)
  To: ntg-context

Hello, List!

Is it still needed to 'install' fonts with luatex and otf fonts or is
it enough to drop the otf font files in a random place inside
texmf/fonts/opentype/ ?

Thanks for your reply,
-AJ
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: fonts and luatex
  2008-04-13 11:14 fonts and luatex Antoine Junod
@ 2008-04-13 11:33 ` Hans Hagen
  2008-04-13 12:25   ` Antoine Junod
  2008-04-13 22:02   ` Olivier Guéry
  0 siblings, 2 replies; 19+ messages in thread
From: Hans Hagen @ 2008-04-13 11:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Antoine Junod wrote:
> Hello, List!
> 
> Is it still needed to 'install' fonts with luatex and otf fonts or is
> it enough to drop the otf font files in a random place inside
> texmf/fonts/opentype/ ?

dropping is enough; here i use:

	texmfwhatever/fonts/data/vendor/collection/[otf, afm, pfb]

don't forget

	luatools --generate


also if you wanted named access:

	mtxrun --script fonts --reload





-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: fonts and luatex
  2008-04-13 11:33 ` Hans Hagen
@ 2008-04-13 12:25   ` Antoine Junod
  2008-04-13 13:32     ` Hans Hagen
  2008-04-13 22:02   ` Olivier Guéry
  1 sibling, 1 reply; 19+ messages in thread
From: Antoine Junod @ 2008-04-13 12:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hans Hagen <pragma@wxs.nl> writes:

> Antoine Junod wrote:
>> Hello, List!
>> 
>> Is it still needed to 'install' fonts with luatex and otf fonts or
>> is it enough to drop the otf font files in a random place inside
>> texmf/fonts/opentype/ ?
>
> dropping is enough; here i use:
>
> 	texmfwhatever/fonts/data/vendor/collection/[otf, afm, pfb]
>
> don't forget
>
> 	luatools --generate
>
>
> also if you wanted named access:
>
> 	mtxrun --script fonts --reload

Wow, thanks a lot, it works fine with the font I'm trying to play with
(Adobe Brioso Pro).

What do you mean by 'named access'? For my testing purpose, I'm simply
using domthing like \definefont[brioso][BriosoPro-Regular at 12pt]

Thanks for the reply,
A+
-AJ
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: fonts and luatex
  2008-04-13 12:25   ` Antoine Junod
@ 2008-04-13 13:32     ` Hans Hagen
  0 siblings, 0 replies; 19+ messages in thread
From: Hans Hagen @ 2008-04-13 13:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Antoine Junod wrote:
> Hans Hagen <pragma@wxs.nl> writes:
> 
>> Antoine Junod wrote:
>>> Hello, List!
>>>
>>> Is it still needed to 'install' fonts with luatex and otf fonts or
>>> is it enough to drop the otf font files in a random place inside
>>> texmf/fonts/opentype/ ?
>> dropping is enough; here i use:
>>
>> 	texmfwhatever/fonts/data/vendor/collection/[otf, afm, pfb]
>>
>> don't forget
>>
>> 	luatools --generate
>>
>>
>> also if you wanted named access:
>>
>> 	mtxrun --script fonts --reload
> 
> Wow, thanks a lot, it works fine with the font I'm trying to play with
> (Adobe Brioso Pro).
> 
> What do you mean by 'named access'? For my testing purpose, I'm simply
> using domthing like \definefont[brioso][BriosoPro-Regular at 12pt]


\definefont[brioso][AdobeBriosoPro at 12pt]

or whatever mtxrun reports

 >mtxrun --script font --list --pattern=adobe 

adobeheitistd-regular   AdobeHeitiStd-Regular 
AdobeHeitiStd-Regular.otf
adobemyungjostd-medium  AdobeMyungjoStd-Medium 
AdobeMyungjoStd-Medium.otf
adobesongstd-light      AdobeSongStd-Light      AdobeSongStd-Light.otf 


and such

> Thanks for the reply,
> A+
> -AJ
> ___________________________________________________________________________________
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: fonts and luatex
  2008-04-13 11:33 ` Hans Hagen
  2008-04-13 12:25   ` Antoine Junod
@ 2008-04-13 22:02   ` Olivier Guéry
  2008-04-13 22:28     ` Hans Hagen
  2008-04-13 22:53     ` Arthur Reutenauer
  1 sibling, 2 replies; 19+ messages in thread
From: Olivier Guéry @ 2008-04-13 22:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

>  also if you wanted named access:
>
>         mtxrun --script fonts --reload

Maybe it's a solution to finely have linux-libertine run with context… :o)
But :
mtxrun --script fonts --reload
give me that : MtxRun | unknown script: fonts

and :
mtxrun --verbose --script fonts

MtxRun | version 1.0.2 - 2007+ - PRAGMA ADE / CONTEXT

MtxRun | loading configuration for /usr/share/texmf/web2c from
/tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da
MtxRun | locating list of /home/nemo/.texmf-config
MtxRun | locating list of /home/nemo/.texmf-var
MtxRun | locating list of /home/nemo/texmf
MtxRun | locating list of /etc/texmf
MtxRun | locating list of /var/lib/texmf
MtxRun | locating list of /usr/share/texmf
MtxRun | locating list of /usr/share/texmf
MtxRun | locating list of /usr/share/texmf-texlive
MtxRun | loading files for /home/nemo/.texmf-config from
/tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/4f780d43d10fd80754205f2eed71b206
MtxRun | loading files for /home/nemo/.texmf-var from
/tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/d220bc51e31cc1c58d3ad6c104d83111
MtxRun | loading files for /etc/texmf from
/tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/76f9d14d3870a3ca17c588db81902d3d
MtxRun | loading files for /var/lib/texmf from
/tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/49ce9fb6981e7315a79363280fdfe510
MtxRun | loading files for /usr/share/texmf from
/tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/0638a6bb4aac17125bf8bd1aa29dc0c8
MtxRun | loading files for /usr/share/texmf from
/tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/0638a6bb4aac17125bf8bd1aa29dc0c8
MtxRun | loading files for /usr/share/texmf-texlive from
/tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/3187e2337ee4b2115b66aeca116ccb56
MtxRun | unknown script: fonts


Where's the problem ?

best regards,
Olivier.



-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
Olivier nemolivier@gmail.com http://nemolivier.blogspot.com
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: fonts and luatex
  2008-04-13 22:02   ` Olivier Guéry
@ 2008-04-13 22:28     ` Hans Hagen
  2008-04-14  0:00       ` Yue Wang
  2008-04-13 22:53     ` Arthur Reutenauer
  1 sibling, 1 reply; 19+ messages in thread
From: Hans Hagen @ 2008-04-13 22:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Olivier Guéry wrote:
>>  also if you wanted named access:
>>
>>         mtxrun --script fonts --reload
> 
> Maybe it's a solution to finely have linux-libertine run with context… :o)
> But :
> mtxrun --script fonts --reload
> give me that : MtxRun | unknown script: fonts
> 
> and :
> mtxrun --verbose --script fonts
> 
> MtxRun | version 1.0.2 - 2007+ - PRAGMA ADE / CONTEXT
> 
> MtxRun | loading configuration for /usr/share/texmf/web2c from
> /tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da
> MtxRun | locating list of /home/nemo/.texmf-config
> MtxRun | locating list of /home/nemo/.texmf-var
> MtxRun | locating list of /home/nemo/texmf

what strange paths: these periods

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: fonts and luatex
  2008-04-13 22:02   ` Olivier Guéry
  2008-04-13 22:28     ` Hans Hagen
@ 2008-04-13 22:53     ` Arthur Reutenauer
  1 sibling, 0 replies; 19+ messages in thread
From: Arthur Reutenauer @ 2008-04-13 22:53 UTC (permalink / raw)
  To: Mailing list for ConTeXt users

> Where's the problem ?

  You haven't configured ConTeXt correctly.  Where is your ConTeXt tree?
It should be found by luatools (does luatools mtx-fonts.lua return
something useful?)

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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: fonts and luatex
  2008-04-13 22:28     ` Hans Hagen
@ 2008-04-14  0:00       ` Yue Wang
  2008-04-14  9:38         ` Olivier Guéry
  0 siblings, 1 reply; 19+ messages in thread
From: Yue Wang @ 2008-04-14  0:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 4/14/08, Hans Hagen <pragma@wxs.nl> wrote:
> Olivier Guéry wrote:
> >>  also if you wanted named access:
> >>
> >>         mtxrun --script fonts --reload
> >
> > Maybe it's a solution to finely have linux-libertine run with context… :o)
> > But :
> > mtxrun --script fonts --reload
> > give me that : MtxRun | unknown script: fonts
> >
> > and :
> > mtxrun --verbose --script fonts
> >
> > MtxRun | version 1.0.2 - 2007+ - PRAGMA ADE / CONTEXT
> >
> > MtxRun | loading configuration for /usr/share/texmf/web2c from
> > /tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da
> > MtxRun | locating list of /home/nemo/.texmf-config
> > MtxRun | locating list of /home/nemo/.texmf-var
> > MtxRun | locating list of /home/nemo/texmf
>
> what strange paths: these periods

Umm.. most linux distribution ship texlive like this.  It's common.
Just like TeXlive use ~/.texlive2007

>
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>      tel: 038 477 53 69 | fax: 038 477 53 74 | 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: fonts and luatex
  2008-04-14  0:00       ` Yue Wang
@ 2008-04-14  9:38         ` Olivier Guéry
  2008-04-14  9:49           ` Wolfgang Schuster
  2008-04-14 12:16           ` Mojca Miklavec
  0 siblings, 2 replies; 19+ messages in thread
From: Olivier Guéry @ 2008-04-14  9:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Apr 14, 2008 at 2:00 AM, Yue Wang <yuleopen@gmail.com> wrote:
> On 4/14/08, Hans Hagen <pragma@wxs.nl> wrote:
>  > Olivier Guéry wrote:
>  > >>  also if you wanted named access:
>  > >>
>  > >>         mtxrun --script fonts --reload
>  > >
>  > > Maybe it's a solution to finely have linux-libertine run with context… :o)
>  > > But :
>  > > mtxrun --script fonts --reload
>  > > give me that : MtxRun | unknown script: fonts
>  > >
>  > > and :
>  > > mtxrun --verbose --script fonts
>  > >
>  > > MtxRun | version 1.0.2 - 2007+ - PRAGMA ADE / CONTEXT
>  > >
>  > > MtxRun | loading configuration for /usr/share/texmf/web2c from
>  > > /tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da
>  > > MtxRun | locating list of /home/nemo/.texmf-config
>  > > MtxRun | locating list of /home/nemo/.texmf-var
>  > > MtxRun | locating list of /home/nemo/texmf
>  >
>  > what strange paths: these periods
>
>  Umm.. most linux distribution ship texlive like this.  It's common.
>  Just like TeXlive use ~/.texlive2007

Hello, (damn, installation problem again, sorry for this).

I'm using a local install in /usr/share/texmf/ on my Ubuntu Hardy — no
recent package of Context in hardy… sad :o(.
My TeX install is a texlive-2007-13 from ubuntu packages.

In my ~/.bashrc I put this :

export MYTEXMF=/usr/share/texmf
export TEXMFCNF=$MYTEXMF/web2c
export TEXMFCACHE=/tmp
export TEXMFLOCAL=/usr/share/texmf
export LUAINPUTS=$MYTEXMF/tex/context/base:$MYTEXMF/script/context/lua
export OSFONTDIR=/usr/share/fonts/otf

The TEXMFCACHE  used to be « export TEXMFCACHE=$HOME/.texmf-cache »
two weeks ago (but when I change to /tmp, i removed this cached
file…).

My luatools and mtxrun are links from /usr/bin/ to
/usr/share/texmf/scripts/conteyt/lua/ :
luatool -> /usr/share/texmf/scripts/context/lua/luatools.lua and
mtxran -> /usr/share/texmf/scripts/context/lua/mtxrun.lua

When I update, I run :

texexec --make --all --pdftex
texexec --make --all --xetex
luatools --generate
luatools --ini --compile --verbose cont-en
texexec --make --all --lua

Do you need the outputs ? They seems to run fine, but it's not realy
readable for me…

I can run context, but some otf fonts can't be find, like the nice
linuxlibertine, for exemple (context used to find it with xetex).

Cheers,
Olivier.

-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
Olivier nemolivier@gmail.com http://nemolivier.blogspot.com
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: fonts and luatex
  2008-04-14  9:38         ` Olivier Guéry
@ 2008-04-14  9:49           ` Wolfgang Schuster
  2008-04-14 10:15             ` Olivier Guéry
  2008-04-14 12:16           ` Mojca Miklavec
  1 sibling, 1 reply; 19+ messages in thread
From: Wolfgang Schuster @ 2008-04-14  9:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Apr 14, 2008 at 11:38 AM, Olivier Guéry <nemolivier@gmail.com> wrote:
> On Mon, Apr 14, 2008 at 2:00 AM, Yue Wang <yuleopen@gmail.com> wrote:
> > On 4/14/08, Hans Hagen <pragma@wxs.nl> wrote:
> >  > Olivier Guéry wrote:
> >  > >>  also if you wanted named access:
> >  > >>
> >  > >>         mtxrun --script fonts --reload
> >  > >
> >  > > Maybe it's a solution to finely have linux-libertine run with context… :o)
> >  > > But :
> >  > > mtxrun --script fonts --reload
> >  > > give me that : MtxRun | unknown script: fonts
> >  > >
> >  > > and :
> >  > > mtxrun --verbose --script fonts
> >  > >
> >  > > MtxRun | version 1.0.2 - 2007+ - PRAGMA ADE / CONTEXT
> >  > >
> >  > > MtxRun | loading configuration for /usr/share/texmf/web2c from
> >  > > /tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da
> >  > > MtxRun | locating list of /home/nemo/.texmf-config
> >  > > MtxRun | locating list of /home/nemo/.texmf-var
> >  > > MtxRun | locating list of /home/nemo/texmf
> >  >
> >  > what strange paths: these periods
> >
> >  Umm.. most linux distribution ship texlive like this.  It's common.
> >  Just like TeXlive use ~/.texlive2007
>
> Hello, (damn, installation problem again, sorry for this).
>
> I'm using a local install in /usr/share/texmf/ on my Ubuntu Hardy — no
> recent package of Context in hardy… sad :o(.
> My TeX install is a texlive-2007-13 from ubuntu packages.
>
> In my ~/.bashrc I put this :
>
> export MYTEXMF=/usr/share/texmf
> export TEXMFCNF=$MYTEXMF/web2c
> export TEXMFCACHE=/tmp
> export TEXMFLOCAL=/usr/share/texmf
> export LUAINPUTS=$MYTEXMF/tex/context/base:$MYTEXMF/script/context/lua
> export OSFONTDIR=/usr/share/fonts/otf
>
> The TEXMFCACHE  used to be « export TEXMFCACHE=$HOME/.texmf-cache »
> two weeks ago (but when I change to /tmp, i removed this cached
> file…).
>
> My luatools and mtxrun are links from /usr/bin/ to
> /usr/share/texmf/scripts/conteyt/lua/ :
> luatool -> /usr/share/texmf/scripts/context/lua/luatools.lua and
> mtxran -> /usr/share/texmf/scripts/context/lua/mtxrun.lua
>
> When I update, I run :
>
> texexec --make --all --pdftex
> texexec --make --all --xetex
> luatools --generate
> luatools --ini --compile --verbose cont-en
> texexec --make --all --lua
>
> Do you need the outputs ? They seems to run fine, but it's not realy
> readable for me…
>
> I can run context, but some otf fonts can't be find, like the nice
> linuxlibertine, for exemple (context used to find it with xetex).

Can you use the TeX-Gyre Fonts, try the following example

% engine=luatex

\usetypescript[palatino]
\setupbodyfont[palatino]

\starttext
Hello Text!
\stoptext

If this did work send your typescript for the linux libertine 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: fonts and luatex
  2008-04-14  9:49           ` Wolfgang Schuster
@ 2008-04-14 10:15             ` Olivier Guéry
  2008-04-14 11:28               ` Wolfgang Schuster
  0 siblings, 1 reply; 19+ messages in thread
From: Olivier Guéry @ 2008-04-14 10:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Apr 14, 2008 at 11:49 AM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
>
> On Mon, Apr 14, 2008 at 11:38 AM, Olivier Guéry <nemolivier@gmail.com> wrote:
>  > On Mon, Apr 14, 2008 at 2:00 AM, Yue Wang <yuleopen@gmail.com> wrote:
>  > > On 4/14/08, Hans Hagen <pragma@wxs.nl> wrote:
>  > >  > Olivier Guéry wrote:
>  > >  > >>  also if you wanted named access:
>  > >  > >>
>  > >  > >>         mtxrun --script fonts --reload
>  > >  > >
>  > >  > > Maybe it's a solution to finely have linux-libertine run with context… :o)
>  > >  > > But :
>  > >  > > mtxrun --script fonts --reload
>  > >  > > give me that : MtxRun | unknown script: fonts
>  > >  > >
>  > >  > > and :
>  > >  > > mtxrun --verbose --script fonts
>  > >  > >
>  > >  > > MtxRun | version 1.0.2 - 2007+ - PRAGMA ADE / CONTEXT
>  > >  > >
>  > >  > > MtxRun | loading configuration for /usr/share/texmf/web2c from
>  > >  > > /tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da
>  > >  > > MtxRun | locating list of /home/nemo/.texmf-config
>  > >  > > MtxRun | locating list of /home/nemo/.texmf-var
>  > >  > > MtxRun | locating list of /home/nemo/texmf
>  > >  >
>  > >  > what strange paths: these periods
>  > >
>  > >  Umm.. most linux distribution ship texlive like this.  It's common.
>  > >  Just like TeXlive use ~/.texlive2007
>  >
>  > Hello, (damn, installation problem again, sorry for this).
>  >
>  > I'm using a local install in /usr/share/texmf/ on my Ubuntu Hardy — no
>  > recent package of Context in hardy… sad :o(.
>  > My TeX install is a texlive-2007-13 from ubuntu packages.
>  >
>  > In my ~/.bashrc I put this :
>  >
>  > export MYTEXMF=/usr/share/texmf
>  > export TEXMFCNF=$MYTEXMF/web2c
>  > export TEXMFCACHE=/tmp
>  > export TEXMFLOCAL=/usr/share/texmf
>  > export LUAINPUTS=$MYTEXMF/tex/context/base:$MYTEXMF/script/context/lua
>  > export OSFONTDIR=/usr/share/fonts/otf
>  >
>  > The TEXMFCACHE  used to be « export TEXMFCACHE=$HOME/.texmf-cache »
>  > two weeks ago (but when I change to /tmp, i removed this cached
>  > file…).
>  >
>  > My luatools and mtxrun are links from /usr/bin/ to
>  > /usr/share/texmf/scripts/conteyt/lua/ :
>  > luatool -> /usr/share/texmf/scripts/context/lua/luatools.lua and
>  > mtxran -> /usr/share/texmf/scripts/context/lua/mtxrun.lua
>  >
>  > When I update, I run :
>  >
>  > texexec --make --all --pdftex
>  > texexec --make --all --xetex
>  > luatools --generate
>  > luatools --ini --compile --verbose cont-en
>  > texexec --make --all --lua
>  >
>  > Do you need the outputs ? They seems to run fine, but it's not realy
>  > readable for me…
>  >
>  > I can run context, but some otf fonts can't be find, like the nice
>  > linuxlibertine, for exemple (context used to find it with xetex).
>
>  Can you use the TeX-Gyre Fonts, try the following example

All the tex-gyre run well.

>  % engine=luatex
>
>  \usetypescript[palatino]
>  \setupbodyfont[palatino]
>
>  \starttext
>  Hello Text!
>  \stoptext
>
>  If this did work send your typescript for the linux libertine fonts.

Yes, it work. What do you mean by « typescript » ? For calling linux
libertine, I tried this :
\definefontsynonym [LinLibertine] [LinLibertineC_Re]
\definedfont [LinLibertine at 12pt]
and this :
\definefontsynonym [LinLibertine] [name:LinLibertineO]
\definedfont [LinLibertine at 12pt]
nothing work.

I get the name with otfinfo -i
I don't creat a special file for using LinLibertine… but other fonts
like the free Tally[1] run well.
Sorry but fonts use are still strange for me…

If I understand well, if mtxrun can't build a « database » with my
fonts, names can't work ?

Olivier.

[1] http://www.josbuivenga.demon.nl/tallys.html
-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
Olivier nemolivier@gmail.com http://nemolivier.blogspot.com
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: fonts and luatex
  2008-04-14 10:15             ` Olivier Guéry
@ 2008-04-14 11:28               ` Wolfgang Schuster
  0 siblings, 0 replies; 19+ messages in thread
From: Wolfgang Schuster @ 2008-04-14 11:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> >  > I can run context, but some otf fonts can't be find, like the nice
> >  > linuxlibertine, for exemple (context used to find it with xetex).
> >
> >  Can you use the TeX-Gyre Fonts, try the following example
>
> All the tex-gyre run well.
>
> >  % engine=luatex
> >
> >  \usetypescript[palatino]
> >  \setupbodyfont[palatino]
> >
> >  \starttext
> >  Hello Text!
> >  \stoptext
> >
> >  If this did work send your typescript for the linux libertine fonts.
>
> Yes, it work. What do you mean by « typescript » ? For calling linux
> libertine, I tried this :
> \definefontsynonym [LinLibertine] [LinLibertineC_Re]
> \definedfont [LinLibertine at 12pt]
> and this :
> \definefontsynonym [LinLibertine] [name:LinLibertineO]

file:filename should normally work

> \definedfont [LinLibertine at 12pt]
> nothing work.
>
> I get the name with otfinfo -i
> I don't creat a special file for using LinLibertine… but other fonts
> like the free Tally[1] run well.
> Sorry but fonts use are still strange for me…
>
> If I understand well, if mtxrun can't build a « database » with my
> fonts, names can't work ?

Can't test this at the moment with the font names but you could try
my typescripts with the filenames.

\starttypescript [serif] [linuxlibertine]
  \setups[font:fallback:serif]
  \definefontsynonym [Serif]           [LinLibertine-Regular]
  \definefontsynonym [SerifBold]       [LinLibertine-Bold]
  \definefontsynonym [SerifItalic]     [LinLibertine-Italic]
  \definefontsynonym [SerifBoldItalic] [LinLibertine-BoldItalic]
  \definefontsynonym [SerifCaps]       [LinLibertine-Caps]
\stoptypescript

\starttypescript [serif] [linuxlibertine]
  \definefontsynonym [LinLibertine-Regular]
[file:LinLibertine_Re-2.7.9.9] [features=default]
  \definefontsynonym [LinLibertine-Bold]
[file:LinLibertine_Bd-2.7.8]   [features=default]
  \definefontsynonym [LinLibertine-Italic]
[file:LinLibertine_It-2.7.8]   [features=default]
  \definefontsynonym [LinLibertine-BoldItalic]
[file:LinLibertine_BI-2.7.2]   [features=default]
  \definefontsynonym [LinLibertine-Caps]
[file:LinLibertineC_Re-2.7.3]  [features=default]
\stoptypescript

\starttypescript [linuxlibertine]
  \definetypeface [\typescriptone] [rm] [serif] [linuxlibertine] [default]
\stoptypescript


\usetypescript[linuxlibertine]
\setupbodyfont[linuxlibertine]

\starttext
Text in Linux Libertine.
\stoptext

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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: fonts and luatex
  2008-04-14  9:38         ` Olivier Guéry
  2008-04-14  9:49           ` Wolfgang Schuster
@ 2008-04-14 12:16           ` Mojca Miklavec
  2008-04-14 13:32             ` Hans Hagen
  1 sibling, 1 reply; 19+ messages in thread
From: Mojca Miklavec @ 2008-04-14 12:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Apr 14, 2008 at 11:38 AM, Olivier Guéry wrote:
>
>  I can run context, but some otf fonts can't be find, like the nice
>  linuxlibertine, for exemple (context used to find it with xetex).

Hello Oliver,

XeTeX finds fonts using fc-config, and fc-config usually knows about
all your system-wide-installed fonts, while you first need to tell
LuaTeX where your fonts reside. (LuaTeX is not aware of any
system-specific folders.)

You might need something like
    export OSFONTDIR=/Library/Fonts
pointing to the folder where your font resides. Once you set that, you
need to run several commands to update font cache. I'm not 100% sure
which ones are really needed (I usually try guessing until it starts
working or delete the cache :) - but just follow Hans' comments
earlier in the thread. (luatools --generate, mtxrun --script fonts
--reload etc.)

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

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: fonts and luatex
  2008-04-14 12:16           ` Mojca Miklavec
@ 2008-04-14 13:32             ` Hans Hagen
  2008-04-14 15:37               ` Olivier Guéry
  2008-04-14 16:32               ` Arthur Reutenauer
  0 siblings, 2 replies; 19+ messages in thread
From: Hans Hagen @ 2008-04-14 13:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Mojca Miklavec wrote:
> On Mon, Apr 14, 2008 at 11:38 AM, Olivier Guéry wrote:
>>  I can run context, but some otf fonts can't be find, like the nice
>>  linuxlibertine, for exemple (context used to find it with xetex).
> 
> Hello Oliver,
> 
> XeTeX finds fonts using fc-config, and fc-config usually knows about
> all your system-wide-installed fonts, while you first need to tell
> LuaTeX where your fonts reside. (LuaTeX is not aware of any
> system-specific folders.)

indeed, and i'm not going to hard code paths

> You might need something like
>     export OSFONTDIR=/Library/Fonts

right, at least on windows this works

(i think that i wrote a fc-whatever parser but then one needs to tell 
where it lives etc etc)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: fonts and luatex
  2008-04-14 13:32             ` Hans Hagen
@ 2008-04-14 15:37               ` Olivier Guéry
  2008-04-14 16:32               ` Arthur Reutenauer
  1 sibling, 0 replies; 19+ messages in thread
From: Olivier Guéry @ 2008-04-14 15:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I have this : export OSFONTDIR=/usr/share/fonts/otf in my .bashrc.
And I put a copy in the same directory than the texgyre.

The mtxrun problem is strange, do you have an explanation ?
Olivier.
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: fonts and luatex
  2008-04-14 13:32             ` Hans Hagen
  2008-04-14 15:37               ` Olivier Guéry
@ 2008-04-14 16:32               ` Arthur Reutenauer
  2008-04-14 17:43                 ` Hans Hagen
  1 sibling, 1 reply; 19+ messages in thread
From: Arthur Reutenauer @ 2008-04-14 16:32 UTC (permalink / raw)
  To: Mailing list for ConTeXt users

> (i think that i wrote a fc-whatever parser but then one needs to tell 
> where it lives etc etc)

  If fontconfig is correctly installed, you shouldn't need to do
anything special: only run fc-list / configure fontconfig the normal way
(probably by editing things like /etc/fonts/local.conf).

  This certainly is a good idea; I thought about it myself.  It could
“unify” font searching with XeTeX (although it won't make the overall
system easier to understand!).

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

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: fonts and luatex
  2008-04-14 16:32               ` Arthur Reutenauer
@ 2008-04-14 17:43                 ` Hans Hagen
  2008-04-14 23:09                   ` Mojca Miklavec
  0 siblings, 1 reply; 19+ messages in thread
From: Hans Hagen @ 2008-04-14 17:43 UTC (permalink / raw)
  To: Mailing list for ConTeXt users

Arthur Reutenauer wrote:
>> (i think that i wrote a fc-whatever parser but then one needs to tell 
>> where it lives etc etc)

it's rather trivial to support it

>   If fontconfig is correctly installed, you shouldn't need to do
> anything special: only run fc-list / configure fontconfig the normal way
> (probably by editing things like /etc/fonts/local.conf).

well, we only need the path in mkiv; personally i prefer setting an env 
var instead of editing yet another configuration file

>   This certainly is a good idea; I thought about it myself.  It could
> “unify” font searching with XeTeX (although it won't make the overall
> system easier to understand!).

i'll upload a beta that looks at the file; the relevant code is in 
font-syn; i.e. only named fonts will be seen because the file is not 
consulted otherwise

     local name = fonts.names.xml_configuration_file
     if name and not name == "" then
         local name = input.find_file(instance,name,"other")
         if name ~= "" then
             collect(xml.collect_texts(xml.load(name),"dir",true))
         end
     end

i'm wondering ... if a name is not found, i can regenerate the database 
at runtime. i had that for a while; maybe i should reinstate that

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: fonts and luatex
  2008-04-14 17:43                 ` Hans Hagen
@ 2008-04-14 23:09                   ` Mojca Miklavec
  2008-04-15  8:32                     ` Hans Hagen
  0 siblings, 1 reply; 19+ messages in thread
From: Mojca Miklavec @ 2008-04-14 23:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Apr 14, 2008 at 7:43 PM, Hans Hagen wrote:

>  i'm wondering ... if a name is not found, i can regenerate the database
>  at runtime. i had that for a while; maybe i should reinstate that

This sounds reasonable. If user is asking for non-existing font, he
can be punished a bit (by a longer compile time) for providing the
wrong name, and if he has just installed a new font, that behaviour is
desirable anyway.

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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: fonts and luatex
  2008-04-14 23:09                   ` Mojca Miklavec
@ 2008-04-15  8:32                     ` Hans Hagen
  0 siblings, 0 replies; 19+ messages in thread
From: Hans Hagen @ 2008-04-15  8:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Mojca Miklavec wrote:
> On Mon, Apr 14, 2008 at 7:43 PM, Hans Hagen wrote:
> 
>>  i'm wondering ... if a name is not found, i can regenerate the database
>>  at runtime. i had that for a while; maybe i should reinstate that
> 
> This sounds reasonable. If user is asking for non-existing font, he
> can be punished a bit (by a longer compile time) for providing the
> wrong name, and if he has just installed a new font, that behaviour is
> desirable anyway.

i now have

fonts.names.autoreload = toboolean(os.env['MTX.FONTS.AUTOLOAD'] or 
os.env['MTX_FONTS_AUTOLOAD'] or "no")

so, one can configure it

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2008-04-15  8:32 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-13 11:14 fonts and luatex Antoine Junod
2008-04-13 11:33 ` Hans Hagen
2008-04-13 12:25   ` Antoine Junod
2008-04-13 13:32     ` Hans Hagen
2008-04-13 22:02   ` Olivier Guéry
2008-04-13 22:28     ` Hans Hagen
2008-04-14  0:00       ` Yue Wang
2008-04-14  9:38         ` Olivier Guéry
2008-04-14  9:49           ` Wolfgang Schuster
2008-04-14 10:15             ` Olivier Guéry
2008-04-14 11:28               ` Wolfgang Schuster
2008-04-14 12:16           ` Mojca Miklavec
2008-04-14 13:32             ` Hans Hagen
2008-04-14 15:37               ` Olivier Guéry
2008-04-14 16:32               ` Arthur Reutenauer
2008-04-14 17:43                 ` Hans Hagen
2008-04-14 23:09                   ` Mojca Miklavec
2008-04-15  8:32                     ` Hans Hagen
2008-04-13 22:53     ` Arthur Reutenauer

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