tdf#102914: keep font attributes for the substituted fallback font
Setting italic to that of the found font seems to prevent artificial
italic in PDF export. We want to keep the original select pattern
attributes so that we know we asked for italic font but got a non-italic
one.
Change-Id: I0cf400e86d802028dffdabbb98e35e3ee584626e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143339
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@aliftype.com>
diff --git a/vcl/quartz/salgdi.cxx b/vcl/quartz/salgdi.cxx
index 661a7e7..1058b7b 100644
--- a/vcl/quartz/salgdi.cxx
+++ b/vcl/quartz/salgdi.cxx
@@ -111,11 +111,6 @@ bool CoreTextGlyphFallbackSubstititution::FindFontSubstitute(vcl::font::FontSele
rPattern.maSearchName = rAttr.GetFamilyName();
rPattern.SetWeight(rAttr.GetWeight());
rPattern.SetItalic(rAttr.GetItalic());
rPattern.SetPitch(rAttr.GetPitch());
rPattern.SetWidthType(rAttr.GetWidthType());
CFRelease(pFallback);
CFRelease(pDesc);
}