From 62ae66db99e9dd88dfa31999f516f71bb8bdc8b2 Mon Sep 17 00:00:00 2001 From: simon987 Date: Sat, 16 Jan 2021 12:13:56 -0500 Subject: [PATCH] Workaround for UTF8 .doc files --- CMakeLists.txt | 1 + src/pdf.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e0c666d..558ba17 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,4 +25,5 @@ target_compile_options( -Ofast -g -DNDEBUG + -fPIE ) diff --git a/src/pdf.c b/src/pdf.c index e9de907..85239d3 100644 --- a/src/pdf.c +++ b/src/pdf.c @@ -956,7 +956,7 @@ vAddFontsPDF(diagram_type *pDiag) vFPprintf(pOutFile, "endobj\n"); } - /* The Resources */ + /* The Resources */ vSetLocation(17); vFPprintf(pOutFile, "17 0 obj\n"); vFPprintf(pOutFile, "<<\n");