summaryrefslogtreecommitdiff
path: root/vcl/unx/generic
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2019-02-04 09:10:36 +0100
committerMiklos Vajna <vmiklos@collabora.com>2019-02-04 10:05:24 +0100
commit14d622f541408f93f1b624d67d02e16d09bc662b (patch)
treeb2131af29435a2703705c6e9a09c2f2220a2aa21 /vcl/unx/generic
parent162cc2aa04191a87ac97c1ad26400b4f06a39c25 (diff)
vcl: make it easier to spot missing fonts (fontconfig backend)
Even better would be to show this on the UI, but that's more tricky: it's not clear how to differentiate between the replacements which are metric-compatible and the ones which are not. Sample output: PrintFontManager::Substitute: replacing missing font: 'Liberation Sansfoo' with 'Arial' Change-Id: I96bf24f7e538fdfc163b9b6cab4b5a381bb4d760 Reviewed-on: https://gerrit.libreoffice.org/67342 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'vcl/unx/generic')
-rw-r--r--vcl/unx/generic/fontmanager/fontconfig.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/unx/generic/fontmanager/fontconfig.cxx b/vcl/unx/generic/fontmanager/fontconfig.cxx
index 76598746bec6..3a97540434ed 100644
--- a/vcl/unx/generic/fontmanager/fontconfig.cxx
+++ b/vcl/unx/generic/fontmanager/fontconfig.cxx
@@ -1048,6 +1048,10 @@ void PrintFontManager::Substitute(FontSelectPattern &rPattern, OUString& rMissin
FcFontSetDestroy( pSet );
}
+
+ SAL_INFO("vcl.fonts", "PrintFontManager::Substitute: replacing missing font: '"
+ << rPattern.maTargetName << "' with '" << rPattern.maSearchName
+ << "'");
}
FontConfigFontOptions::~FontConfigFontOptions()