From bd917dd0af11b23c774b89184ed33b4ae453dfbd Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Tue, 28 Aug 2012 21:48:16 +0930 Subject: [PATCH 2/3] text: increase the tolerance for overlapping glyphs TextOutputDev will start a new line when encountering consecutive glyphs with overlapping bounding boxes. This can occur when drawing diacritics with a separate glyph. In this case, due to the diacritic having a different baseline, the lines may be output in the wrong order. This patch increases the tolerance for overlapping bounding boxes to prevent diacritics from splitting lines. --- poppler/TextOutputDev.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poppler/TextOutputDev.cc b/poppler/TextOutputDev.cc index 3020e22..7db041e 100644 --- a/poppler/TextOutputDev.cc +++ b/poppler/TextOutputDev.cc @@ -127,7 +127,7 @@ // Minimum spacing between characters within a word, as a fraction of // the font size. -#define minCharSpacing -0.2 +#define minCharSpacing -0.5 // Maximum spacing between characters within a word, as a fraction of // the font size, when there is no obvious extra-wide character -- 1.7.9.5