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

New commits:
commit bcb09e7d61dd52c28a8dad265d8cae1c55de6aa8
Author:     Tor Lillqvist <[email protected]>
AuthorDate: Wed Aug 31 13:25:03 2022 +0300
Commit:     Tor Lillqvist <[email protected]>
CommitDate: Wed Sep 7 06:53:20 2022 +0200

    More handwaving: Assume that it is OK to substitude OpenSymbol for Symbol
    
    Change-Id: I2d60721c826cb3053197a19be8a69b71cbd98e5c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139158
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Tor Lillqvist <[email protected]>

diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 3c5749539ea2..ee0c1a2c1d0d 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -2697,7 +2697,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