![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
Hi, I can only load some fonts (like Fontin) that are in ~/texmf or ~/.fonts if I load it using the file: directive. The name: directive does not seem to work, even if the font is in ~/texmf directory. As a result a lot of my old documents (which generally use typescripts or simplefonts module by Wolfgang) have stopped working. I can fix things on a case by case basis, but I wonder if others are also facing similar problems and there is bug lurking somewhere that is platform dependent. I am using 2010.09.05 on linux-64. Aditya
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 8-9-2010 7:26, Aditya Mahajan wrote:
Hi,
I can only load some fonts (like Fontin) that are in ~/texmf or ~/.fonts if I load it using the file: directive. The name: directive does not seem to work, even if the font is in ~/texmf directory.
As a result a lot of my old documents (which generally use typescripts or simplefonts module by Wolfgang) have stopped working. I can fix things on a case by case basis, but I wonder if others are also facing similar problems and there is bug lurking somewhere that is platform dependent.
if you want named access, you need to add that path to the fontpath in your cnf as then it will be added to the font database (that database is not dynamicly adapting to trees that are scanned runtime) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Wed, 8 Sep 2010, Hans Hagen wrote:
On 8-9-2010 7:26, Aditya Mahajan wrote:
Hi,
I can only load some fonts (like Fontin) that are in ~/texmf or ~/.fonts if I load it using the file: directive. The name: directive does not seem to work, even if the font is in ~/texmf directory.
As a result a lot of my old documents (which generally use typescripts or simplefonts module by Wolfgang) have stopped working. I can fix things on a case by case basis, but I wonder if others are also facing similar problems and there is bug lurking somewhere that is platform dependent.
if you want named access, you need to add that path to the fontpath in your cnf as then it will be added to the font database (that database is not dynamicly adapting to trees that are scanned runtime)
The contextcnf.lua file contains TEXMFHOME = "$HOME/texmf", -- "tree:///$HOME/texmf .... TEXMF = "{$TEXMFHOME,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!$TEXMFCONTEXT,!!$TEXMFSYSTEM,!!$TEXMFMAIN}", .... OPENTYPEFONTS = ".;$TEXMF/fonts/{data,opentype}//;$OSFONTDIR", So, should I add two !! infront of $TEXMFHOME in $TEXMF (and $OSFFONTDIR in $OPENTYPEFONTS) to ensure that $TEXMFHOME and $OSFFONTDIR are scanned for names? Aditya
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 8-9-2010 8:51, Aditya Mahajan wrote:
TEXMF = "{$TEXMFHOME,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!$TEXMFCONTEXT,!!$TEXMFSYSTEM,!!$TEXMFMAIN}",
these are indeed the ones scanned
OPENTYPEFONTS = ".;$TEXMF/fonts/{data,opentype}//;$OSFONTDIR",
unless i'm wrong OSFONTDIR is scanned too (as are part in some configuration xml file when present) .. these paths are reported when you do mtxrun --script font --reload
So, should I add two !! infront of $TEXMFHOME in $TEXMF (and $OSFFONTDIR in $OPENTYPEFONTS) to ensure that $TEXMFHOME and $OSFFONTDIR are scanned for names?
indeed, !! will force scanning another option is to add $TEXMFHOME/fonts to OSFONTDIR Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Aditya Mahajan
-
Hans Hagen