vcl/source/gdi/pdfwriter_impl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ff6e3635c1f82db401309e95cb90f0b78554ae6e
Author:     Khaled Hosny <kha...@aliftype.com>
AuthorDate: Sat Dec 10 00:51:00 2022 +0200
Commit:     خالد حسني <kha...@aliftype.com>
CommitDate: Sat Dec 10 10:07:23 2022 +0000

    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: خالد حسني <kha...@aliftype.com>

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,

Reply via email to