Index: scfonts.cpp
===================================================================
RCS file: /cvs/Scribus/scribus/scfonts.cpp,v
retrieving revision 1.15.2.23
diff -u -r1.15.2.23 scfonts.cpp
--- scfonts.cpp	8 Jul 2005 17:31:36 -0000	1.15.2.23
+++ scfonts.cpp	10 Jul 2005 22:26:40 -0000
@@ -40,6 +40,10 @@
 #include <fontconfig/fontconfig.h>
 #endif
 
+#ifdef _WIN32
+#include "scpaths.h"
+#endif
+
 #include "util.h"
 
 #include FT_INTERNAL_STREAM_H
@@ -910,6 +914,10 @@
 	for(QStrListIterator fpi(FontPath) ; fpi.current() ; ++fpi)
 		AddScalableFonts(fpi.current());
 	AddFontconfigFonts();
+#ifdef _WIN32
+	if( FontPath.count() == 0 )
+		AddScalableFonts( ScPaths::getSystemFontDir(false) );
+#endif
 #else
 // if FreeType thinks we are on Mac, let it search the default paths
 #if FT_MACINTOSH
@@ -917,6 +925,8 @@
 	AddScalableFonts("/Library/Fonts/");
 	AddScalableFonts("/Network/Library/Fonts/");
 	AddScalableFonts("/System/Library/Fonts/");
+#elif defined(_WIN32)
+	AddScalableFonts( ScPaths::getSystemFontDir(false) );
 #endif
 // on X11 look there:
 #ifdef Q_WS_X11
Index: scpaths.cpp
===================================================================
RCS file: /cvs/Scribus/scribus/Attic/scpaths.cpp,v
retrieving revision 1.1.2.5
diff -u -r1.1.2.5 scpaths.cpp
--- scpaths.cpp	6 Jul 2005 20:07:15 -0000	1.1.2.5
+++ scpaths.cpp	10 Jul 2005 22:35:46 -0000
@@ -10,6 +10,11 @@
 #include <CoreFoundation/CoreFoundation.h>
 #endif
 
+#ifdef _WIN32
+#include <windows.h>
+#include <shlobj.h>
+#endif
+
 // Init the singleton's "self" address to NULL
 ScPaths* ScPaths::m_instance = NULL;
 
@@ -90,7 +95,17 @@
 	qDebug(QString("scpaths: plugin dir=%1").arg(m_pluginDir));
 	qDebug(QString("scpaths: qtplugins=%1").arg(QApplication::libraryPaths().join(":")));
 */
-#endif // defined(BUILD_MAC_BUNDLE)
+#elif defined( _WIN32 )
+	QString appPath = qApp->applicationDirPath();
+	m_shareDir = strdup(QString("%1/share/").arg(appPath));
+	m_docDir = strdup(QString("%1/share/doc/").arg(appPath));
+	m_iconDir = strdup(QString("%1/share/icons/").arg(appPath));
+	m_sampleScriptDir = strdup(QString("%1/share/samples/").arg(appPath));
+	m_scriptDir = strdup(QString("%1/share/scripts/").arg(appPath));
+	m_templateDir = strdup(QString("%1/share/templates/").arg(appPath));
+	m_libDir = strdup(QString("%1/libs/").arg(appPath));
+	m_pluginDir = strdup(QString("%1/plugins/").arg(appPath));
+#endif
 }
 
 ScPaths::~ScPaths() {};
@@ -134,3 +149,34 @@
 {
 	return m_shareDir;
 }
+
+#if defined (_WIN32)
+
+QString ScPaths::getAppDataDir(bool useSlashs)
+{
+	return getSpecialDir(CSIDL_APPDATA, useSlashs);
+}
+
+QString ScPaths::getMyDocumentDir(bool useSlashs)
+{
+	return getSpecialDir(CSIDL_PERSONAL, useSlashs);
+}
+
+QString ScPaths::getSystemFontDir(bool useSlashs)
+{
+	return getSpecialDir(CSIDL_FONTS, useSlashs);
+}
+
+QString ScPaths::getSpecialDir(int folder, bool useSlashs)
+{
+ char dir[256];
+	SHGetSpecialFolderPath(NULL, dir, folder , false);
+	QString qstr(dir);
+	if( !qstr.endsWith("\\") )
+		qstr += "\\";
+	if(useSlashs) 
+		qstr.replace( '\\', '/' );
+	return qstr;
+}
+
+#endif
Index: scpaths.h
===================================================================
RCS file: /cvs/Scribus/scribus/Attic/scpaths.h,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 scpaths.h
--- scpaths.h	6 Jul 2005 20:07:16 -0000	1.1.2.2
+++ scpaths.h	10 Jul 2005 22:36:16 -0000
@@ -36,6 +36,17 @@
 	/** @brief Return path to the Scribus share directory */
 	const QString& shareDir() const;
 
+#if defined (_WIN32)
+	/** @brief Return path to Application Data directory*/
+	static QString getAppDataDir(bool useSlashs = true);
+	/** @brief Return path to My Documents directory*/
+	static QString getMyDocumentDir(bool useSlashs = true);
+	/** @brief Return path to Windows Font directory*/
+	static QString getSystemFontDir(bool useSlashs = true);
+	/** @brief Return path to a special directory*/
+	static QString getSpecialDir(int folder, bool useSlashs = true);

+#endif
+
 protected:
 	/** @brief Constructor. Use ScPaths::instance() instead. */
 	ScPaths();
