Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-05-2010, 10:57 PM   #1
adrian783
Junior Member
adrian783 began at the beginning.
 
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
can someone confirm this?
adrian783 is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 08:46 PM.


MobileRead.com is a privately owned, operated and funded community.