09-10-2019, 08:44 AM | #1 |
Connoisseur
Posts: 97
Karma: 200000
Join Date: Aug 2019
Device: none
|
Possible bug but maybe not
To place text precisely over an image, I am using an svg node within xhtml.
A style node within that svg node doesn't let me specify fonts, but I can define the rules within a CSS file referenced in the xhtml head and it works. For example: Code:
text.title { font-family: 'Liberation Mono', monospace; font-weight: bold; } tspan.tblue { fill: red; } text.tagline { font-family: 'Liberation Sans', sans-serif; font-style: italic; font-weight: bold; } text.code { font-family: 'Liberation Mono', monospace; font-weight: bold; fill: lightgray; } text.aut { font-family: 'Liberation Mono', monospace; font-weight: bold; fill: red; } It works in readers (including Calibre) I have tried. What I do not know is if the warning is a bug in Calibre (e.g. it should allow SVG names too) or if it is intentional because some readers may ignore SVG specific CSS names. Just mentioning it in case it is considered a bug. |
09-10-2019, 10:38 PM | #2 |
creator of calibre
Posts: 43,835
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It wont work on some readers, it will on most modern ones though.
|
Advert | |
|
Tags |
css, svg |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[BUG] - M96 out of memory - [BUG] | Alf77 | Onyx Boox | 5 | 02-05-2015 11:47 AM |
DR800 Help, I've got a bug!! A bug on my screen!! | Franky | iRex | 4 | 06-21-2011 11:45 AM |
Embedded font bug or CSS bug in ADE | JSWolf | ePub | 10 | 06-11-2011 02:34 PM |
Possible bug? | Lexicon | Sigil | 17 | 08-01-2010 03:23 PM |
PRS-505 bug or eBookLib bug? | porkupan | Sony Reader | 3 | 10-07-2007 10:44 PM |