From a68c5ec8c60aadfa9aacf259d9877f54fb8d78b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 10 Aug 2022 19:43:57 +0100 Subject: [PATCH] debug missing fonts --- 0001-debug-missing-font.patch | 25 +++++++++++++++++++++++++ libreoffice.spec | 1 + 2 files changed, 26 insertions(+) create mode 100644 0001-debug-missing-font.patch diff --git a/0001-debug-missing-font.patch b/0001-debug-missing-font.patch new file mode 100644 index 0000000..53760db --- /dev/null +++ b/0001-debug-missing-font.patch @@ -0,0 +1,25 @@ +From 83fcf65c2c6abf0b35693c13fc9907ee4f4eb442 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= +Date: Wed, 10 Aug 2022 19:41:40 +0100 +Subject: [PATCH] debug missing font + +Change-Id: I4ebdd577d68fb12a01c3e2efb8b7d7cea8f998cf +--- + vcl/unx/generic/fontmanager/fontconfig.cxx | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/vcl/unx/generic/fontmanager/fontconfig.cxx b/vcl/unx/generic/fontmanager/fontconfig.cxx +index f259277304d0..d0d1f12868ce 100644 +--- a/vcl/unx/generic/fontmanager/fontconfig.cxx ++++ b/vcl/unx/generic/fontmanager/fontconfig.cxx +@@ -1185,6 +1185,7 @@ void PrintFontManager::Substitute(vcl::font::FontSelectPattern &rPattern, OUStri + // ImplFontMetricData::ImplInitTextLineSize + return; + } ++ fprintf(stderr, "missing %s\n", rPattern.maTargetName.toUtf8().getStr()); + SAL_WARN("vcl.fonts", "PrintFontManager::Substitute: missing font: '" << rPattern.maTargetName << + "' try: " << rPattern.maSearchName << " instead"); + std::abort(); +-- +2.37.1 + diff --git a/libreoffice.spec b/libreoffice.spec index 4b04aef..b1081c0 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -259,6 +259,7 @@ Patch3: 0001-Revert-tdf-101630-gdrive-support-w-oAuth-and-Drive-A.patch Patch4: 0001-Fix-CppunitTest_vcl_svm_test-for-big-endian.patch Patch5: 0001-Fix-endian-dependent-test-for-good.patch Patch6: 0001-some-disable-pdfium-fixes.patch +Patch7: 0001-debug-missing-font.patch # not upstreamed Patch500: 0001-disable-libe-book-support.patch