sumatrapdfreader / sumatrapdf

SumatraPDF reader
http://www.sumatrapdfreader.org
GNU General Public License v3.0
13.33k stars 1.69k forks source link

Support for line spacing expansion in ebook mode #476

Open hilspilsen opened 8 years ago

hilspilsen commented 8 years ago

This has been my favorite pdf reader for several years. Beautiful and lightweight. Would love to have a customisation for line spacing expansion in ebook mode, would make reading much easier. Many thanks, Hils

zipzen commented 7 years ago

+1 Line spacing for EPUB reading would make a great program almost perfect. BTW Sumatra is a blessing.

BalurPoco commented 7 years ago

+1 for Line spacing for EPUB. Just what I'm missing right now. Great app anyway.

Phoenix-Brothres commented 6 years ago

FBReader has line spacing option. It's also an open source project.

Zenadix commented 6 years ago

+1, paragraph spacing is also critical.

ghost commented 3 years ago

+1. Absolutely tiresome to read without ability to change line spacing.

GitHubRulesOK commented 3 years ago

Line Spacing is to a degree set by the author by their choice of foundry type which controls default leading (which in turn controls line height) Here is an unmodified source ePub simply visually altered by my choice of font in advanced settings. One is Georgia another one is a less common MS font and both may appear different in either interface. image

rkmfl commented 3 years ago

+1 for line-spacing to be added in the config/"Advanced Settings" stylesheet.

I've used just about every ePub reader (other than the Win-Store versions) on Windows, and Sumatra is the only one where I haven't been able to either customize, or expand/contract the line spacing. It's present in literally every other reader.

Thank you :)

GitHubRulesOK commented 3 years ago

FBReader is not open-source since 2015. FBReader supports many ebook formats using its own book parser and rendering engine. FBReader SDK does not include PDF

Linespacing cannot be adjusted in PDF Linespacing in ePub is set by the author, you need to edit the authors settings in an editor such as calibre.

rkmfl commented 3 years ago

@GitHubRulesOK - There might be some miscommunication.

First -- people are only referring to .ePub Second -- Before claiming that ePubs should not allow line-spacing adjustments, you should download any major eBook reader and take a look. I use a few eBook readers and every one of them allows line-spacing to be adjusted.

Because ePub's are typically rendered with CSS engines (of course it's just as straightforward if they're rendered in another manner and the author's spacing is observed and implemented) -- it's quite easy to either override or adjust the author's spacing based upon a multiplier.

For example, if the author specified 15 points and the eBook viewer offered a "Increase / Decrease" line-spacing option, it might adjust by 20% in each instance (eg .. 9, 12, 15, 18, 21 points).

There is absolutely nothing about the author's spacing that makes it mutually-exclusive to adjust line-spacing in the eBook reader, and as mentioned, this is very likely the reason it's offered in every popular eBook rendering tool.

Thank you.

GitHubRulesOK commented 3 years ago

@kjk MuPDF Draw - GL supposedly lets users nominate custom CSS to override author ePub settings and also allows other ePub font scaling e.g. ><. can those user preferences be assimilated/incorporated into SumatraPDF?

kjk commented 3 years ago

Yes, mupdf does allow custom CSS which allows, I assume, customization like arbitrary fonts, font sizes, line spacing etc.

Not yet sure how best to expose this.

sergeevabc commented 1 year ago

STDU Viewer, a great app for reading.

image