diff options
author | Tor Lillqvist <tml@collabora.com> | 2022-08-31 13:25:03 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2022-09-01 11:10:00 +0200 |
commit | ebb73e9e220433be9326dde4ac2284eba5e42558 (patch) | |
tree | 401d083a09c3bf45a224a8bd4a008b108f07129c /desktop | |
parent | 2a403bcbbe0f45cd14a74ae76c4647096463e8ca (diff) |
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 <tml@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
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; |