View Single Post
Old 10-28-2022, 09:25 PM   #1
tatagi
Connoisseur
tatagi began at the beginning.
 
Posts: 52
Karma: 10
Join Date: Oct 2022
Device: none
Is there any problem with removing fonts folder?

I want to delete fonts folder including all fonts in it to reduce each epub files size where font files(mostly ttf format) take up most of the capacity.
(fyi, there're more than 17,000 glyphs in my language area, so font size is gigantic compared to common latin alphabet font)

since I have thousands of ebooks in my collection, it is too time consuming to edit css that font related tags are referenced to(like @font-face or any others), so this is what I am thinking to do.

1. rename filename.epub to filename.zip
2. open it up and delete fonts folder in there.
3. recompress it and rename it back to filename.epub
4. file size shrinks from 10-20MBs to shining 1MBs, voila!

I tested some files myself and for now it works without a problem(at least I think)

so the question is this: Can I safely leave style.css alone and just remove fonts folder? my viewer(sumatrapdf) opens it as normally as other files.

I am not a publicator or author, but a peasant who loves reading

thank you a ton!
tatagi is offline   Reply With Quote