Thread: PRS-T3 T3 fonts & custom fonts
View Single Post
Old 12-21-2013, 10:43 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,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
The PRST3 may have changed since the T1 but how are you coding your @font-faces and css body class?

With my PRST1 (before the great Morkl June Reader hack became available) I'm pretty sure that I got most flexibility to change fonts on the Sony by coding the @font-faces like this
Code:
@font-face {font-family: serif; font-weight: normal; font-style: normal; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/myfont.ttf)}
... etc x 4
In addition, don't include any font-family styles in the body css (or anywhere else for that matter). Then it should always default to serif which the above @font-faces have pointed at your custom font. With luck this is generic enough that the Sony will be able to override your @font-faces if you select one of the Sony built-in fonts, rather than 'Original'.

I don't have a T3 so I can't try it.
jackie_w is offline   Reply With Quote