Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-19-2013, 10:18 AM   #1
52manhua
Junior Member
52manhua began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2013
Device: prs 350
Angry About the epub custom font path And how to know the path?

I register for this question and my japan version prs-350.

As you know, the japan prs 350 can't be flashed.
So I turn to use epub format to custom font by css.

Though, it's not over.
The problem is I can't find the custom font path in my 350.
I put fonts both in /FONT and /fonts,and add all the paths as follows:

@font-face {
font-family:"zw";
src:url(res:///opt/sony/ebook/FONT/zw.ttf),
url(res:///ebook/fonts/../../ebook/fonts/zw.ttf),
url(res:///ebook/fonts/zw.ttf),
url(res:///Data/FONT/zw.ttf),
url(res:///opt/sony/ebook/FONT/tt0011m_.ttf)
url(res:///fonts/ttf/zw.ttf),
url(res:///../../media/mmcblk0p1/fonts/zw.ttf),
url(res:///DK_System/system/font/zw.ttf),
url(res:///abook/fonts/zw.ttf),
url(res:///system/fonts/zw.ttf),
url(res:///system/media/sdcard/fonts/zw.ttf),
url(res:///sdcard/fonts/zw.ttf),
url(res:///system/fonts/DroidSansFallback.ttf),
url(res:///mnt/MOVIFAT/font/zw.ttf),
url(fonts/zw.ttf);
}

none of them works for me and my japan 350.
I have done a lot search, but no answer.
So, anybody can tell me,
1\What is the right font path used in css?
2\How can I find the right font path used in css?

Any help is welcome, thanks in advance!

Last edited by 52manhua; 12-19-2013 at 10:22 AM.
52manhua is offline   Reply With Quote
Old 12-19-2013, 10:58 PM   #2
Phil_C
Zealot
Phil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud of
 
Phil_C's Avatar
 
Posts: 100
Karma: 27924
Join Date: Oct 2009
Location: Chicago, IL USA
Device: Sony PRS-300Black/350Silver/350Blue/T3Black x2
This CSS works for me when I format a book in calibre:

Code:
@font-face {
 font-family: GeorgiaEInk15;
 font-weight: normal;
 font-style: normal;
 src: url(res:///Data/fonts/GeorgiaEInk15.ttf);
}
@font-face {
 font-family: GeorgiaEInk15;
 font-weight: bold;
 font-style: normal;
 src: url(res:///Data/fonts/GeorgiaEInk15Bold.ttf);
}
@font-face {
 font-family: GeorgiaEInk15;
 font-weight: normal;
 font-style: italic;
 src: url(res:///Data/fonts/GeorgiaEInk15Italic.ttf);
}
@font-face {
 font-family: GeorgiaEInk15;
 font-weight: bold;
 font-style: italic;
 src: url(res:///Data/fonts/GeorgiaEInk15BoldItalic.ttf);
}
body {
 font-family: GeorgiaEInk15;
 widows: 0;
 orphans: 0;
}
The font files are in the "fonts" folder in the root of the "READER" drive (not the "SETTINGS" drive).

I do not know if the drive name or the path is the same on the Japanese version of the 350.
Phil_C is offline   Reply With Quote
 
Enthusiast
Old 12-19-2013, 11:26 PM   #3
52manhua
Junior Member
52manhua began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2013
Device: prs 350
Quote:
Originally Posted by Phil_C View Post
This CSS works for me when I format a book in calibre:

Code:
@font-face {
 font-family: GeorgiaEInk15;
 font-weight: normal;
 font-style: normal;
 src: url(res:///Data/fonts/GeorgiaEInk15.ttf);
}
@font-face {
 font-family: GeorgiaEInk15;
 font-weight: bold;
 font-style: normal;
 src: url(res:///Data/fonts/GeorgiaEInk15Bold.ttf);
}
@font-face {
 font-family: GeorgiaEInk15;
 font-weight: normal;
 font-style: italic;
 src: url(res:///Data/fonts/GeorgiaEInk15Italic.ttf);
}
@font-face {
 font-family: GeorgiaEInk15;
 font-weight: bold;
 font-style: italic;
 src: url(res:///Data/fonts/GeorgiaEInk15BoldItalic.ttf);
}
body {
 font-family: GeorgiaEInk15;
 widows: 0;
 orphans: 0;
}
The font files are in the "fonts" folder in the root of the "READER" drive (not the "SETTINGS" drive).

I do not know if the drive name or the path is the same on the Japanese version of the 350.
Thank you,
I tried this path, no help to japan 350.

BTW, my firmware version is 3.0.03.03190.

Last edited by 52manhua; 12-19-2013 at 11:28 PM. Reason: add something
52manhua is offline   Reply With Quote
Old 12-19-2013, 11:40 PM   #4
Phil_C
Zealot
Phil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud ofPhil_C has much to be proud of
 
Phil_C's Avatar
 
Posts: 100
Karma: 27924
Join Date: Oct 2009
Location: Chicago, IL USA
Device: Sony PRS-300Black/350Silver/350Blue/T3Black x2
In your list above, you show:

url(res:///Data/FONT/zw.ttf)

Did you try instead:

url(res:///Data/fonts/zw.ttf)

And that also needs the folder in the root of READER to be "fonts". (Change the case and add the "s".)

I'm not sure if case makes a difference in the path name. It definitely does in the font name.

If that does not work, you will need to ask someone with the Japanese version. Your firmware version is completely different than mine.
Phil_C is offline   Reply With Quote
Old 12-20-2013, 12:30 AM   #5
52manhua
Junior Member
52manhua began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2013
Device: prs 350
Quote:
Originally Posted by Phil_C View Post
In your list above, you show:

url(res:///Data/FONT/zw.ttf)

Did you try instead:

url(res:///Data/fonts/zw.ttf)

And that also needs the folder in the root of READER to be "fonts". (Change the case and add the "s".)

I'm not sure if case makes a difference in the path name. It definitely does in the font name.

If that does not work, you will need to ask someone with the Japanese version. Your firmware version is completely different than mine.
Yeah, I tried those paths and put fonts in both /FONT and /fonts
Still no help,

Thanks
52manhua is offline   Reply With Quote
Old 12-20-2013, 12:52 AM   #6
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 1,686
Karma: 4392001
Join Date: Dec 2010
Device: Kindle 3
Have you tried embedding fonts directly in the ePub with Calibre or Sigil?
Doitsu is offline   Reply With Quote
Old 12-20-2013, 01:28 AM   #7
52manhua
Junior Member
52manhua began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2013
Device: prs 350
Quote:
Originally Posted by Doitsu View Post
Have you tried embedding fonts directly in the ePub with Calibre or Sigil?
It works, as I have done.

But I'd like to read books made by others,
if only I know the path, I can do a little change in css to make those books readable.
52manhua is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I find out where the font path of Iriver Cover Story mrfirm iRiver Story 3 07-22-2013 12:40 PM
custom column: count number of characters (in book path) miquele Library Management 25 09-21-2012 01:54 PM
Custom column showing path length? xterminal Library Management 1 09-11-2012 09:12 AM
Problem with sending to device (custom path) autumnmist Devices 7 04-20-2011 05:32 PM
Any one knew the font path of the built-in fonts of Story flyisland iRiver Story 3 10-15-2010 01:39 AM


All times are GMT -4. The time now is 06:27 AM.


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