View Single Post
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