diff options
Diffstat (limited to 'src/dot.cpp')
-rw-r--r-- | src/dot.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/dot.cpp b/src/dot.cpp index c745ef6..0b736b1 100644 --- a/src/dot.cpp +++ b/src/dot.cpp @@ -43,7 +43,8 @@ #define MAP_CMD "cmap" -#define FONTNAME "FreeSans" +//#define FONTNAME "FreeSans" +#define FONTNAME getDotFontName() //-------------------------------------------------------------------- @@ -76,6 +77,13 @@ static const char *edgeStyleMap[] = "dashed" // usage }; +static QCString getDotFontName() +{ + static QCString dotFontName = Config_getString("DOT_FONTNAME"); + if (dotFontName.isEmpty()) dotFontName="FreeSans"; + return dotFontName; +} + static void writeGraphHeader(QTextStream &t) { t << "digraph G" << endl; |