Tags

, , , , , , , , ,

First explode the source ePub by using the Calibre, then edit style.css file with WordPad and follow below instructions.

For Asian languages use the following style.css file for your ePubs:

 
@font-face {
font-family: “DroidFont”, serif, sans-serif;
font-weight: normal;
font-style: normal;
src: url(‘res:///system/fonts/DroidSansFallback.ttf’);
}
@font-face {
font-family: “DroidFont”, serif, sans-serif;
font-weight: bold;
font-style: normal;
src: url(‘res:///system/fonts/DroidSansFallback.ttf’);
}
@font-face {
font-family: “DroidFont”, serif, sans-serif;
font-weight: normal;
font-style: italic;
src: url(‘res:///system/fonts/DroidSansFallback.ttf’);
}
@font-face {
font-family: “DroidFont”, serif, sans-serif;
font-weight: bold;
font-style: italic;
src: url(‘res:///system/fonts/DroidSansFallback.ttf’);
}
body {
   margin-right: 8pt;
   font-family: ‘DroidFont’, serif;
}

 

 

For non-asian languages you can use the following style.css file for your ePubs:

 
@font-face {
font-family: “DroidFont”, serif, sans-serif;
font-weight: normal;
font-style: normal;
src: url(‘res:///system/fonts/DroidSerif-Regular.ttf’);
}
@font-face {
font-family: “DroidFont”, serif, sans-serif;
font-weight: bold;
font-style: normal;
src: url(‘res:///system/fonts/DroidSerif-Bold.ttf’);
}
@font-face {
font-family: “DroidFont”, serif, sans-serif;
font-weight: normal;
font-style: italic;
src: url(‘res:///system/fonts/DroidSerif-Italic.ttf’);
}
@font-face {
font-family: “DroidFont”, serif, sans-serif;
font-weight: bold;
font-style: italic;
src: url(‘res:///system/fonts/DroidSerif-BoldItalic.ttf’);
}
body {
   margin-right: 8pt;
   font-family: ‘DroidFont’, serif;
}
 
 
 

These methods only works for Calibre.