Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-28-2018, 10:49 AM   #1
Ami_K
Member
Ami_K began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Oct 2016
Device: Sony PRS-350 | Hanlin V5 | Nexus 7 | Lenovo Yoga tab 3
Custom font (PRS+) breaking itself

So far I have attempted every single suggestion and tutorial regarding changing fonts in epub's via PRS+ that I could find.

I can get the formatting to work, the font does not.

I got it to work once, then I change books and it stops working.
When I say it stops working, the font returns to the default, no matter what I select. Nothing I do will make it work again. I have resaved the css file, I have renamed everything related.. nothing works.

I am using an epub I made myself in Sigil, it has no fonts. It is only a few lines of text.

I believe it has something to do with the filesystem. /Data/fonts has not worked at all. /fonts works once. Of course I have tried different fonts.. everything I can find I tried.

I just got this today (PRS-350), I did the update and installed PRS+, no issues with that.

Please help if you can... this is driving me insane. I have been on this for over 7 HOURS

Every time I open the css file in Notepad++ it identifies as UTF-8, as I was unable to save it minus BOM I saved it as ANSI, I don't know if that is an issue.
I have saved the file using PC and UNIX line endings, in ANSI and UTF-8. (There is a box for Unicode BOM, that is not selected)

PRS+ version:2.1.02alpha

CSS file
Spoiler:

@font-face {
font-family: "serif";
font-weight: normal;
font-style: normal;
src: url(res:///Data/fonts/constantia.ttf);
}

@font-face {
font-family: "serif";
font-weight: bold;
font-style: normal;
src: url(res:///Data/fonts/constantiabd.ttf);
}

@font-face {
font-family: "serif";
font-weight: normal;
font-style: italic;
src: url(res:///Data/fonts/constantiai.ttf);
}

@font-face {
font-family: "serif";
font-weight: bold;
font-style: italic;
src: url(res:///Data/fonts/constantiabi.ttf);
}
body
{
font-family: "serif";
margin:0em !important;
}

@page
{
margin-left: 0em !important;
margin-right: 0em !important;
margin-top: 0.5em !important;
margin-bottom: 0em !important;
}

p {
font-size: 0.95em !important;
text-align: justify !important;
line-height: 115% !important;
margin:0em !important;
}

html {
font-family: serif !important;
}

.mainBody {
font-family: Constantia !important;
}

.calibre {
font-family: Constantia !important;
}

.epub {
font-family: Constantia !important;
}


The epub I am using:
Spoiler:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<p>&nbsp;The quick brown fox jumps over the lazy dog.<br/></p>
<p>&nbsp;the quick brown fox jumps over the lazy dog.<br/></p>
<p>&nbsp;THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG.<br/></p>
<p><span style="font-style: italic;">&nbsp;The quick brown fox jumps over the lazy dog.</span><br/></p>
<p><span style="font-weight: bold;">&nbsp;The quick brown fox jumps over the lazy dog.</span><br/></p>
<h1>&nbsp;The quick brown fox jumps over the lazy dog.<br/></h1>
<h2>The quick brown fox jumps over the lazy dog.<br/></h2>
<h3>The quick brown fox jumps over the lazy dog.<br/></h3>
<h4>The quick brown fox jumps over the lazy dog.</h4>
<h5>The quick brown fox jumps over the lazy dog.</h5>
<h6>The quick brown fox jumps over the lazy dog.</h6>
<p>The quick brown fox jumps over the lazy dog.<br/></p>
</body>
</html>


Please note, I do not want to embed the fonts in each epub as I use different fonts depending on the light level.

Edit: I may have it working a little... Is there any way to add font size increments? The step between S and M is too large. "Font size" does not work either.

Edit again.. and suddenly all of the fonts have stopped working again... I am starting to think this POS is faulty. Backed up CSS files referencing still-in-place ttf files don't work anymore, but only in certain books.. that worked before.

Last edited by Ami_K; 12-28-2018 at 02:34 PM.
Ami_K is offline   Reply With Quote
Old 12-28-2018, 03:25 PM   #2
Ami_K
Member
Ami_K began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Oct 2016
Device: Sony PRS-350 | Hanlin V5 | Nexus 7 | Lenovo Yoga tab 3
I found one issue.. extern.css was missing.
Ami_K is offline   Reply With Quote
Advert
Old 12-28-2018, 05:24 PM   #3
rcentros
eReader Wrangler
rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.
 
rcentros's Avatar
 
Posts: 7,441
Karma: 48453105
Join Date: Mar 2013
Location: Boise, ID
Device: PB HD3, GL3, Tolino Vision 4, Voyage, Clara HD
Quote:
Originally Posted by Ami_K View Post
I found one issue.. extern.css was missing.
Well beyond me, but I'm glad you got it working.
rcentros is offline   Reply With Quote
Old 12-29-2018, 12:23 AM   #4
Ami_K
Member
Ami_K began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Oct 2016
Device: Sony PRS-350 | Hanlin V5 | Nexus 7 | Lenovo Yoga tab 3
Quote:
Originally Posted by rcentros View Post
Well beyond me, but I'm glad you got it working.
Sort of. I put a modified Times font on and it died again. I am hoping it's not a filesystem problem..

I follow exact instructions and all it does is break more things. Maybe I should buy a kobo.

Last edited by Ami_K; 12-29-2018 at 01:05 AM.
Ami_K is offline   Reply With Quote
Old 12-30-2018, 03:54 AM   #5
Ami_K
Member
Ami_K began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Oct 2016
Device: Sony PRS-350 | Hanlin V5 | Nexus 7 | Lenovo Yoga tab 3
I believe one of the fonts was corrupt or otherwise caused an issue. I can use it fine on the pc but not on the 350.

My style list is getting stupidly long, but it now overwrites every book I have with my fonts of choice so it's working.

I can see why people are annoyed that Sony does not make ereaders any longer.

Now I just need to get root, find the right device and mount it to a folder so I can access USB drives from the device..
Ami_K is offline   Reply With Quote
Advert
Old 12-30-2018, 07:17 AM   #6
Ami_K
Member
Ami_K began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Oct 2016
Device: Sony PRS-350 | Hanlin V5 | Nexus 7 | Lenovo Yoga tab 3
I added more books and now the font is broken again, doesn't work on anything. There's definitely a problem.
Ami_K is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
5.9.2: Custom font possible without jailbreak? plainbriny Kindle Developer's Corner 9 12-06-2017 09:54 PM
Kindle 4 NT custom font? jakimo Kindle Developer's Corner 3 08-12-2013 12:48 PM
Java custom font? pepijndevos Kindle Developer's Corner 12 10-10-2012 07:15 PM
Hacks Best custom font? robollama Amazon Kindle 7 05-01-2011 07:33 PM
Unutterably Silly Breaking news ! Queen Z has a PRS-700 Gaurnim Lounge 92 08-14-2009 08:41 AM


All times are GMT -4. The time now is 09:46 AM.


MobileRead.com is a privately owned, operated and funded community.