Comment 57 for bug 39890

Revision history for this message
In , Albert Astals Cid (aacid) wrote :

There's also a weird thing.

If i get all the character positions and dump them to file, sometimes there's minor changes, e.g. in https://bugs.launchpad.net/ubuntu/+source/poppler/+bug/881407/+attachment/2571595/+files/Manning-ExtJS_in_Action.pdf

the diff says

--- old/foo 2012-08-17 01:16:21.566960179 +0200
+++ new/foo 2012-08-17 01:16:21.566960179 +0200
@@ -51275,13 +51275,16 @@
 QRectF(289.28,579.535 2.4948x4.725)
 true
 QRectF(289.28,579.535 2.4948x4.725)
-"FumiK"
-QRectF(294.666,579.535 10.0606x4.725)
-true
+"Fumi"
+QRectF(294.666,579.535 7.64003x4.725)
+false
 QRectF(294.666,579.535 2.08791x4.725)
 QRectF(296.754,579.535 1.73864x4.725)
 QRectF(298.492,579.535 2.8904x4.725)
-QRectF(301.383,579.535 0.349866x4.725)
+QRectF(301.383,579.535 0.923076x4.725)
+"K"
+QRectF(301.733,579.535 2.99376x4.725)
+true
 QRectF(301.733,579.535 2.99376x4.725)
 "®"
 QRectF(308.586,580.274 3.06445x3.885)

the more interesting part is

-QRectF(301.383,579.535 0.349866x4.725)
+QRectF(301.383,579.535 0.923076x4.725)

it seems the "i" moved from being 0.349866 wide to being 0.923076. Any idea why those changes happen? Looking at the code i don't see any obvious reason for them.