svx/source/svdraw/svdpdf.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit c61e1e43015344e82b0eabc42e9a9e563ea41383 Author: Caolán McNamara <[email protected]> AuthorDate: Tue Sep 30 15:05:03 2025 +0100 Commit: Miklos Vajna <[email protected]> CommitDate: Thu Oct 2 15:24:37 2025 +0200 mergefonts needs the notdef glyph in only one of the merged fonts afdko was happy to allow it in two input fonts, but disallows it for three or more, so only add the notdef glyph for the first font. Change-Id: I20bacf9873d78ab44d7cb8527c0ba5923fa98cf6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191686 Reviewed-by: Miklos Vajna <[email protected]> Tested-by: Jenkins CollaboraOffice <[email protected]> diff --git a/svx/source/svdraw/svdpdf.cxx b/svx/source/svdraw/svdpdf.cxx index ce80942fe806..d74eca134088 100644 --- a/svx/source/svdraw/svdpdf.cxx +++ b/svx/source/svdraw/svdpdf.cxx @@ -1321,7 +1321,8 @@ static void buildCMapAndFeatures(const OUString& CMapUrl, const OUString& Featur const OUString& toMergedMapUrl = rSubSetInfo.aComponents.back().toMergedMapUrl; SvFileStream toMergedMap(toMergedMapUrl, StreamMode::READWRITE | StreamMode::TRUNC); toMergedMap.WriteLine(Concat2View("mergefonts "_ostr + FontName + " 0"_ostr)); - toMergedMap.WriteLine("0 0"); + if (rSubSetInfo.aComponents.size() == 1) + toMergedMap.WriteLine("0 0"); for (size_t i = 0; i < glyphs.size(); ++i) { OString sMapLine = OString::number(i + mergeOffset) + " " + OString::number(glyphs[i]);
