07-05-2010, 10:57 PM | #1 |
Junior Member
Posts: 8
Karma: 12
Join Date: Jun 2010
Device: Kobo
|
Bug: Calibre doen't include 'src' in css
when converting from txt to epub, i noticed that calibre ignores the 'src' line.
for example: when use the below css to link fonts, it'll fail due to the fact that src doen't get included in the epub Code:
@font-face { font-style: italic; font-family: 'LiberationSerif', serif, sans-serif; font-weight: normal; src: url(res:///system/media/sdcard/my fonts/LiberationSerif-Italic.ttf); } @font-face { font-style: normal; font-family: 'LiberationSerif', serif, sans-serif; font-weight: normal; src: url(res:///system/media/sdcard/my fonts/LiberationSerif-Regular.ttf); } @font-face { font-style: italic; font-family: 'LiberationSerif', serif, sans-serif; font-weight: bold; src: url(res:///system/media/sdcard/my fonts/LiberationSerif-BoldItalic.ttf); } @font-face { font-style: normal; font-family: 'LiberationSerif', serif, sans-serif; font-weight: bold; src: url(res:///system/media/sdcard/my fonts/LiberationSerif-Bold.ttf); } body { margin-right: 8pt; font-family: 'LiberationSerif', serif; } Read more: http://nookdevs.com/Font_Changes#ixzz0srpBRrwN Under Creative Commons License: Attribution Non-Commercial Share Alike |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
iPad ePub, CSS : Bug with 'position:relative' property ? | Ereskelios | Apple Devices | 3 | 09-29-2014 07:53 AM |
Opus Fonts directory for Calibre -> External CSS | fiery | Bookeen | 12 | 02-20-2011 10:05 PM |
Calibre bug? | pedz | Calibre | 1 | 04-02-2010 11:48 PM |
Small html/css bug | twaits | Calibre | 5 | 01-12-2010 10:26 AM |
css drop caps coming out of calibre | brewt | Calibre | 3 | 01-18-2009 04:00 PM |