]> git.lyx.org Git - lyx.git/blobdiff - src/support/fontutils.C
hopefully fix tex2lyx linking.
[lyx.git] / src / support / fontutils.C
index f0e8ae90fa3d0eb1ce5438e5e249c35c9bd03367..96c92fd8e78f78f8a7429ce6d9abf42229736610 100644 (file)
 #include "support/systemcall.h"
 
 #ifdef __APPLE__
+#include "debug.h"
 #include <ApplicationServices/ApplicationServices.h>
+using std::endl;
 #endif
 
-#ifdef _WIN32
+#if defined(_WIN32) || (defined(__CYGWIN__) && defined(X_DISPLAY_MISSING))
 #include "windows.h"
+#ifdef max
+#undef max
+#endif
+#ifdef min
+#undef min
+#endif
 #include "support/os.h"
 #include "support/package.h"
 #include "support/path.h"
@@ -36,7 +44,7 @@ namespace os = lyx::support::os;
 using std::string;
 
 string const win_fonts_truetype[] = {"cmex10", "cmmi10", "cmr10", "cmsy10",
-       "eufm10", "msam10", "msbm10", "wasy10"};
+       "eufm10", "msam10", "msbm10", "wasy10", "esint10"};
 const int num_fonts_truetype = sizeof(win_fonts_truetype) / sizeof(*win_fonts_truetype);
 #endif
 
@@ -74,7 +82,7 @@ void addFontResources()
                lyxerr << "FMActivateFonts err = " << err << endl;
 #endif
 
-#ifdef _WIN32
+#if defined(_WIN32) || (defined(__CYGWIN__) && defined(X_DISPLAY_MISSING))
        // Windows only: Add BaKoMa TrueType font resources
        string const fonts_dir = addPath(package().system_support(), "fonts");
        
@@ -89,7 +97,7 @@ void addFontResources()
 
 void restoreFontResources()
 {
-#ifdef _WIN32
+#if defined(_WIN32) || (defined(__CYGWIN__) && defined(X_DISPLAY_MISSING))
        // Windows only: Remove BaKoMa TrueType font resources
        string const fonts_dir = addPath(package().system_support(), "fonts");