You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2026/09/27 09:26:54 UTC
svn commit: r1938566 - pdfbox/branches/3.0/pdfbox-layout-awt/src/test/java/org/apache/pdfbox/glyphlayout/awt
Author: tilman
Date: Sun Sep 27 09:26:53 2026
New Revision: 1938566
Log:
PDFBOX-6256: improve test, remove todo
Modified:
pdfbox/branches/3.0/pdfbox-layout-awt/src/test/java/org/apache/pdfbox/glyphlayout/awt/GlyphLayoutLigaturesAndKerningTest.java
Modified: pdfbox/branches/3.0/pdfbox-layout-awt/src/test/java/org/apache/pdfbox/glyphlayout/awt/GlyphLayoutLigaturesAndKerningTest.java
==============================================================================
--- pdfbox/branches/3.0/pdfbox-layout-awt/src/test/java/org/apache/pdfbox/glyphlayout/awt/GlyphLayoutLigaturesAndKerningTest.java Sun Sep 27 09:22:17 2026 (r1938565)
+++ pdfbox/branches/3.0/pdfbox-layout-awt/src/test/java/org/apache/pdfbox/glyphlayout/awt/GlyphLayoutLigaturesAndKerningTest.java Sun Sep 27 09:26:53 2026 (r1938566)
@@ -246,7 +246,13 @@ class GlyphLayoutLigaturesAndKerningTest
BENGALI_STRING2 + " " + BENGALI_STRING2;
if (useActualText)
{
- assertEquals(text, sStripped, "Extracted Text should equal the written text for " + outputPDFFilename);
+ assertEquals(text, sStripped, "Extracted text should equal the written text for " + outputPDFFilename);
+ }
+ else
+ {
+ // this checks only the latin segment, minus the FiraCode text
+ assertEquals(text.substring(32, 305), sStripped.substring(0, 273),
+ "Extracted text segment should equal the written text for " + outputPDFFilename);
}
try (OutputStream os = new FileOutputStream(outputTextFilename))
@@ -257,8 +263,7 @@ class GlyphLayoutLigaturesAndKerningTest
try (Writer writer = new BufferedWriter(new OutputStreamWriter(os, StandardCharsets.UTF_8)))
{
- //TODO compare this output with the input, like in TextStripper test
- // Not yet correct as of 4.7.2026
+ // The output is not yet correct as of 27.9.2026, unless ActualText is used.
writer.write(s);
}
}