Thread: PRS-T1 Modified Sony home screen
View Single Post
Old 08-17-2012, 11:37 AM   #432
pssquirrel
ebooknut
pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.
 
pssquirrel's Avatar
 
Posts: 233
Karma: 644088
Join Date: Oct 2011
Device: newbie Kindle Voyage, oldbie Sony T2
Quote:
Originally Posted by snarkophilus View Post
Here's my reader.xml:
Spoiler:
Code:
<?xml version="1.0" encoding="utf-8"?>
<reader pagesPerRefresh="1">
        <fontSizeTableEpub>
                <int>65</int>
                <int>68</int>
                <int>71</int>
                <int>75</int>
                <int>79</int>
                <int>83</int>
                <int>87</int>
                <int>91</int>
        </fontSizeTableEpub>
        <styles default="/mnt/sdcard/reader/css/default.css">
                <style name="Amasis"        file="/mnt/sdcard/reader/css/amasis.css" />
                <style name="Amasis Sony"   file="/mnt/sdcard/reader/css/amasis-sony.css" />
                <style name="Caecilia"      file="/mnt/sdcard/reader/css/caecilia.css" />
                <style name="Cambria"       file="/mnt/sdcard/reader/css/cambria.css" />
                <style name="Lexia DaMa"    file="/mnt/sdcard/reader/css/lexia-dama.css" />
                <style name="Palatino Nova" file="/mnt/sdcard/reader/css/palatino-nova.css" />
        </styles>
        <informationBar left="none" right="clock_hm" />
        <!-- clock_hm, clock_hms, none -->
</reader>


Here's my css/default.css:
Spoiler:
Code:
@font-face {font-family: serif; font-weight: normal; font-style: normal; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/AmasisMT.otf)}
@font-face {font-family: serif; font-weight: normal; font-style: italic; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/AmasisMT-Italic.otf)}
@font-face {font-family: serif; font-weight: bold; font-style: normal; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/AmasisMT-Bold.otf)}
@font-face {font-family: serif; font-weight: bold; font-style: italic; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/AmasisMT-BoldItalic.otf)}

@font-face{ font-family: sans-serif; font-style:normal; font-weight:normal; src: url(res:///ebook/fonts/FrutigerNeueLTW1G-Regular.otf)}
@font-face{ font-family: sans-serif; font-style:italic; font-weight:normal; src: url(res:///ebook/fonts/FrutigerNeueLTW1G-Italic.otf)}
@font-face{ font-family: sans-serif; font-style:normal; font-weight:bold; src: url(res:///ebook/fonts/FrutigerNeueLTW1G-Bold.otf)}
@font-face{ font-family: sans-serif; font-style:italic; font-weight:bold; src: url(res:///ebook/fonts/FrutigerNeueLTW1G-BoldIt.otf)}

@font-face {font-family: monospace; font-weight: normal; font-style: normal; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/DarkCourier.ttf)} 
@font-face {font-family: monospace; font-weight: normal; font-style: italic; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/DarkCourierI.ttf)} 
@font-face {font-family: monospace; font-weight: bold; font-style: normal; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/DarkCourierB.ttf)}
@font-face {font-family: monospace; font-weight: bold; font-style: italic; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/DarkCourierBI.ttf)}

@page {
        margin-top: /* 10pt */ 5pt;
        margin-bottom: 0;
        margin-left: /* 5pt */ 2pt;
        margin-right: /* 5pt */ 2pt;
}

body, body.book, body.text, body.calibre, body.calibre1, body.calibre2, body.calibre3, body.calibre4 {
    font-family: serif; 
    /* line-height: 1.2; */
    margin-left: 0; margin-right: 0;
    text-align: justify;
}


Here's my css/caecilia.css
Spoiler:
Code:
@font-face { font-family: serif; font-style:normal; font-weight:normal; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/CaeciliaLTStd-Roman.ttf);}
@font-face { font-family: serif; font-style:italic; font-weight:normal; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/CaeciliaLTStd-Italic.ttf);}
@font-face { font-family: serif; font-style:normal; font-weight:bold; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/CaeciliaLTStd-Bold.ttf);}
@font-face { font-family: serif; font-style:italic; font-weight:bold; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/CaeciliaLTStd-BoldItalic.ttf);}


Here's my css/cambria.css
Spoiler:
Code:
@font-face { font-family: "Cambria"; font-style:normal; font-weight:normal; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/CambriaR.ttf);}
@font-face { font-family: "Cambria"; font-style:italic; font-weight:normal; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/CambriaI.ttf);}
@font-face { font-family: "Cambria"; font-style:normal; font-weight:bold; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/CambriaB.ttf);}
@font-face { font-family: "Cambria"; font-style:italic; font-weight:bold; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/CambriaBI.ttf);}

/*
@font-face { font-family: sans-serif; font-style:normal; font-weight:normal; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/CambriaR.ttf);}
@font-face { font-family: sans-serif; font-style:italic; font-weight:normal; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/CambriaI.ttf);}
@font-face { font-family: sans-serif; font-style:normal; font-weight:bold; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/CambriaB.ttf);}
@font-face { font-family: sans-serif; font-style:italic; font-weight:bold; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/CambriaBI.ttf);}
*/

body, html {
        font-family: "Cambria", serif;
}


Here's my css/lexia-dama.css
Spoiler:
Code:
@font-face { font-family: serif; font-style:normal; font-weight:normal; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/LexiaDaMa.otf);}
@font-face { font-family: serif; font-style:italic; font-weight:normal; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/LexiaDaMa-Italic.otf);}
@font-face { font-family: serif; font-style:normal; font-weight:bold; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/LexiaDaMa-Bold.otf);}
@font-face { font-family: serif; font-style:italic; font-weight:bold; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/LexiaDaMa-BoldItalic.otf);}

@font-face { font-family: sans-serif; font-style:normal; font-weight:normal; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/LexiaDaMa.otf);}
@font-face { font-family: sans-serif; font-style:italic; font-weight:normal; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/LexiaDaMa-Italic.otf);}
@font-face { font-family: sans-serif; font-style:normal; font-weight:bold; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/LexiaDaMa-Bold.otf);}
@font-face { font-family: sans-serif; font-style:italic; font-weight:bold; src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/LexiaDaMa-BoldItalic.otf);}

body, html {
        font-family: serif;
}


The other 3 css files are essentially the same as the Cambria.

Any hints will be greatly appreciated .

Cheers,
Simon.
Hi Simon,

If your default.css works, I think your lexia-dama and caecilia stylesheets should work (but I don't think the cambria will work without the full list). Could there be a typo in the filepaths or font filenames?

If not, try using the full list that you used in the default.css for all of the css files:

body, body.book, body.text, body.calibre, body.calibre1, body.calibre2, body.calibre3, body.calibre4

If your default.css does not work and the filepaths/filenames are correct, try adding div and p to the list, as in:

body, body.book, body.text, body.calibre, body.calibre1, body.calibre2, body.calibre3, body.calibre4, div, p


If none of this helps, give another holler.

best, pssquirrel

Last edited by pssquirrel; 08-17-2012 at 12:41 PM. Reason: revised my thinking on this
pssquirrel is offline   Reply With Quote