View Single Post
Old 06-14-2012, 04:11 PM   #2
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
I'm afreaid have no experience with Persian fonts, but try these @font-face statements in ExtraCSS when you do your calibre conversion:
Code:
@font-face {
font-family: serif, sans-serif, monospace;
font-weight: normal;
src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/BADR.TTF)
}

@font-face {
font-family: serif, sans-serif, monospace;
font-weight: bold;
src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/BADRB.TTF)
}

body, body.calibre, body.calibre1, body.calibre2, body.calibre3 {
    font-family: serif
}
If it still doesn't work with your particular epub it will probably be because the css inside the epub contains font-family: statements which are overriding the above @font-face statements which you are putting in ExtraCSS (there are things you can do to rectify this but take one step at a time).

Forgive my ignorance, but this customising font method will only display properly for left-to-right languages. Is Persian left-to-right or right-to-left?

Quote:
I dont have any folder called "ebook" or "mnt" or "sdcard" or ".." !!!
You may not think you have this directory, but you DO have it. What you see as /fonts on your PC the PRST1 firmware sees as res:///ebook/fonts/../../mnt/sdcard/fonts. In other words what you see as the root directory of internal memory can also be accessed by the PRST1 as res:///ebook/fonts/../../mnt/sdcard

P.S. Why are you not using calibre to transfer your epubs to the PRST1? You lose a lot of calibre bells and whistles if you drag-and-drop
jackie_w is offline   Reply With Quote