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

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > Bookeen

Notices

Reply
 
Thread Tools Search this Thread
Old 11-07-2009, 05:37 PM   #1
fiery
Member
fiery began at the beginning.
 
Posts: 12
Karma: 18
Join Date: Nov 2009
Device: Cybook Opus
Smile Fonts directory for Calibre -> External CSS

For those interesting in epub Fonts usage, the public Fonts directory of Cybook Opus is in fact /mnt/fat/Fonts/. The internal Fonts folder is "/mnt/app/res/fonts". You can find them in the system/.fonts-cache-1 text file.

So after a lot of reading and testing I successfully used the Liberation fonts (available in Calibre) in my epub files. Most importantly, I was even able to embed these fonts in the epub files so ADE could show Cyrillic letters instead of ???. You can read this thread if you need a portable epub file with embedded fonts: http://www.mobileread.com/forums/showthread.php?t=61587

However, if you want to use the Liberation fonts only on your device, first copy all fonts from "C:\Program Files\Calibre2\resources\fonts\liberation" to your Cybook Opus Fonts folder. Then edit the stylesheet.css file (or enter the following text at Calibre -> Look & Feel -> External CSS field):
----------------
stylesheet.css - insert the following text after the first line
----------------
@font-face {
font-style: italic;
font-family: 'Liberation', serif, sans-serif;
font-weight: normal;
src: url(res:///mnt/fat/Fonts/LiberationSerif-Italic.ttf);
}
@font-face {
font-style: normal;
font-family: 'Liberation', serif, sans-serif;
font-weight: normal;
src: url(res:///mnt/fat/Fonts/LiberationSerif-Regular.ttf);
}
@font-face {
font-style: italic;
font-family: 'Liberation', serif, sans-serif;
font-weight: bold;
src: url(res:///mnt/fat/Fonts/LiberationSerif-BoldItalic.ttf);
}
@font-face {
font-style: normal;
font-family: 'Liberation', serif, sans-serif;
font-weight: bold;
src: url(res:///mnt/fat/Fonts/LiberationSerif-Bold.ttf);
}

Last edited by fiery; 11-14-2009 at 06:21 AM.
fiery is offline   Reply With Quote
Old 11-08-2009, 03:29 AM   #2
EowynCarter
Wizard
EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.
 
Posts: 4,005
Karma: 1570748
Join Date: Oct 2008
Location: Paris
Device: Cybooks; Sony PRS-T1
I know some will be intersted by these infos
EowynCarter is offline   Reply With Quote
 
Enthusiast
Old 11-08-2009, 04:20 AM   #3
elmargol
Enthusiast
elmargol began at the beginning.
 
Posts: 30
Karma: 30
Join Date: Sep 2009
Device: Cybook Opus
Thank you
elmargol is offline   Reply With Quote
Old 11-10-2009, 12:19 PM   #4
Godzil
a pthread?? where? where?
Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
Godzil's Avatar
 
Posts: 1,740
Karma: 30462
Join Date: Mar 2009
Location: Somewhere in EU
Device: Newton MessagePad 2100, and only this
I really don't understand what allow you to use external fonts like here instead of embedding them in your ePub file ?

Using external file dissallow to make them portable around devices without adding fonts too on them. (nor allow you to distribute your file on the net without asking people to use the font you force) and the ePub will neither be portable with other device like Sony's one
Godzil is offline   Reply With Quote
Old 11-10-2009, 12:24 PM   #5
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 5,789
Karma: 4027751
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
The only reason would be making the epub file a bit smaller.
Jellby is offline   Reply With Quote
Old 11-10-2009, 02:00 PM   #6
elmargol
Enthusiast
elmargol began at the beginning.
 
Posts: 30
Karma: 30
Join Date: Sep 2009
Device: Cybook Opus
font-family: 'Liberation', serif, sans-serif;
If you don't have Liberation it is going to use serif... if you don't have serif it is going to use sans-serif... no problem at all
elmargol is offline   Reply With Quote
Old 11-11-2009, 08:22 AM   #7
Godzil
a pthread?? where? where?
Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
Godzil's Avatar
 
Posts: 1,740
Karma: 30462
Join Date: Mar 2009
Location: Somewhere in EU
Device: Newton MessagePad 2100, and only this
Sorry, but I know CSS, but using external font file is a really bad idea. Using a specific font for a file, is to get a good formated document, and using fall back always led to unexpected results.

And making the file smaller is not a real problem. ePub file are zipped, and there is now a lot of memory on all devices, so the gain of 100ko is not a real problem.
Godzil is offline   Reply With Quote
Old 11-11-2009, 08:52 AM   #8
LoganK
Groupie
LoganK can name that song in three notesLoganK can name that song in three notesLoganK can name that song in three notesLoganK can name that song in three notesLoganK can name that song in three notesLoganK can name that song in three notesLoganK can name that song in three notesLoganK can name that song in three notesLoganK can name that song in three notesLoganK can name that song in three notesLoganK can name that song in three notes
 
Posts: 196
Karma: 24918
Join Date: May 2009
Device: PRS-505,nook,Nook Color,Android
Quote:
Originally Posted by Godzil View Post
Sorry, but I know CSS, but using external font file is a really bad idea. Using a specific font for a file, is to get a good formated document, and using fall back always led to unexpected results.
I actually came here hoping the title was correct: external fonts and external CSS. That's what we really want as readers.

(Writers/publishers probably want to embed both.)
LoganK is offline   Reply With Quote
Old 11-11-2009, 10:12 AM   #9
JSWolf
Suspended
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
Posts: 35,392
Karma: 16147088
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
It this an Opus only public fonts directory or is it an ADE public fonts directory?

Fiery, how did you figure out what the public fonts directory is?
JSWolf is offline   Reply With Quote
Old 11-11-2009, 11:30 AM   #10
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,979
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3 and Fire
Quote:
Originally Posted by JSWolf View Post
It this an Opus only public fonts directory or is it an ADE public fonts directory?
It is Opus only (a part of mobile ADE, but customized by each vendor). The same approach works on Sonys (ePub custom Fonts on 700, 505, 300, 600) and Hanlins ( Fonts and Epub - What works on Sony, Works for Pocket Pro too!). All that differs between the Cybooks, Sonys and Hanlins is the location of the user provided font directory (e.g. SD card vs internal memory) and how it is named in the src: line.
wallcraft is offline   Reply With Quote
Old 11-14-2009, 06:10 AM   #11
fiery
Member
fiery began at the beginning.
 
Posts: 12
Karma: 18
Join Date: Nov 2009
Device: Cybook Opus
Quote:
Originally Posted by JSWolf View Post
It this an Opus only public fonts directory or is it an ADE public fonts directory?

Fiery, how did you figure out what the public fonts directory is?
This is a Cybook Opus specific location for the Fonts folder available on the internal (not SD) memory of the Opus. All fonts and their locations could be read in the system/.fonts.cache-1 file. I attached mine if someone wants to look at it.

It seems that all devices use different locations for their public Fonts folders.
Attached Files
File Type: txt fonts_cache.txt (21.9 KB, 231 views)

Last edited by fiery; 11-14-2009 at 06:58 AM.
fiery is offline   Reply With Quote
Old 11-14-2009, 06:56 AM   #12
fiery
Member
fiery began at the beginning.
 
Posts: 12
Karma: 18
Join Date: Nov 2009
Device: Cybook Opus
Embedded vs External Fonts

I found several posts how to use external fonts on Sony devices, but there was no instructions for the Opus users. So, this thread is for the Opus users who want to use external fonts (I slightly edited my initial post for more clarity).

The main advantage of external fonts is that you can produce your epub files simply by pasting some css definitions in Calibre. There is no need to edit epubs afterward.

The advantage of embedded fonts is that ADE, Opus and some other devices will use them instead of the default fonts. The disadvantage is more file editing and copying of fonts in each epub file. If you want to embed fonts after Calibre conversion you can read this thread: http://www.mobileread.com/forums/showthread.php?t=61587
fiery is offline   Reply With Quote
Old 02-20-2011, 10:05 PM   #13
Rizla
Wizard
Rizla ought to be getting tired of karma fortunes by now.Rizla ought to be getting tired of karma fortunes by now.Rizla ought to be getting tired of karma fortunes by now.Rizla ought to be getting tired of karma fortunes by now.Rizla ought to be getting tired of karma fortunes by now.Rizla ought to be getting tired of karma fortunes by now.Rizla ought to be getting tired of karma fortunes by now.Rizla ought to be getting tired of karma fortunes by now.Rizla ought to be getting tired of karma fortunes by now.Rizla ought to be getting tired of karma fortunes by now.Rizla ought to be getting tired of karma fortunes by now.
 
Rizla's Avatar
 
Posts: 1,415
Karma: 3633601
Join Date: Nov 2010
Device: PRS-650 / Cybook Opus / Nook STR (rooted)
To clarify for future readers, put the external fonts in a new folder called Fonts in the Cybook root folder of its internal memory.

Then reference the fonts using the css code stated above.

Then finally, and this is what got me, when in a book, choose options and fonts, then choose your new font from the list (it should be there). The font will change. This is actually really nice and much nicer than how it's done on a Sony.

If the font doesn't change, its because the epub is referencing other fonts internally.
Rizla 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
Can the new Sony Readers (350 & 650) use external fonts? JSWolf Sony Reader 3 09-14-2010 08:25 PM
Possible to embed fonts in CSS of .lit file? tanzer21 Calibre 9 06-30-2010 07:26 PM
Embedded fonts, Calibre, and choice of fonts AlexBell ePub 8 05-30-2010 06:00 AM
External Fonts on Sony rmm200 Sony Reader 2 01-26-2010 09:04 PM
Calibre: directory location not remembered JeffElkins Calibre 2 06-06-2008 08:53 PM


All times are GMT -4. The time now is 03:19 PM.


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