View Single Post
Old 12-02-2014, 12:34 PM   #1
kolijoco
Junior Member
kolijoco began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2014
Device: sony ps-505
prs 505 epub font embedding troubles

i've read just about all the threads i could google up on this, found some information to be contradicting, and non working for me. my problem is - the usual -, some international characters (double accented o's and u's - yep, hungarian) not showing up... in epubs.

here's how far i got. i used prscust, to install/enable the unicode fonts. as a result, the characters in question now render correctly in txt-s and rtf-s. (so i guess my replacing LRF fonts worked.) but epubs still don't work (i understand from my googling that epubs use a different set of fonts).

so i installed prs+, and enabled the "FontsAsInLRF.css" option. still not working.

again based on google, i tried to build my epub using calibre. i use the same text in the body of start.xhtml as my test text/rtf. so thats a check. i link my css, which is the following:

Code:
@font-face {font-family: 'serif1';src:url('res:///Data/fonst/tt0011m_.ttf')} 
@font-face {font-family: 'sans-serif1';src:url('res:///Data/fonts/tt0003m_.ttf')} 
body{font-family: 'serif1'}
p {font-family: 'serif1'}
h1 {font-family: 'sans-serif1'}
and here is my start.xhtml:

Code:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<link rel="stylesheet" type="text/css" href="stylesheet.css">
  <title>Teszttestz</title>
</head>
<h1>Tesztme</h1>
<body>
  tem bő félóra és jön az első attem
</body>
</html>
the page displayed is empty (and yes, it displays ?-s instead of my wonky chars if i don't mess with the fonts in the css). i'm thinking the fonts on the device are not addressed correctly. i've seen variations on the url path in different threads, like: src:url(res:///opt/sony/ebook/FONT/tt0011m_.ttf), but that didn't work either. i'm pretty sure i'm missing the path...

so if anyone has any suggestions on how i could make this work, please help me!

(i realize this is an older device, and i've been fine reading just english on it for all these years, but hey... i like it)

Last edited by kolijoco; 12-02-2014 at 12:39 PM.
kolijoco is offline   Reply With Quote