[Libreoffice-commits] core.git: Branch 'private/timar/fontconfigcrash' - vcl/unx
Andras Timar (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jan 28 09:06:36 UTC 2021
vcl/unx/generic/fontmanager/fontconfig.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 7d9777fa23aadd0dd4efbbf6352c143cc58eda6d
Author: Andras Timar <andras.timar at collabora.com>
AuthorDate: Thu Jan 28 10:06:00 2021 +0100
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Thu Jan 28 10:06:00 2021 +0100
debug 8
Change-Id: I7258f5ac3177df16a2546fe84fa3e3df67a3cb57
diff --git a/vcl/unx/generic/fontmanager/fontconfig.cxx b/vcl/unx/generic/fontmanager/fontconfig.cxx
index 253078259198..c90b2aa645ad 100644
--- a/vcl/unx/generic/fontmanager/fontconfig.cxx
+++ b/vcl/unx/generic/fontmanager/fontconfig.cxx
@@ -20,6 +20,7 @@
#include <stdlib.h>
#include <memory>
#include <iostream>
+#include <fstream>
#include <unx/fontmanager.hxx>
#include <unx/helper.hxx>
#include <comphelper/sequence.hxx>
@@ -94,6 +95,11 @@ FontCfgWrapper::FontCfgWrapper()
setenv("FONTCONFIG_PATH", "/etc/fonts", 1);
std::cerr << "FONTCONFIG_PATH: " << getenv("FONTCONFIG_PATH") << std::endl;
std::cout << "Standard output is working" << std::endl;
+ ifstream conf("/etc/fonts/fonts.conf");
+ if(!conf)
+ std::cerr << "/etc/fonts/fonts.conf is not readable from LO core" << std::endl;
+ else
+ std::cerr << "/etc/fonts/fonts.conf is readable from LO core" << std::endl;
FcInit();
std::cerr << "FcInit() OK" << std::endl;
}
More information about the Libreoffice-commits
mailing list