Summary: | font-size isn’t inherited, but inherited and applied again (ePub CSS) | ||
---|---|---|---|
Product: | MuPDF | Reporter: | Pablo Rodríguez <ghostscript> |
Component: | mupdf | Assignee: | MuPDF bugs <mupdf-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | tor.andersson |
Priority: | P4 | ||
Version: | master | ||
Hardware: | Other | ||
OS: | All | ||
Customer: | Word Size: | --- | |
Bug Depends on: | |||
Bug Blocks: | 695935 | ||
Attachments: |
wrong display of CSS font-size
ePub document with title in different font sizes screenshot showing title with code and emphasis ePub document with relative font size |
Description
Pablo Rodríguez
2015-04-18 04:54:53 UTC
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 Yeah, it took a while to iron out all the corner cases of the font-size inheritance. It should work properly now. |