![]() |
#1 |
Member
![]() Posts: 12
Karma: 18
Join Date: Nov 2009
Device: Cybook Opus
|
![]()
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: https://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. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,337
Karma: 4000000
Join Date: Oct 2008
Location: Paris
Device: Cybooks; Sony PRS-T1
|
I know some will be intersted by these infos
![]() |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() Posts: 30
Karma: 30
Join Date: Sep 2009
Device: Cybook Opus
|
Thank you
|
![]() |
![]() |
![]() |
#4 |
a pthread?? where? where?
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,763
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 |
![]() |
![]() |
![]() |
#5 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
The only reason would be making the epub file a bit smaller.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Enthusiast
![]() 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 |
![]() |
![]() |
![]() |
#7 |
a pthread?? where? where?
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,763
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. |
![]() |
![]() |
![]() |
#8 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 199
Karma: 24918
Join Date: May 2009
Device: PRS-505,nook,Nook Color,Android
|
Quote:
(Writers/publishers probably want to embed both.) |
|
![]() |
![]() |
![]() |
#9 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,001
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
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? |
![]() |
![]() |
![]() |
#10 | |
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#11 | |
Member
![]() Posts: 12
Karma: 18
Join Date: Nov 2009
Device: Cybook Opus
|
Quote:
It seems that all devices use different locations for their public Fonts folders. Last edited by fiery; 11-14-2009 at 06:58 AM. |
|
![]() |
![]() |
![]() |
#12 |
Member
![]() 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: https://www.mobileread.com/forums/showthread.php?t=61587 |
![]() |
![]() |
![]() |
#13 |
Member Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,183
Karma: 11721895
Join Date: Nov 2010
Device: Nook STR (rooted) & Sony T2
|
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. |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |