View Single Post
Old 12-19-2011, 02:24 PM   #76
jackie_w
Wizard
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: 2,572
Karma: 3784089
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350/650/T1, PB360, Kobo Glo/AuraHD/Aura6"
Quote:
Originally Posted by pssquirrel View Post
FYI below from another thread. I don't understand where "internal flash" is to put the fonts, but this is very promising.
Genius!!! I think internal flash just means standard internal memory. Create a directory called /fonts in the int.mem root directory, i.e. in the same dir which also contains /Books /DCIM and /Sony_Reader. Then copy any fonts you like in there. Then you can reference them in your epub css something like...

Customise serif to Arno Pro
Code:
@font-face { font-family: serif; font-weight: normal; font-style: normal;  src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/ArnoPro.ttf);}
@font-face { font-family: serif; font-weight: normal; font-style: italic;  src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/ArnoPro-Italic.ttf);}
@font-face { font-family: serif; font-weight: bold; font-style: normal;  src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/ArnoPro-Bold.ttf);}
@font-face { font-family: serif; font-weight: bold; font-style: italic;  src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/ArnoPro-BoldItalic.ttf);}
Customise sans-serif to Fontin:
Code:
@font-face {font-family: sans-serif; font-weight: normal; font-style: normal; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/Fontin_Sans_R_45b.otf);}
@font-face {font-family: sans-serif; font-weight: normal; font-style: italic; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/Fontin_Sans_I_45b.otf);}
@font-face {font-family: sans-serif; font-weight: bold; font-style: normal; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/Fontin_Sans_B_45b.otf);}
@font-face {font-family: sans-serif; font-weight: bold; font-style: italic; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/Fontin_Sans_BI_45b.otf);}
Customise monospace to Dark Courier:
Code:
@font-face {font-family: monospace; font-weight: normal; font-style: normal; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/DarkCourier.ttf);} 
@font-face {font-family: monospace; font-weight: normal; font-style: italic; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/DarkCourierI.ttf);} 
@font-face {font-family: monospace; font-weight: bold; font-style: normal; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/DarkCourierB.ttf);}
@font-face {font-family: monospace; font-weight: bold; font-style: italic; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/DarkCourierBI.ttf);}
All bold and italics now working with any old ttf/otf font family.

Thank you so much for passing this on, pssquirrel. Happy dance

Last edited by jackie_w; 12-19-2011 at 02:33 PM. Reason: clarification
jackie_w is online now   Reply With Quote