From b81bc738b3918b10a383650b8c4baca30e730653 Mon Sep 17 00:00:00 2001
From: Mark Rogers <mark.rogers@powermapper.com>
Date: Thu, 25 Apr 2019 14:24:03 +0100
Subject: [PATCH] PoDoFo: fix dependency on 'Arial' font being installed

---
 Electrum/Mapper/Libs/podofo/test/unit/EncryptTest.cpp   | 2 +-
 Electrum/Mapper/Libs/podofo/test/unit/PagesTreeTest.cpp | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Electrum/Mapper/Libs/podofo/test/unit/EncryptTest.cpp b/Electrum/Mapper/Libs/podofo/test/unit/EncryptTest.cpp
index 3634fe635..2557343ad 100644
--- a/Electrum/Mapper/Libs/podofo/test/unit/EncryptTest.cpp
+++ b/Electrum/Mapper/Libs/podofo/test/unit/EncryptTest.cpp
@@ -301,7 +301,7 @@ void EncryptTest::CreateEncryptedPdf( const char* pszFilename )
     PdfPainter painter;
     painter.SetPage( pPage );
 
-    PdfFont* pFont = writer.CreateFont( "Arial", PdfEncodingFactory::GlobalWinAnsiEncodingInstance(), false );
+    PdfFont* pFont = writer.CreateFont(PODOFO_HPDF_FONT_HELVETICA, PdfEncodingFactory::GlobalWinAnsiEncodingInstance(), false );
     if( !pFont )
     {
         PODOFO_RAISE_ERROR( ePdfError_InvalidHandle );
diff --git a/Electrum/Mapper/Libs/podofo/test/unit/PagesTreeTest.cpp b/Electrum/Mapper/Libs/podofo/test/unit/PagesTreeTest.cpp
index f8f4e3136..871d33532 100644
--- a/Electrum/Mapper/Libs/podofo/test/unit/PagesTreeTest.cpp
+++ b/Electrum/Mapper/Libs/podofo/test/unit/PagesTreeTest.cpp
@@ -132,7 +132,7 @@ void PagesTreeTest::testCreateDelete()
 	PdfFont *		pFont;
 
     // create font
-	pFont = writer.CreateFont( "Arial" );
+	pFont = writer.CreateFont(PODOFO_HPDF_FONT_HELVETICA);
     if( !pFont )
     {
         PODOFO_RAISE_ERROR( ePdfError_InvalidHandle );
@@ -414,7 +414,7 @@ std::vector<PdfPage*> PagesTreeTest::CreateSamplePages( PdfMemDocument & rDoc,
     PdfFont* pFont;
 
     // create font
-    pFont = rDoc.CreateFont( "Arial" );
+    pFont = rDoc.CreateFont(PODOFO_HPDF_FONT_HELVETICA);
     if( !pFont )
     {
         PODOFO_RAISE_ERROR( ePdfError_InvalidHandle );
-- 
2.18.0

