desktop/source/lib/init.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit ebb73e9e220433be9326dde4ac2284eba5e42558
Author:     Tor Lillqvist <t...@collabora.com>
AuthorDate: Wed Aug 31 13:25:03 2022 +0300
Commit:     Tor Lillqvist <t...@collabora.com>
CommitDate: Thu Sep 1 11:10:00 2022 +0200

    More handwaving: Assume that it's OK to substitute OpenSymbol for Symbol
    
    And that when that happens, there is no reason for a LibreOfficeKit
    client to optionally warn the user that the Symbol font is
    missing. (Which it always will be, in that case, on Linux.)
    
    Change-Id: I2d60721c826cb3053197a19be8a69b71cbd98e5c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139108
    Tested-by: Jenkins
    Reviewed-by: Tor Lillqvist <t...@collabora.com>

diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index deeb5f4faead..f37c0bba8cd9 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -2685,7 +2685,11 @@ static LibreOfficeKitDocument* 
lo_documentLoadWithOptions(LibreOfficeKit* pThis,
                         (aFontMappingUseData[i].mOriginalFont == "Calibri" &&
                          j.startsWith("Carlito/")) ||
                         (aFontMappingUseData[i].mOriginalFont == "Palatino 
Linotype" &&
-                         j.startsWith("P052/")))
+                         j.startsWith("P052/")) ||
+                        // Perhaps a risky heuristic? If some glyphs from 
Symbol have been mapped to
+                        // ones in OpenSymbol, don't warn that Symbol is 
missing.
+                        (aFontMappingUseData[i].mOriginalFont == "Symbol" &&
+                         j.startsWith("OpenSymbol/")))
                     {
                         bSubstitutedByMetricCompatible = true;
                         break;

Reply via email to