From 1dba1e6dc881e606beae6323e6cab74db5153bd0 Mon Sep 17 00:00:00 2001
From: Emily Bourke <undergroundquizscene@protonmail.com>
Date: Fri, 3 Sep 2021 15:19:25 +0100
Subject: pptx: Copy embedded fonts from reference doc
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

We already copy the relationships and elements in presentation.xml for
embedded fonts, so at the moment using a reference doc with embedded
fonts is broken, producing a pptx that PowerPoint says needs repairing.

This commit copies the fonts over, which I believe is all that’s needed
to work correctly with reference docs with embedded fonts.
---
 src/Text/Pandoc/Writers/Powerpoint/Output.hs | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src/Text/Pandoc/Writers/Powerpoint')

diff --git a/src/Text/Pandoc/Writers/Powerpoint/Output.hs b/src/Text/Pandoc/Writers/Powerpoint/Output.hs
index d86ab32bc..14cd82fdf 100644
--- a/src/Text/Pandoc/Writers/Powerpoint/Output.hs
+++ b/src/Text/Pandoc/Writers/Powerpoint/Output.hs
@@ -242,6 +242,7 @@ alwaysInheritedPatterns =
               , "ppt/presProps.xml"
               , "ppt/tableStyles.xml"
               , "ppt/media/image*"
+              , "ppt/fonts/*"
               ]
 
 -- We only look for these under special conditions
-- 
cgit v1.2.3