Created attachment 11599 [details] wrong display of CSS font-size The ePub file attached to bug 695935 contains the following CSS code: p { font-size: 100%; } h1 { font-size: 150%; } In the attached image, ebook-viewer from calibre-2.25 displays font-sizes right and mupdf-1.7 doesn’t.
Sorry, I forgot to mention. The attached screenshot includes mupdf display on the left and ebook-viewer display on the right.
Created attachment 11629 [details] ePub document with title in different font sizes It seems to be fixed in master, although I found another similar issue. The title from the attached ePub file contains both italics and monospaced font with are clearly bigger than the rest of the title.
Created attachment 11630 [details] screenshot showing title with code and emphasis The attached image shows the display in mupdf (left) and in calibre (right).
Although the release notes from mupdf-1.7a include: * Fixed EPUB font scaling bug. I’m afraid that the font switch (to monospace font or italics) in the title results in displaying higher sizes than they should be (as shown at http://bugs.ghostscript.com/attachment.cgi?id=11630). Many thanks for your help, Pablo
Created attachment 11668 [details] ePub document with relative font size
Tor, the new ePub document contains only the following CSS code: body { font-size: 1.05em; } Instead of inheritance, elements seem to have the font-size setup again for them. This is why font size is increased by no reason. Even unordered list has a slightly bigger font than the standard paragraph. Could you fix this? Many thanks for your help, Pablo
Issue has been fixed with commit afa0a2b.
Yeah, it took a while to iron out all the corner cases of the font-size inheritance. It should work properly now.