Hyphenation glitch when using HTML entities
Lele Gaifax <[email protected]> Sat, 04 Dec 2021 18:03:21 +0100
| Newsgroups | gmane.comp.python.reportlab.user |
|---|---|
| Organization | Nautilus Entertainments |
| Message-ID | <[email protected]> |
Hi, I have an issue when rendering a justified-hyphenated paragraph containing HTML entities. It may very well be a font issue, because I was not able to replicate it with a standard font, but I will try harder if that helps. Basically, when the paragraph is a plain text everything goes well, but as soon as it contains, say, a '"' entity instead of the corresponding double quote '"', apparently the machinery that compute the extra space and adjust the word space fails, even on subsequent lines of text. I wrote a trimmed down example that exhibits the problem: https://gist.github.com/lelit/f0e1ed1e2f9dec431463bec77a047362 You can see the problem in the third paragraph here: https://gist.github.com/lelit/f0e1ed1e2f9dec431463bec77a047362#file-hyphenation_glitch-pdf Does this ring any bell or should I simply blame the specific font's metrics? Thanks in advance, bye, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. [email protected] | -- Fortunato Depero, 1929. _______________________________________________ reportlab-users mailing list [email protected] https://pairlist2.pair.net/mailman/listinfo/reportlab-users