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 07-30-2010, 12:27 PM   #1
mikij
Connoisseur
mikij doesn't littermikij doesn't litter
 
Posts: 98
Karma: 161
Join Date: May 2010
Location: Quebec, Canada
Device: PRS-600
Exclamation Where are the font files on this device?

Hi,
I need to change some characters (Japanese ō like in Shōgun, Rōnin and some other words) in a ePub I got, but have no idea how to do it. It seems that I need some fonts or whatever but on my reader I cannot find the fonts directory.
Any help is appreciated.

Mike
mikij is offline   Reply With Quote
Old 08-03-2010, 08:12 PM   #2
Evi1d33d
Enthusiast
Evi1d33d began at the beginning.
 
Posts: 47
Karma: 14
Join Date: Sep 2007
Device: Red PRS-505
The built in font are embedded into the firmware. I know that on the 505 you can change the default font but that involves modding the firmware and reflashing it.

Epub file will take CSS codes that can specify fonts. For example I have Caecilia font in a folder called 'fonts' I created and when I convert my ebooks in calibre I use the code:

Code:
@font-face { 
font-family: 'Caecilia', serif, sans-serif;
font-style: normal;
font-weight: normal;
src:url(res:///Data/fonts/CaeciliaLTStd-Roman.otf)
}

@font-face {
font-style: italic;
font-family: 'Caecilia', serif, sans-serif;
font-weight: normal;
src:url(res:///Data/fonts/CaeciliaLTStd-Italic.otf)

}
@font-face {
font-style: italic;
font-family: 'Caecilia', serif, sans-serif;
font-weight: bold;
src:url(res:///Data/fonts/CaeciliaLTStd-BoldItalic.otf)

}
@font-face {
font-style: normal;
font-family: 'Caecilia', serif, sans-serif;
font-weight: bold;
src:url(res:///Data/fonts/CaeciliaLTStd-Bold.otf)
}

body {
font-family: "Caecilia", serif;
}
Evi1d33d is offline   Reply With Quote
 
Enthusiast
Old 08-06-2010, 01:51 PM   #3
mikij
Connoisseur
mikij doesn't littermikij doesn't litter
 
Posts: 98
Karma: 161
Join Date: May 2010
Location: Quebec, Canada
Device: PRS-600
It seems like a great idea. So, if I understood, I have to create Fonts folder, put inside some font and create a CSS file. Is it correct?
Where should I create a.CSS file (root, some folder...) and what name should I give it (if specific one is needed)?
Thanks.

P.S. Can I use any font type I have on my PC?

Last edited by mikij; 08-06-2010 at 05:54 PM.
mikij is offline   Reply With Quote
Old 08-06-2010, 11:28 PM   #4
mikij
Connoisseur
mikij doesn't littermikij doesn't litter
 
Posts: 98
Karma: 161
Join Date: May 2010
Location: Quebec, Canada
Device: PRS-600
I found answers to my questions in some other threads. Then I applied your script with my font (verdana) and it worked!
Just a note, I found also that simple quotes should be replaced with double quotes, what I did.
mikij is offline   Reply With Quote
Old 08-09-2010, 10:49 AM   #5
goliljung
Junior Member
goliljung began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2010
Device: prs-600
Quote:
Originally Posted by mikij View Post
I found answers to my questions in some other threads. Then I applied your script with my font (verdana) and it worked!
Just a note, I found also that simple quotes should be replaced with double quotes, what I did.

I am a Thai people, please, I want prs-600 can display a Thai I need your help. goliljung@gmail.com.
goliljung is offline   Reply With Quote
Old 08-09-2010, 04:58 PM   #6
mikij
Connoisseur
mikij doesn't littermikij doesn't litter
 
Posts: 98
Karma: 161
Join Date: May 2010
Location: Quebec, Canada
Device: PRS-600
Quote:
Originally Posted by goliljung View Post
I am a Thai people, please, I want prs-600 can display a Thai I need your help. goliljung@gmail.com.
I have no idea how to implement Thai, but generally this is how it should work:
1) Search for a font that normally displays your characters (try it in MS Word or any other application).
2) Find that font in Windows directory (typically C:\WINDOWS\Fonts)
example: Georgia
Find the following files
- georgia.ttf (georgia, normal style)
- georgiab.ttf (georgia bold)
- georgiaz.ttf (georgia bold italic)
- georgiai.ttf (georgia italic)

3) Connect your Reader
4) Open reader in Windows (as a drive)
5) if it does not exist, at root directory, create "font" directory (no quotes)
6) copy the font files from C:\WINDOWS\Fonts to "font" directory on reader
7) Use the css as in Evi1d33d's post. Replace "Caecilia" by the name of your font (replace single quotes in script by double quotes, if necessary)
8) Copy the script to clipboard or save to a file
9) Open Calibre
10) Select the book you need to convert to ePub and click "Convert books" button
11)In "Look and Feel" section, find the section "Extra CSS"
12) Paste here the script from clipboard
13) Set font sizes, if necessary
14) Click on OK
15) When finished, transfer the ePub to your reader
16) Enjoy your ebook

If everything works, you can copy/paste the script in Preferences..Conversion...Extra CSS so it will be used for all conversions.


Hope it helps.
mikij is offline   Reply With Quote
Old 08-13-2010, 09:15 AM   #7
goliljung
Junior Member
goliljung began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2010
Device: prs-600
thank you. i will do it.
goliljung 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
Tamil font rendering in ePub(device: jetBook Lite) adreamer Sigil 8 08-05-2010 12:34 PM
PRS-600 Where are font files? mikij Sony Reader 0 07-30-2010 11:34 AM
Increase font size in BBeB (lrf) files? DrMoze Sony Reader 5 08-15-2008 03:33 PM
Way to make font smaller in converted Lit files? MidknytOwl Sony Reader 3 06-16-2008 08:47 AM
Best device for reading PDF files? Barret Which one should I buy? 8 06-27-2006 04:21 AM


All times are GMT -4. The time now is 05:44 PM.


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