fedefrappi / AePubReader

Another ePub Reader for iPad
-
369 stars 150 forks source link

Font size not increasing for .xhtml pages.. #23

Open iphonedev21 opened 11 years ago

iphonedev21 commented 11 years ago

I am using other .epub files in this code but increase/decrease in font size is working only with sample file (i.e. vhugo.epub) provided by you. this file is unzipping in .xml format while the books i m using unzipping the page in .xhtml format and font changes are not working for these format . Please give some guidance why its happening !

skyylex commented 9 years ago

It's happening because HTML have hierarchy of rules. AePubReader change rules related to font only for the highest level, if you need to get full support of this you need to inspect you UIWebview with loaded book in Web Inspector - check this guide https://developer.apple.com/library/mac/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/GettingStarted/GettingStarted.html What you need is to determine at which level font style is configured. After that you can replace it with your own settings (through css/js).