vcl/source/gdi/embeddedfontshelper.cxx | 8 ++++++++ 1 file changed, 8 insertions(+)
New commits: commit 071725536c2d350b761f3c34a23e2dfa87a3c5fb Author: Mike Kaganski <[email protected]> AuthorDate: Tue Aug 5 18:00:29 2025 +0500 Commit: Mike Kaganski <[email protected]> CommitDate: Thu Aug 7 11:46:38 2025 +0200 Add some MS fonts to common fonts list These should not be embedded. Microsoft YaHei additionally restricts its use when embedded, and disallows editing. Change-Id: I15bd7450da01ea8a60403b0fe4bd9a19a541b21e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188959 Tested-by: Jenkins Reviewed-by: Mike Kaganski <[email protected]> diff --git a/vcl/source/gdi/embeddedfontshelper.cxx b/vcl/source/gdi/embeddedfontshelper.cxx index aea57e857563..e50e641b7edc 100644 --- a/vcl/source/gdi/embeddedfontshelper.cxx +++ b/vcl/source/gdi/embeddedfontshelper.cxx @@ -411,6 +411,7 @@ bool EmbeddedFontsHelper::isCommonFont(std::u16string_view aFontName) u"Liberation Mono", u"Caladea", u"Carlito", + u"OpenSymbol", // MSO u"Times New Roman", u"Arial", @@ -418,6 +419,13 @@ bool EmbeddedFontsHelper::isCommonFont(std::u16string_view aFontName) u"Courier New", u"Cambria", u"Calibri", + u"Mangal", + u"Microsoft YaHei", + u"NSimSun", + u"Segoe UI", + u"SimSun", + u"Symbol", + u"Tahoma", }); return aCommonFontsList.contains(aFontName);
