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
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 -----------------------------------------------------------------
Hans Hagen
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
Antoine Junod wrote:
Hans Hagen
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 -----------------------------------------------------------------
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
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 -----------------------------------------------------------------
On 4/14/08, Hans Hagen
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 ___________________________________________________________________________________
On Mon, Apr 14, 2008 at 2:00 AM, Yue Wang
On 4/14/08, Hans Hagen
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
On Mon, Apr 14, 2008 at 11:38 AM, Olivier Guéry
On Mon, Apr 14, 2008 at 2:00 AM, Yue Wang
wrote: On 4/14/08, Hans Hagen
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
On Mon, Apr 14, 2008 at 11:49 AM, Wolfgang Schuster
On Mon, Apr 14, 2008 at 11:38 AM, Olivier Guéry
wrote: On Mon, Apr 14, 2008 at 2:00 AM, Yue Wang
wrote: On 4/14/08, Hans Hagen
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
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
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
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 -----------------------------------------------------------------
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.
(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
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 -----------------------------------------------------------------
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
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 -----------------------------------------------------------------
participants (7)
-
Antoine Junod
-
Arthur Reutenauer
-
Hans Hagen
-
Mojca Miklavec
-
Olivier Guéry
-
Wolfgang Schuster
-
Yue Wang