>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
Angus> On Thursday 24 October 2002 4:17 pm, Andre Poenitz wrote: >> On Thu, Oct 24, 2002 at 05:11:40PM +0200, Dekel Tsur wrote: > On >> Thu, Oct 24, 2002 at 04:30:18PM +0200, Andre Poenitz > wrote: Here >> is a patch that tries to add xfonts to the font > path, only if it >> is needed, namely only if LyX tried to open > a math font and >> failed. >> >> Hm... maybe we should somehow make sure that it added jsut once. >> Like calling 'xset fp-' first? Angus> Or doing the equivalent of: Angus> lyxmathfontsdir=/usr/local/share/lyx-1.2.1/xfonts Angus> if [ -d $lyxmathfontsdir ]; then xset q | grep $lyxmathfontsdir Angus> if [ $? -ne 0 ]; then # directory is not already in the font Angus> path, so add it xset fp+ $lyxmathfontsdir; xset fp rehash fi fi This does not work when using a font server (like most linux distributions). Trying to look whether the directory is already in the load path is a bad idea IMO. Checking for the fonts as Dekel proposes is better. JMarc