diff options
author | Khaled Hosny <khaled@aliftype.com> | 2022-12-10 00:51:00 +0200 |
---|---|---|
committer | خالد حسني <khaled@aliftype.com> | 2022-12-10 10:07:23 +0000 |
commit | ff6e3635c1f82db401309e95cb90f0b78554ae6e (patch) | |
tree | eeadaf07a3a94e978deeed4433c695c99edcf285 | |
parent | 99860a1fbf7017cc5efdebdf5901ef57e7c021f0 (diff) |
vcl: Add subset ID to Type 3 fonts embedded in PDF
This was overlooked before and can lead to duplicate font names in PDF.
Change-Id: I16bd0e64663b5f62f90b91576644439079213e64
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143901
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@aliftype.com>
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index 5958a202e29e..8de89e4128e3 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -2472,7 +2472,7 @@ bool PDFWriterImpl::emitType3Font(const vcl::font::PhysicalFontFace* pFace, // write font descriptor sal_Int32 nFontDescriptor = 0; if (m_aContext.Version > PDFWriter::PDFVersion::PDF_1_4) - nFontDescriptor = emitFontDescriptor(pFace, aSubsetInfo, 0, 0); + nFontDescriptor = emitFontDescriptor(pFace, aSubsetInfo, rSubset.m_nFontID, 0); if (nToUnicodeStream) nToUnicodeStream = createToUnicodeCMap(pEncoding, aCodeUnits.data(), pCodeUnitsPerGlyph, |