emfio-HAVE_MORE_FONTS
authorDebian LibreOffice Maintainers <debian-openoffice@lists.debian.org>
Fri, 6 Sep 2019 14:06:05 +0000 (15:06 +0100)
committerRene Engelhard <rene@debian.org>
Fri, 6 Sep 2019 14:06:05 +0000 (15:06 +0100)
Gbp-Pq: Name emfio-HAVE_MORE_FONTS.diff

emfio/qa/cppunit/emf/EmfImportTest.cxx

index 30add1aec73f7aa844096972cb5f6f0be13c5e5f..2adb7f69f8607ed3e6a7b6cbf0b134757c41207f 100644 (file)
@@ -24,6 +24,8 @@
 
 #include <memory>
 
+#include <config_features.h>
+
 namespace
 {
 
@@ -47,8 +49,10 @@ class Test : public test::BootstrapFixture, public XmlTestTools
 public:
     CPPUNIT_TEST_SUITE(Test);
     CPPUNIT_TEST(testWorking);
+#if HAVE_MORE_FONTS
     CPPUNIT_TEST(TestDrawString);
     CPPUNIT_TEST(TestDrawStringTransparent);
+#endif
     CPPUNIT_TEST(TestDrawLine);
     CPPUNIT_TEST_SUITE_END();
 };
@@ -93,6 +97,7 @@ void Test::testWorking()
     checkRectPrimitive(aSequenceRect);
 }
 
+#if HAVE_MORE_FONTS
 void Test::TestDrawString()
 {
     // This unit checks for a correct import of an EMF+ file with only one DrawString Record
@@ -134,6 +139,7 @@ void Test::TestDrawStringTransparent()
     assertXPath(pDocument, "/primitive2D/metafile/transform/mask/transform/unifiedtransparence/textsimpleportion", "fontcolor", "#0000ff");
     assertXPath(pDocument, "/primitive2D/metafile/transform/mask/transform/unifiedtransparence/textsimpleportion", "familyname", "ARIAL");
 }
+#endif
 
 void Test::TestDrawLine()
 {