diff options
author | Khaled Hosny <khaled@aliftype.com> | 2022-07-31 23:42:41 +0200 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2022-08-02 12:13:14 +0200 |
commit | c010c1375bfec3aaa7d154c7164ae31df556cb68 (patch) | |
tree | ad143eab252069b97ef9ea52329f2a98453bb792 /vcl/qa | |
parent | 44aa6bb9b7d2abeb10731cb0e1b7b52c1a79b7a3 (diff) |
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 <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'vcl/qa')
-rw-r--r-- | vcl/qa/cppunit/pdfexport/data/tdf66597-1.odt | bin | 8154 -> 9286 bytes | |||
-rw-r--r-- | vcl/qa/cppunit/pdfexport/pdfexport.cxx | 14 |
2 files changed, 7 insertions, 7 deletions
diff --git a/vcl/qa/cppunit/pdfexport/data/tdf66597-1.odt b/vcl/qa/cppunit/pdfexport/data/tdf66597-1.odt Binary files differindex 7fecc55c6386..e5cc9bc0b3cc 100644 --- a/vcl/qa/cppunit/pdfexport/data/tdf66597-1.odt +++ b/vcl/qa/cppunit/pdfexport/data/tdf66597-1.odt 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 <space><nbspace><space>, 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<const char*>(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<size_t>(1), nCount); - aActualText = "/Span<</ActualText<FEFF00A0>>>"; + aActualText = "/Span<</ActualText<FEFF2215>>>"; nPos = aData.find(aActualText); CPPUNIT_ASSERT_MESSAGE("ActualText not found!", nPos != std::string::npos); } |