-
Notifications
You must be signed in to change notification settings - Fork 31
Description
In case of interest, I've got a "not quite a bug fix, but a very sensible workaround" for this issue:
# One of the possible causes here is that wrap function has used an extra line (because
# of some slight mismatch in character widths and a frame that matches too precisely?)
# so that a word wraps over when it shouldn't. I don't know how to fix that sensibly.
# Increasing the height is NOT a good visual solution, because the line wrap is still
# not where the user expects it - increasing the width would almost be more sensible!
# Another suspected cause is in the use of multiple font sizes in one text. Perhaps the
# line scale (interline space) gets confused by this?
in my fork, https://github.com/vincedarley/cewe2pdf (along with a few other fixes, especially one related to vertical text centering). I've run this over 10 different photo-books of mine today and am very happy with the results.
For more detail, what I noticed through careful comparison is that cewe2pdf renders the exact same font very slightly more heavily than CEWE does. Presumably some very subtle differences in the rendering libraries used. This extra heaviness makes the characters a tiny bit bigger - hence this issue. My workaround is (applied only when encountering this issue), to try scaling the font-size to 99% of original size (and then try another 99% if necessary). This imperceptible difference resolves all of my instances of text wrapping when it shouldn't.