vcl/unx/generic/fontmanager/fontconfig.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 14d622f541408f93f1b624d67d02e16d09bc662b
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Mon Feb 4 09:10:36 2019 +0100
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Mon Feb 4 10:05:24 2019 +0100

    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 <vmik...@collabora.com>

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()
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to