Quote:
Originally Posted by mathil
Hi,
is it possible to officially include the 'Set font scale factor' patch that GeoffR created in this thread in kobopatch? I mean the one that works on both kepubs and epubs, not just on epubs:
Code:
Set font scale factor:
- Enabled: yes
- Description: |
This patch sets the font scale factor for ePub and KePub readers.
# font scale factor is (current font size) / (X+32)
# original value X=14, so (current font size) / 46 is original scale factor,
# e.g. selecting font size 46 from the slider gives scale factor 1.0
# allowed replacement values for X: 0-15 (smaller X --> larger scale factor)
# ePub:
- ReplaceInt: {Offset: 0x4A6EBA, Find: 14, Replace: 14}
# KePub:
- ReplaceInt: {Offset: 0xA2A5F0, Find: 14, Replace: 14}
I've already added it manually to my list of patches and I've been finding it very useful with kepubs: it helps me in finding my optimal font-size for reading across books without having to change the book's CSS manually. I don't know if it would be too difficult to maintain though...
|
It wouldn't be too hard to maintain (it would add about 15 seconds to the time to update the patches), but it's up to GeoffR if he wants to add the patch (as it's his patch).
GeoffR recently added
this patch, so you might want to see if it fits your needs.