* Accessing fonts
@ 2010-09-08 17:26 Aditya Mahajan
2010-09-08 18:39 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Aditya Mahajan @ 2010-09-08 17:26 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Accessing fonts
2010-09-08 17:26 Accessing fonts Aditya Mahajan
@ 2010-09-08 18:39 ` Hans Hagen
2010-09-08 18:51 ` Aditya Mahajan
0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2010-09-08 18:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Accessing fonts
2010-09-08 18:39 ` Hans Hagen
@ 2010-09-08 18:51 ` Aditya Mahajan
2010-09-09 21:58 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Aditya Mahajan @ 2010-09-08 18:51 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Accessing fonts
2010-09-08 18:51 ` Aditya Mahajan
@ 2010-09-09 21:58 ` Hans Hagen
0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2010-09-09 21:58 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-09-09 21:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-08 17:26 Accessing fonts Aditya Mahajan
2010-09-08 18:39 ` Hans Hagen
2010-09-08 18:51 ` Aditya Mahajan
2010-09-09 21:58 ` Hans Hagen
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).