svx/source/svdraw/svdpdf.cxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
New commits: commit 05df7735dff87aa4cbb48dea5994271a63966d37 Author: Caolán McNamara <[email protected]> AuthorDate: Tue Oct 14 12:48:26 2025 +0100 Commit: Miklos Vajna <[email protected]> CommitDate: Thu Oct 16 11:55:27 2025 +0200 do conversion of ttf if FontToUnicode data is present example has name keyed ttf font with glyphs at arbitrary locations Change-Id: I270d0107c7a84103449e593a21cf567f43f1e610 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192388 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 3b39df3f005f..04816ddcf2f5 100644 --- a/svx/source/svdraw/svdpdf.cxx +++ b/svx/source/svdraw/svdpdf.cxx @@ -312,13 +312,11 @@ void ImpSdrPdfImport::CollectFonts() SAL_WARN("sd.filter", "ttf not written"); else SAL_INFO("sd.filter", "ttf written to: " << fileUrl); - // TODO: Only the PFB case will rename later subsets of the same font name to - // separate font names to keep the various subsets from clobbering each other. - if (!bTTF) + std::vector<uint8_t> aToUnicodeData; + if (!pPageObject->getFontToUnicode(font, aToUnicodeData)) + SAL_WARN("sd.filter", "that's maybe worrying"); + if (!bTTF || !aToUnicodeData.empty()) { - std::vector<uint8_t> aToUnicodeData; - if (!pPageObject->getFontToUnicode(font, aToUnicodeData)) - SAL_WARN("sd.filter", "that's maybe worrying"); EmbeddedFontInfo fontInfo = convertToOTF(*pSubSetInfo, fileUrl, sFontName, sPostScriptName, sFontFileName, aToUnicodeData);
