sw/source/filter/ww8/docxattributeoutput.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 0cddb88375e7e3aff21f2bc8fbb0360e87280c20 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Thu Aug 7 11:09:48 2025 +0500 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Wed Aug 13 14:02:59 2025 +0200 DOCX embedded fonts - skip common fonts Similar to commit 0e9091b6db0d6192a0369ddff71f05d37c29ce98 2025-05-26 sd: PPTX embedded fonts - skip common fonts Change-Id: Icedde832610a29e4c49cf04bfadaa828e055bd0b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189035 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> (cherry picked from commit 32e14c68df3a8cbb8fc7c35ad4c1bfb5af521188) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189391 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Miklos Vajna <vmik...@collabora.com> diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index ec59b6b4e5c0..9f985fd95e17 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -7553,6 +7553,9 @@ void DocxAttributeOutput::EmbedFont( std::u16string_view name, FontFamily family { if( !m_rExport.m_rDoc.getIDocumentSettingAccess().get( DocumentSettingId::EMBED_FONTS )) return; // no font embedding with this document + if (EmbeddedFontsHelper::isCommonFont(name)) + return; + bool foundFont = EmbedFontStyle(name, XML_embedRegular, family, ITALIC_NONE, WEIGHT_NORMAL, pitch); foundFont