summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/embeddedfontshelper.cxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/vcl/source/gdi/embeddedfontshelper.cxx b/vcl/source/gdi/embeddedfontshelper.cxx
index b5d1c01d8432..c9f3bdf3a497 100644
--- a/vcl/source/gdi/embeddedfontshelper.cxx
+++ b/vcl/source/gdi/embeddedfontshelper.cxx
@@ -11,10 +11,13 @@
#include <osl/file.hxx>
#include <rtl/bootstrap.hxx>
-#include <vcl/fontmanager.hxx>
#include <vcl/svapp.hxx>
#include <vcl/outdev.hxx>
+#if defined(UNX)
+#include <vcl/fontmanager.hxx>
+#endif
+
using namespace std;
void EmbeddedFontsHelper::clearTemporaryFontFiles()
@@ -60,6 +63,7 @@ OUString EmbeddedFontsHelper::fontFileUrl( const OUString& familyName, FontFamil
FontWeight weight, FontPitch pitch, rtl_TextEncoding )
{
OUString url;
+#if defined(UNX)
psp::PrintFontManager& mgr = psp::PrintFontManager::get();
list< psp::fontID > fontIds;
mgr.getFontList( fontIds );
@@ -98,6 +102,13 @@ OUString EmbeddedFontsHelper::fontFileUrl( const OUString& familyName, FontFamil
}
}
}
+#else
+ (void) familyName;
+ (void) family;
+ (void) italic;
+ (void) weight;
+ (void) pitch;
+#endif
return url;
}