Files
ElyOffice/patches/libreoffice/0011-lok-font-lists-present-when-a-member-is-used.patch
T
ZacharyZhang-NY b7fca0146d Ely Office: six offline-first desktop apps in Rust and GPUI
ElyDoc, ElyTable, ElyShow (LibreOfficeKit), ElyPDF (MuPDF), ElyTree (Git),
ElyMark (Milkdown and CodeMirror in CEF). ElyMail and ElyAgent follow.
2026-10-08 21:20:08 -04:00

28 lines
1.5 KiB
Diff

--- a/desktop/source/lib/init.cxx 2026-10-04 13:38:07
+++ b/desktop/source/lib/init.cxx 2026-10-04 13:38:07
@@ -3055,11 +3055,20 @@
// vcl::Font::GetItalic() returns and boldness by what
// vcl::Font::GetWeight() returns.)
+ // A ';' list is present if any member is used.
if (x.mOriginalFont.indexOf('/') == -1)
- for (const auto &j : x.mUsedFonts)
- if (j == x.mOriginalFont ||
- j.startsWith(Concat2View(x.mOriginalFont + "/")))
- return true;
+ {
+ sal_Int32 nIndex = 0;
+ do
+ {
+ const OUString aFamily
+ = x.mOriginalFont.getToken(0, ';', nIndex);
+ for (const auto &j : x.mUsedFonts)
+ if (j == aFamily
+ || j.startsWith(Concat2View(aFamily + "/")))
+ return true;
+ } while (nIndex >= 0);
+ }
return false;
});