letter-spacing causes word to "overflow" into next word
A cross-platform XML/CSS based eBook reader
Brought to you by:
buggins
If you have an HTML snippet like this:
abcd <span style="letter-spacing: 0.2em;">efgh</span> ijkl
the width of efgh will be without the enlargement by the letterspacing and efgh and ijkl will partly overlap.
I attached a testcase html that displays this bug.
test case
I would like to work on this project...Please enlighten me about the further proceedings.
For my Kindle Touch port of CoolReader, I made a crude workaround. Instead of setting the letter_spacing property, it just uses italics. By far not a real solution.
https://github.com/bhaak/HackedUpReader/commit/581b0964db2b0a5fb117ea77e01a01f13d92fb27