diff options
author | Khaled Hosny <khaled@libreoffice.org> | 2023-09-07 07:59:49 +0300 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2023-09-14 18:33:51 +0200 |
commit | 8497b2f5837bcd7a047d0bd2de842d4b2ef1101b (patch) | |
tree | eba17f106af6642b21e17c813d901b7f08aff4fa | |
parent | 5623a25541925b7389ac8203eb35e3d68485b064 (diff) |
tdf#157112: fix off-by-one error in /LastChar of PDF Type 3 fonts
It should be the index of the last glyph in the subset, so nGlyphs - 1.
Change-Id: I62853a27b602d7b3e6b6265555542dd417438fcc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156630
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@libreoffice.org>
(cherry picked from commit d93f3243d51438e2492ca6f450ae3f1f63b617b1)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156603
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
-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 06e16eb2455f..c3db7ff872ce 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -2614,7 +2614,7 @@ bool PDFWriterImpl::emitType3Font(const vcl::font::PhysicalFontFace* pFace, "/FirstChar 0\n" "/LastChar " - + OString::number(nGlyphs) + + OString::number(nGlyphs - 1) + "\n" "/Widths["); |