View Single Post
Old 12-10-2021, 05:05 AM   #2038
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,249
Karma: 129333566
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DNSB View Post
If you use left justification (aka ragged right), the distance between words should be constant. If you are using fully justified text, the spacing between words needs to vary to fill the line. There is nothing to be done about that since it is needed to keep the line length constant. In print, the spaces between words and letters are varied on a very fine grained basis (micro-justification) to make text look more even but that takes quite a bit of computing power and I am not aware of any renderers that micro-justify.

To force left justification, add text-align: left; to the body definition in the CSS stylesheet and remove any text-align: justify; entries from the rest of the stylesheets. To allow choosing in the Aa menu, do not add the text-align: left; entry.
You can add text-align: left; to the body style in CSS. Just don't add a justify or left anyplace else in the CSS. Just having it in body allows the justification override to work. But remember, the bug where things like center in KePub doesn't work. So using the override if you are reading KePub is not a good idea.
JSWolf is offline   Reply With Quote