> It appears that groff doesn't pass the command line font directories
> on directly but rather sets an environment variable
> ($GROFF_FONT_PATH).

This is correct.

> That variable does seem to be set correctly for both grn and troff,
> but they don't seem to be paying any attention to it.

Strange.  The function font::load_desc (in font.cpp) calls
font::open_file (in fontfile.cpp) which in turn calls
font_path.open_file, where font_path is a search_path which explicitly
uses $GROFF_FONT_PATH.  Looking into searchpatch.cpp you can see that
search_path::search_path loads the contents of GROFF_FONT_PATH with
getenv.  Please insert some code there to print the value of
GROFF_FONT_PATH to stderr.

All mentioned files are in src/libs/libgroff.


    Werner


_______________________________________________
Groff mailing list
Groff@gnu.org
http://lists.gnu.org/mailman/listinfo/groff

Reply via email to