View Single Post
Old 04-29-2011, 05:44 AM   #2
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
What's the problem
There are 2 different sets of font in Sony PRS:

1) Used for LRF, TXT (RTF, but I wouldn't use RTF unless I'm forced to). TXT files should be UTF-8 encoded. (I think PDF viewer also uses those, never checked)
2) Used by EPUB viewer

Standard fonts DO NOT CONTAIN ANY ALPHABETS besides western european in standard firmware (PRS+ comes with Cyrillic, Georgian, Greek alphabets)


To change fonts for LRF/TXT you need
  1. custom firmware that allows to change fonts (PRS+, or one by boroda or one by amutin, any would do; there might be some Chinese CFWs in the wilds)
  2. fonts with glyphs of your interest, named (font names are not the same as file names!!!) as here
  3. simple shell script file that will replace standard fonts using linux's "mount --bind" command, say if your fonts are in /fonts in the root memory, the command will look like (what's "READER E:" for you, is /Data for the system, don't be confused):
    Code:
    mount --bind /Data/fonts /opt/sony/ebook/FONT

To change EPUB fonts you have several options
  1. Mess with particular CSS of particular book, to reference fonts in internal memory (could be shared across all EPUBs)
  2. Embed fonts into EPUB (could be a problem with Chinense, as fonts are huge)
  3. Install custom firmware (like PRS+ or by boroda or by amutin) and use your custom fonts in all EPUBs by default (no need to alter EPUB files). To do that you'll need to:
    1. install one of the mentioned CFWs
    2. create custom CSS file. The following sample CSS would reference the same fonts, as used by LRF/TXT/etc:
      Code:
      @font-face
      {
              font-family: sans-serif;
              src:url(res:///opt/sony/ebook/FONT/tt0003m_.ttf);
      }
      @font-face
      {
              font-family: serif;
              src:url(res:///opt/sony/ebook/FONT/tt0011m_.ttf);
      }
      @font-face
      {
              font-family: monospace;
              src:url(res:///opt/sony/ebook/FONT/tt0419m_.ttf);
      }
kartu is offline   Reply With Quote