summaryrefslogtreecommitdiffstats
path: root/src/dot.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2008-03-25 18:42:56 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2008-03-25 18:42:56 (GMT)
commit238c63a16c820818ba71ae256f3f50eed2a94cf2 (patch)
treeac946941d432585f18f08ee563fec2f48faae1de /src/dot.cpp
parentf630007a569f8342ada7b2ecf06692353ddbce3c (diff)
downloadDoxygen-238c63a16c820818ba71ae256f3f50eed2a94cf2.zip
Doxygen-238c63a16c820818ba71ae256f3f50eed2a94cf2.tar.gz
Doxygen-238c63a16c820818ba71ae256f3f50eed2a94cf2.tar.bz2
Release-1.5.5-20080325
Diffstat (limited to 'src/dot.cpp')
-rw-r--r--src/dot.cpp10
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;