View Single Post
Old 03-06-2012, 08:39 AM   #2
Gorit
Junior Member
Gorit began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2012
Device: Sony eReader PRS-650
Smile

Solved.

Steps:
  1. Create a new folder named fonts in eReader
  2. Copy times*.ttf from Windows\fonts to eReader's fonts
  3. Use Calibre to retouch --> expand the ePub.
  4. 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 ' ?)
  5. Rebuild, download y ya está!
Gorit is offline   Reply With Quote