Thread: PRS-T1 Modified Sony home screen
View Single Post
Old 08-17-2012, 08:19 PM   #434
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: 297
Karma: 688154
Join Date: Oct 2011
Device: Kindle Voyage & Oasis
Hi Simon,

I thought of another way to approach this.

Here is stripped down css that I confirm works on my T1. Copy and paste these, then use them as templates to create 7 css files (default + 6), changing only the filepaths and filenames indicated in red.

Load it onto your T1. If it works, add the rest of your css until it stops working and you'll know where your problem is.

If it doesn't work, then the problem is either in the filenames/filepaths -- or the epub is using classes you haven't included in the list, which is entirely possible.

default css (do not change)
Spoiler:
Code:
@font-face {
	font-family: serif; 
	font-weight: normal; 
	font-style: normal;  
	src: url(res:///ebook/fonts/AmasisMTW1G.otf);
	} 

@font-face {
	font-family: serif; 
	font-weight: normal; 
	font-style: italic;  
	src: url(res:///ebook/fonts/AmasisMTW1G-Italic.otf);
	} 

@font-face {
	font-family: serif; 
	font-weight: bold; 
	font-style: normal;  
	src: url(res:///ebook/fonts/AmasisMTW1G-Bold.otf);
	} 

@font-face {
	font-family: serif; 
	font-weight: bold; 
	font-style: italic;  
	src: url(res:///ebook/fonts/AmasisMTW1G-BoldItalic.otf);
	}

body, body.book, body.text, body.calibre, body.calibre1, body.calibre2, body.calibre3, body.calibre4, div, p {  
	font-family: serif;
}


alternate css using custom font (change only the filepath/filename in red to match what's on your reader):
Spoiler:
Code:
@font-face {
	font-family: serif; 
	font-weight: normal; 
	font-style: normal;  
	src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/userfontA.ttf);
	} 

@font-face {
	font-family: serif; 
	font-weight: normal; 
	font-style: italic;  
	src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/userfontA-italic.ttf);
	} 

@font-face {
	font-family: serif; 
	font-weight: bold; 
	font-style: normal;  
	src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/userfontA-bold.ttf);
	} 

@font-face {
	font-family: serif; 
	font-weight: bold; 
	font-style: italic;  
	src: url(res:///ebook/fonts/../../mnt/sdcard/reader/fonts/userfontA-bolditalic.ttf);
	}


alternate css using resident font (change only the filename in red):
Spoiler:
Code:
@font-face {
	font-family: serif; 
	font-weight: normal; 
	font-style: normal;  
	src: url(res:///ebook/fonts/VerdanaW1G.otf);
	} 

@font-face {
	font-family: serif; 
	font-weight: normal; 
	font-style: italic;  
	src: url(res:///ebook/fonts/VerdanaW1G-Italic.otf);
	} 

@font-face {
	font-family: serif; 
	font-weight: bold; 
	font-style: normal;  
	src: url(res:///ebook/fonts/VerdanaW1G-Bold.otf);
	} 

@font-face {
	font-family: serif; 
	font-weight: bold; 
	font-style: italic;  
	src: url(res:///ebook/fonts/VerdanaW1G-BoldItalic.otf);
	}


reader.xml
Spoiler:
Code:
<?xml version="1.0" encoding="utf-8"?>
<reader pagesPerRefresh="1">
	<fontSizeTableEpub>
		<int>57</int>
		<int>76</int>
		<int>88</int>
		<int>100</int>
		<int>116</int>
		<int>131</int>
		<int>176</int>
		<int>229</int>
	</fontSizeTableEpub>
	<styles default="/mnt/sdcard/reader/css/default.css">
		<style name="A" file="/mnt/sdcard/reader/css/a.css" />
		<style name="B" file="/mnt/sdcard/reader/css/b.css" />
		<style name="C" file="/mnt/sdcard/reader/css/c.css" />
		<style name="D" file="/mnt/sdcard/reader/css/d.css" />
		<style name="E" file="/mnt/sdcard/reader/css/e.css" />
		<style name="F" file="/mnt/sdcard/reader/css/f.css" />
	</styles>
	<informationBar left="none" right="clock_hms" />
	<!-- clock_hm, clock_hms, none -->
</reader>


Hope this helps.
pssquirrel is offline