03-06-2012, 08:39 AM
|
#2
|
Junior Member
Posts: 2
Karma: 10
Join Date: Mar 2012
Device: Sony eReader PRS-650
|
Solved.
Steps: - Create a new folder named fonts in eReader
- Copy times*.ttf from Windows\fonts to eReader's fonts
- Use Calibre to retouch --> expand the ePub.
- Add the following at the beginning of stylesheet.css:
@font-face {
font-family: 'Times New Roman';
font-weight: normal;
font-style: normal;
src: url(res:///Data/fonts/times.ttf);
}
@font-face {
font-family: 'Times New Roman';
font-weight: normal;
font-style: italic;
src: url(res:///Data/fonts/timesi.ttf);
}
@font-face {
font-family: 'Times New Roman';
font-weight: bold;
font-style: normal;
src: url(res:///Data/fonts/timesbd.ttf);
}
@font-face {
font-family: 'Times New Roman';
font-weight: bold;
font-style: italic;
src: url(res:///Data/fonts/timesbi.ttf);
}
Make sure 'Times New Roman' is used across the styles in stylesheet.css. For instance:
.calibre16 {
font-family: 'Times New Roman';
font-size: 1em
}
and NOT
.calibre16 {
font-family: Times New Roman;
font-size: 1em
}
(Did you see the ' ?)
- Rebuild, download y ya está!
|
|
|