diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2008-03-25 18:42:56 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2008-03-25 18:42:56 (GMT) |
commit | c6c19d2984bfd7265b6d5f82336c991ec35727da (patch) | |
tree | ac946941d432585f18f08ee563fec2f48faae1de /src/config.l | |
parent | 5b23c9573e3e7925987dc706c17357d54f517e40 (diff) | |
download | Doxygen-c6c19d2984bfd7265b6d5f82336c991ec35727da.zip Doxygen-c6c19d2984bfd7265b6d5f82336c991ec35727da.tar.gz Doxygen-c6c19d2984bfd7265b6d5f82336c991ec35727da.tar.bz2 |
Release-1.5.5-20080325
Diffstat (limited to 'src/config.l')
-rw-r--r-- | src/config.l | 37 |
1 files changed, 31 insertions, 6 deletions
diff --git a/src/config.l b/src/config.l index 7d61563..7f116c2 100644 --- a/src/config.l +++ b/src/config.l @@ -1250,14 +1250,22 @@ void Config::check() if (Config_getBool("HAVE_DOT")) { - QCString curFontPath = portable_getenv("DOTFONTPATH"); - QCString newFontPath = "."; - if (!curFontPath.isEmpty()) + QCString curFontPath = Config_getString("DOT_FONTPATH"); + if (curFontPath.isEmpty()) + { + portable_getenv("DOTFONTPATH"); + QCString newFontPath = "."; + if (!curFontPath.isEmpty()) + { + newFontPath+=portable_pathListSeparator(); + newFontPath+=curFontPath; + } + portable_setenv("DOTFONTPATH",newFontPath); + } + else { - newFontPath+=portable_pathListSeparator(); - newFontPath+=curFontPath; + portable_setenv("DOTFONTPATH",curFontPath); } - portable_setenv("DOTFONTPATH",newFontPath); } if (Config_getBool("OPTIMIZE_OUTPUT_JAVA") && Config_getBool("INLINE_INFO")) @@ -2933,6 +2941,23 @@ void Config::create() "have no effect if this option is set to NO (the default) \n", FALSE ); + cs = addString( "DOT_FONTNAME", + "By default doxygen will write a font called FreeSans.ttf to the output \n" + "directory and reference it in all dot files that doxygen generates. This \n" + "font does not include all possible unicode characters however, so when you need \n" + "these (or just want a differently looking font) you can specify the font name \n" + "using DOT_FONTNAME. You need need to make sure dot is able to find the font, \n" + "which can be done by putting it in a standard location or by setting the \n" + "DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory \n" + "containing the font. \n" + ); + cs->setDefaultValue("FreeSans"); + cs = addString( "DOT_FONTPATH", + "By default doxygen will tell dot to use the output directory to look for the \n" + "FreeSans.ttf font (which doxygen will put there itself). If you specify a \n" + "different font using DOT_FONTNAME you can set the path where dot \n" + "can find it using this tag. \n" + ); cb = addBool( "CLASS_GRAPH", "If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen \n" |