Quote:
Originally Posted by wallcraft
Some implementations (Sony, Jinke, Bookeen) already have a way to access user-provided fonts in ePubs, see for example Fonts and Epub - What works on Sony, Works for Pocket Pro too!. This is a standard feature of mobile ADE, but the fonts need to be in a particular location (i.e. in a particular folder) - and this location varies between devices. This capability is required in addition to a user-provided userStyle.css in order to have user-selectable default fonts.
|
Hello all,
I am a new PocketBook 360 owner who has been using a Sony PRS505 and Calibre for about a year. I like my new "small object of desire" very much.
Having played with it for a few days I am confident that with fbreader180 it will allow a better reading experience with some of my "lesser-styled" books (TXT, plain HTML, RTF) without spending a lot of time editing beforehand.
However, to get to the point of my post, much as I love the excellent fbreader180, I am having difficulty weaning myself off the AdobeViewer for epubs which contain lots of CSS styling (poetry, epigraphs, centre-/right-align, blockquotes, SmallCaps, variety of font-size and/or font-faces, combination of serif, sans-serif, monospace etc) within the same epub. I also missed my Sony's ability to render epubs in the font(s) of my choice, by either of two methods.
As mentioned earlier in this thread, there is a way to do this for epubs in AdobeViewer on the PB360 using some simple "Extra CSS" when converting to epub in Calibre.
For anyone who would like the details of how to do this, read on. I have used the Georgia serif font as an example as the .ttf files are easily available on all Windows PCs in c:\windows\fonts.
- Copy the 4 files from the Georgia font-family (reg, italic, bold, bolditalic)
Code:
georgia.ttf
georgiai.ttf
georgiab.ttf
georgiaz.ttf
to the PB360 directory [Letter]:\system\fonts\
whilst it is connected to the PC. This is just the same as you would do if you wanted to use Georgia in fbreader.
- Convert your file to epub in Calibre, placing the following CSS code in the "Extra CSS" box in the [Convert] - [Look & Feel] section
Code:
@font-face { font-family: serif; font-weight: normal; font-style: normal; src: url(res:///mnt/ext1/system/fonts/georgia.ttf);}
@font-face { font-family: serif; font-weight: normal; font-style: italic; src: url(res:///mnt/ext1/system/fonts/georgiai.ttf);}
@font-face { font-family: serif; font-weight: bold; font-style: normal; src: url(res:///mnt/ext1/system/fonts/georgiab.ttf);}
@font-face { font-family: serif; font-weight: bold; font-style: italic; src: url(res:///mnt/ext1/system/fonts/georgiaz.ttf);}
body {font-family: serif; line-height:100%}
- If you don't like the line-spacing, adjust the
line-height:100%
parameter. Try 110% or 90% if you want it wider or narrower respectively.
That's all there is to it. The epub should then look just as good as it would have done on the Sony. Better, in fact, if you like your body text to be full-justified left and right.
If it doesn't work re-check the Extra CSS. The font file names/locations are case-sensitive.
You can use the same principle to customise your epub sans-serif and/or monopace and/or SmallCaps fonts. If anyone would like to see examples of these just ask.