From c010c1375bfec3aaa7d154c7164ae31df556cb68 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sun, 31 Jul 2022 23:42:41 +0200 Subject: more_fonts: Update Amiri Update PDF export test that depends on a mapping the font no longer has, and use different characters that meet the test criteria. Change-Id: I0f89297a52ffcef3513e0a788ec3bab645cc354b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137661 Tested-by: Jenkins Reviewed-by: Heiko Tietze --- vcl/qa/cppunit/pdfexport/data/tdf66597-1.odt | Bin 8154 -> 9286 bytes vcl/qa/cppunit/pdfexport/pdfexport.cxx | 14 +++++++------- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'vcl/qa') diff --git a/vcl/qa/cppunit/pdfexport/data/tdf66597-1.odt b/vcl/qa/cppunit/pdfexport/data/tdf66597-1.odt index 7fecc55c6386..e5cc9bc0b3cc 100644 Binary files a/vcl/qa/cppunit/pdfexport/data/tdf66597-1.odt and b/vcl/qa/cppunit/pdfexport/data/tdf66597-1.odt differ diff --git a/vcl/qa/cppunit/pdfexport/pdfexport.cxx b/vcl/qa/cppunit/pdfexport/pdfexport.cxx index b335d395eb49..03aed3112d64 100644 --- a/vcl/qa/cppunit/pdfexport/pdfexport.cxx +++ b/vcl/qa/cppunit/pdfexport/pdfexport.cxx @@ -1330,13 +1330,13 @@ CPPUNIT_TEST_FIXTURE(PdfExportTest, testTdf66597_1) aZCodec.Decompress(pStream->GetMemory(), aObjectStream); CPPUNIT_ASSERT(aZCodec.EndCompression()); aObjectStream.Seek(0); - // The <01> is glyph id, <0020> is code point. - // The document has three characters , but the font - // reuses the same glyph for space and nbspace so we should have a single - // CMAP entry for the space, and nbspace will be handled with ActualText - // (tested above). + // The <01> is glyph id, <2044> is code point. + // The document has two characters <2044><2215><2044>, but the font + // reuses the same glyph for U+2044 and U+2215 so we should have a single + // CMAP entry for the U+2044, and U+2215 will be handled with ActualText + // (tested below). std::string aCmap("1 beginbfchar\n" - "<01> <0020>\n" + "<01> <2044>\n" "endbfchar"); std::string aData(static_cast(aObjectStream.GetData()), aObjectStream.GetSize()); @@ -1377,7 +1377,7 @@ CPPUNIT_TEST_FIXTURE(PdfExportTest, testTdf66597_1) CPPUNIT_ASSERT_EQUAL_MESSAGE("The should be one ActualText entry!", static_cast(1), nCount); - aActualText = "/Span<>>"; + aActualText = "/Span<>>"; nPos = aData.find(aActualText); CPPUNIT_ASSERT_MESSAGE("ActualText not found!", nPos != std::string::npos); } -- cgit